Vulnerability · Published Apr 13, 2021 · Assigned by apache

CVE-2021-29425Possible limited path traversal vulnerabily in Apache Commons IO

Medium 6.5

In plain English

A medium-severity improper input validation in Apache Commons IO from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 10.5% (higher than 96% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)10.5%top 4.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12commons-io2.8.0-1DEBIAN-CVE-2021-29425
Debian:13commons-io2.8.0-1DEBIAN-CVE-2021-29425
Debian:14commons-io2.8.0-1DEBIAN-CVE-2021-29425
Mavencom.cosium.vet:vetno fix listedGHSA-gwrp-pvrq-jmwv
Mavencom.diamondq.common:common-thirdparty.jcasbinno fix listedGHSA-gwrp-pvrq-jmwv
Mavencom.liferay:com.liferay.sass.compiler.jsassno fix listedGHSA-gwrp-pvrq-jmwv
Mavencom.virjar:ratel-apino fix listedGHSA-gwrp-pvrq-jmwv
Mavencommons-io:commons-io2.7GHSA-gwrp-pvrq-jmwv
Mavennet.hasor:cobble-langno fix listedGHSA-gwrp-pvrq-jmwv
Mavenorg.apache.commons:commons-iono fix listedGHSA-gwrp-pvrq-jmwv
Mavenorg.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-iono fix listedGHSA-gwrp-pvrq-jmwv
Mavenorg.checkerframework.annotatedlib:commons-io2.7GHSA-gwrp-pvrq-jmwv
Mavenorg.smartboot.servlet:servlet-coreno fix listedGHSA-gwrp-pvrq-jmwv

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Commons IO Apache Commons IO 2.2Apache Commons IO 2.3Apache Commons IO 2.4Apache Commons IO 2.5Apache Commons IO 2.6

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

References