PT-2021-2689 · Apache+6 · Apache Commons Io+6
Published
2021-04-13
·
Updated
2025-01-16
·
CVE-2021-29425
CVSS v2.0
5.8
Medium
| Vector | AV:N/AC:M/Au:N/C:P/I:P/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.
Exploit
Fix
RCE
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Apache Commons Io
Astra Linux
Linuxmint
Oracle Weblogic Server
Suse
Ubuntu