ADVISORIES

GitHub Advisory Database

GHSA-gwrp-pvrq-jmwv

Path Traversal and Improper Input Validation in Apache Commons IO

Moderate CVE-2021-29425

Details

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

EcosystemPackageAffected versions
Mavencommons-io:commons-io
All versions before 2.7 (fixed in 2.7)
Mavencom.cosium.vet:vet
From 1.0 up to and including 3.22
Mavencom.diamondq.common:common-thirdparty.jcasbin
1.4.0
Mavencom.liferay:com.liferay.sass.compiler.jsass
1.0.1
Mavencom.virjar:ratel-api
From 1.0.0 up to and including 1.3.6
Mavennet.hasor:cobble-lang
From 4.4.1 up to and including 4.6.2
Mavenorg.apache.commons:commons-io
1.3.2
Mavenorg.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io
From 1.4 up to and including 1.5
Mavenorg.checkerframework.annotatedlib:commons-io
From 2.6 before 2.7 (fixed in 2.7)
Mavenorg.smartboot.servlet:servlet-core
From 0.1.9 up to and including 0.6

References