CVE-2021-29425

MEDIUM

Apache Commons IO < 2.4.0 - Path Traversal

Title source: rule

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.

Exploits (2)

nomisec WRITEUP
by shoucheng3 · poc
https://github.com/shoucheng3/asf__commons-io_CVE-2021-29425_2-6
nomisec WORKING POC
by arsalanraja987 · poc
https://github.com/arsalanraja987/java-cve-2021-29425-tika-xxe

References (47)

... and 27 more

Scores

CVSS v3 4.8
EPSS 0.0049
EPSS Percentile 65.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Details

CWE
CWE-22 CWE-20
Status published
Products (48)
apache/commons_io 2.2
apache/commons_io 2.3
apache/commons_io 2.4
apache/commons_io 2.5
apache/commons_io 2.6
com.cosium.vet/vet 1.0Maven
com.diamondq.common/common-thirdparty.jcasbin Maven
com.liferay/com.liferay.sass.compiler.jsass Maven
commons-io/commons-io 0 - 2.7Maven
com.virjar/ratel-api 1.0.0Maven
... and 38 more
Published Apr 13, 2021
Tracked Since Feb 18, 2026