CVE Database›Document archive›CVE-2021-29425

CVE-2021-29425

apache-commons-io: Limited path traversal in Apache Commons IO 2.2 to 2.6

Loading…

Severity

Moderate

Red Hat Product Security

4.8

CVSS 3.1

Review impact separately from score.

Published · April 12, 2021

Updated · November 4, 2026

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.

Statement

While the apache-commons-io package included in Red Hat Enterprise Linux 8 Maven App Stream contains the vulnerable code, it is not used in any way by Maven or other packages in this module. This package is not an API component of Maven, thus the affected code can not be reached in any supported scenario.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 4.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

CWE-22 · Improper Limitation of a Pathname to a Restricted Directory