CRITICAL 9.1

CVE-2022-37865

Apache Ivy does not verify target path when extracting the archive

Description

With Apache Ivy 2.4.0 an optional packaging attribute has been introduced that allows artifacts to be unpacked on the fly if they used pack200 or zip packaging.

For artifacts using the "zip", "jar" or "war" packaging Ivy prior to version 2.5.1 doesn't verify the target path when extracting the archive. An archive containing absolute paths or paths that try to traverse "upwards" using ".." sequences can then write files to any location on the local fie system that the user executing Ivy has write access to.

Ivy users of version 2.4.0 to 2.5.0 should upgrade to Ivy version 2.5.1.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.ivy » ivy
>= 2.4.0, < 2.5.1
2.5.1

Blast radius

1affected artifacts
4affected versions
5,332dependent artifacts (est.)
368,839dependent versions

49% of the dependent artifacts (2,662) still pull an affected version in their latest release.

DepthDependent versions
Direct
17,806
2 hops
184,920
3 hops
101,760
4 hops
50,476
5 hops
11,041
6 hops
2,836

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.