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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.ivy » ivy | >= 2.4.0, < 2.5.1 | 2.5.1 |
Blast radius
49% of the dependent artifacts (2,662) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.apache.spark » spark-sql3,174 usages
- org.codehaus.mojo » findbugs-maven-plugin2,938 usages
- org.apache.spark » spark-core2,899 usages
- org.codehaus.gmavenplus » gmavenplus-plugin1,631 usages
- org.apache.spark » spark-mllib831 usages
- org.apache.maven.plugins » maven-archetype-plugin709 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- com.atlassian.maven.plugins » amps-maven-plugin555 usages
- org.apache.spark » spark-catalyst502 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apache.hive » hive-metastore480 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
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.
References
| Advisory | NVD CVE-2022-37865 | nvd.nist.gov |
| Web | thread/gqvvv7qsm2dfjg6xzsw1s2h08tbr0sdy | lists.apache.org |
| Web | archives/list/package-announce@lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25S ... | lists.fedoraproject.org |
| Web | archives/list/package-announce@lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25S ... | lists.fedoraproject.org |
