PT-2021-2689
CVE-2021-29425
·
Published
2021-04-13
·
Updated
2026-10-08
Description by
CVSS 3.1
6.5
MediumMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions
Apache Commons IO versions prior to 2.7
Description
The issue is related to the FileNameUtils.normalize method in Apache Commons IO, which incorrectly handles directory traversal sequences such as "//../foo" or "..foo". This could allow a remote attacker to gain unauthorized access to protected information by potentially providing access to files in the parent directory, but not further above, thus "limited" path traversal.
Recommendations
For Apache Commons IO versions prior to 2.7, update to version 2.7 or later to resolve the issue. As a temporary workaround, consider validating input strings to the FileNameUtils.normalize method to prevent improper input, such as "//../foo" or "..foo", from being processed. Restrict access to sensitive files and directories to minimize the risk of exploitation.
Found an issue in the description? Have something to add? Feel free to write us 👾