CVE-2021-29425
Path Traversal and Improper Input Validation in Apache Commons IO
4.8
MEDIUM
CVSS 3.1
EPSS 0.48%
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.
How to fix CVE-2021-29425
To remediate CVE-2021-29425, upgrade the affected package to a fixed version below.
- —upgrade to 2.8.0-1 or later
- —upgrade to 2.5-1+deb9u1 or later
- —no fix listed
- —no fix listed
- —no fix listed
- —upgrade to 2.7 or later
- —no fix listed
- —no fix listed
- —no fix listed
- —no fix listed
- —upgrade to 2.7 or later
- —no fix listed
Is CVE-2021-29425 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (12)
- from 0, < 2.8.0-1
- from 0, < 2.5-1+deb9u1
- >= 1.0, <= 3.22
- from 0, < 2.7
- >= 1.0.0, <= 1.3.6
- >= 4.4.1, <= 4.6.2
- >= 1.4, <= 1.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |