MODERATE 5.5

CVE-2021-36374

Improper Handling of Length Parameter Inconsistency in Apache Ant

Description

When reading a specially crafted ZIP archive, or a derived formats, an Apache Ant build can be made to allocate large amounts of memory that leads to an out of memory error, even for small inputs. This can be used to disrupt builds using Apache Ant. Commonly used derived formats from ZIP archives are for instance JAR files and many office files. Apache Ant prior to 1.9.16 and 1.10.11 were affected.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.ant » ant
>= 1.9.0, < 1.9.16>= 1.10.0, < 1.10.11
1.9.16, 1.10.11

Blast radius

1affected artifacts
29affected versions
12,378dependent artifacts (est.)
707,513dependent versions

53% of the dependent artifacts (6,632) still pull an affected version in their latest release.

DepthDependent versions
Direct
46,543
2 hops
258,526
3 hops
214,872
4 hops
101,609
5 hops
60,442
6 hops
25,521

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.