Directory Traversal Affecting apache-commons-io package, versions <1:2.4-12.amzn2.0.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
10.55% (96th 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 IDSNYK-AMZN2-APACHECOMMONSIO-5663282
  • published1 Jun 2023
  • disclosed13 Apr 2021

Introduced: 13 Apr 2021

CVE-2021-29425  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 apache-commons-io to version 1:2.4-12.amzn2.0.1 or higher.
This issue was patched in ALAS2-2023-2059.

NVD Description

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

In Apache Commons IO before 2.7, When invoking the method FileNameUtils.normalize with an improper input string, like "//../foo", or "\..\foo", the result would be the same value, thus possibly providing access to files in the parent directory, but not further above (thus "limited" path traversal), if the calling code would use the result to construct a path value.

References

CVSS Base Scores

version 3.1