CVE-2022-37865
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedWith 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceApache Ivy 2.4.0-2.5.0 contains a path traversal vulnerability in its archive extraction feature. When processing artifacts with 'zip', 'jar', or 'war' packaging, Ivy does not validate target paths, allowing malicious archives to contain absolute paths or '..' sequences that write files to arbitrary locations on the filesystem where Ivy has write permissions.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 2.4.0, < 2.5.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Ivy versionLocate the ivy JAR file in your project dependencies or build environment. Check the filename (e.g., ivy-2.4.0.jar) or inspect the JAR manifest for the Implementation-Version attribute using: jar -xf ivy-*.jar META-INF/MANIFEST.MF && cat META-INF/MANIFEST.MFAffected if The installed version is 2.4.0 through 2.5.0 (inclusive)
-
Determine if Ivy processes zip/jar/war artifactsReview your Ivy resolve and retrieve operations, or inspect your ivy.xml/ivy-settings.xml files for dependencies with packaging types: <artifact name="..." type="jar"/>, <artifact name="..." type="war"/>, or <artifact name="..." type="zip"/>Affected if Ivy is configured to retrieve or cache artifacts with jar, war, or zip packaging types
-
Verify Ivy's output directory configurationCheck your ivy.xml, ivy-settings.xml, or Ant build file for the 'pattern' attribute on retrieve or cache operations. Look for dest attribute configurations like: <ivy:retrieve pattern="lib/[artifact].[ext]"/> or check the default ivy cache location (typically ~/.ivy2/cache/)Affected if The destination pattern writes to a location accessible by the Ivy process user, enabling arbitrary file write if a malicious artifact is processed
-
Inspect for existing unexpected filesSearch the filesystem directories where Ivy writes (ivy cache directory, retrieve destinations) for files with absolute paths or suspicious names that do not match expected artifact names. Run: find /path/to/cache -name "*../*" -o -name "/etc/*" -o -name "/tmp/*" (adjust paths to your Ivy output locations)Affected if Files exist outside the expected cache/retrieve directory structure, indicating exploitation has occurred
You are affected if Ivy version 2.4.0-2.5.0 is installed AND it processes jar/war/zip artifacts into locations where path traversal could write files outside the intended directory.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped2.5.1
Upgrade Apache Ivy to version 2.5.1 or later to obtain the path validation fix.
Apache Ivy 2.5.1
- Download Apache Ivy 2.5.1 from the official Apache Ivy distribution (https://ant.apache.org/ivy/)
- Replace the existing ivy-*.jar file in your project or Ivy installation directory with the new version
- If using Ivy as a dependency in a build tool (Maven/Gradle), update the ivy version dependency to 2.5.1
- Clear any cached artifacts that may have been previously unpacked to ensure clean state
- Verify the upgrade by running your build process and confirming artifact resolution and extraction work correctly
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,464.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2022-37865 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2022-37865 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data