Directory Traversal Affecting apache-ivy-javadoc package, versions <0:2.5.1-1.amzn2023.0.1


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.12% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2023-APACHEIVYJAVADOC-5496229
  • published4 May 2023
  • disclosed7 Nov 2022

Introduced: 7 Nov 2022

CVE-2022-37865  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 apache-ivy-javadoc to version 0:2.5.1-1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2023-174.

NVD Description

Note: Versions mentioned in the description apply only to the upstream apache-ivy-javadoc package and not the apache-ivy-javadoc package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Scores

version 3.1