Skip to content
OpenAdvisories
Critical · 9.1 CVE-2022-37865 EUVD-2022-7292GHSA-94rr-4jr5-9h2p

Apache Ivy allows creating/overwriting any file on the system

Published Nov 7, 2022 · Updated May 2, 2025 · Assigned by apache

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 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 2.5.1.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Ivy 2.4.0 – < unspecified, unspecified – ≤ 2.5.0 unspecified

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache-ivy 2.5.1-1.1 openSUSE-SU-2024:12506-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 apache-ivy +1 2.5.1-1.amzn2023.0.1 ALAS2023-2023-174

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.ivy:ivy >= 2.4.0, < 2.5.1 2.5.1 GHSA-94rr-4jr5-9h2p

Advisories 6

References