CVE-2021-29425

Possible limited path traversal vulnerabily in Apache Commons IO

State
Published
Severity
6.5 Medium
Published
Apr 13, 2021
Updated
Oct 7, 2026
Reserved
Mar 30, 2021

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NCISA-ADP

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
Apache Commons IOApache Software Foundation
  • Apache Commons IO 2.2Affected
  • Apache Commons IO 2.3Affected
  • Apache Commons IO 2.4Affected
  • Apache Commons IO 2.5Affected
  • Apache Commons IO 2.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.