CVE-2021-29425
JSON

6.5medium

Possible limited path traversal vulnerabily in Apache Commons IO

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
10.5% (higher than 95% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-gwrp-pvrq-jmwv

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

Product or packageVersionsReported by
Apache Software Foundation Apache Commons IOApache Commons IO 2.2, Apache Commons IO 2.3, Apache Commons IO 2.4, Apache Commons IO 2.5, Apache Commons IO 2.6CVE List
commons-io:commons-io (Maven)before 2.7GitHub Advisory Database
com.cosium.vet:vet (Maven)from 1.0 up to 3.22GitHub Advisory Database
com.diamondq.common:common-thirdparty.jcasbin (Maven)1.4.0GitHub Advisory Database
com.liferay:com.liferay.sass.compiler.jsass (Maven)1.0.1GitHub Advisory Database
com.virjar:ratel-api (Maven)from 1.0.0 up to 1.3.6GitHub Advisory Database
net.hasor:cobble-lang (Maven)from 4.4.1 up to 4.6.2GitHub Advisory Database
org.apache.commons:commons-io (Maven)1.3.2GitHub Advisory Database
org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io (Maven)from 1.4 up to 1.5GitHub Advisory Database
org.checkerframework.annotatedlib:commons-io (Maven)from 2.6 before 2.7GitHub Advisory Database
org.smartboot.servlet:servlet-core (Maven)from 0.1.9 up to 0.6GitHub Advisory Database
apache commons_io2.2, 2.3, 2.4, 2.5, 2.6NVD

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
GitHub4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N

Classification

CWE-20CWE-22

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En Apache Commons IO versiones anteriores a 2.7, Cuando se invoca el método FileNameUtils.normalize con una cadena de entrada inapropiada, como "//../foo" o "\\..\ foo", el resultado sería el mismo valor, por lo que posiblemente proporcionar acceso a archivos en el directorio principal, pero no más arriba (por lo tanto, salto de ruta "limited"), si el código de llamada usara el resultado para construir un valor de ruta

References

https://issues.apache.org/jira/browse/IO-556exploit, issue-tracking, vendor-advisory, web
https://lists.apache.org/thread.html/rc359823b5500e9a9a2572678ddb8e01d3505a7ffcadfa8d13b8780ab%40%3Cuser.commons.apache.org%3Emailing-list, vendor-advisory, web
https://lists.apache.org/thread.html/rfd01af05babc95b8949e6d8ea78d9834699e1b06981040dde419a330%40%3Cdev.commons.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r8efcbabde973ea72f5e0933adc48ef1425db5cde850bf641b3993f31%40%3Cdev.commons.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r873d5ddafc0a68fd999725e559776dc4971d1ab39c0f5cc81bd9bc04%40%3Ccommits.pulsar.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r0d73e2071d1f1afe1a15da14c5b6feb2cf17e3871168d5a3c8451436%40%3Ccommits.pulsar.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r47ab6f68cbba8e730f42c4ea752f3a44eb95fb09064070f2476bb401%40%3Cdev.creadur.apache.org%3Emailing-list
https://lists.apache.org/thread.html/raa053846cae9d497606027816ae87b4e002b2e0eb66cb0dee710e1f5%40%3Cdev.creadur.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r8569a41d565ca880a4dee0e645dad1cd17ab4a92e68055ad9ebb7375%40%3Cdev.creadur.apache.org%3Emailing-list
https://lists.apache.org/thread.html/rfa2f08b7c0caf80ca9f4a18bd875918fdd4e894e2ea47942a4589b9c%40%3Cdev.creadur.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r1c2f4683c35696cf6f863e3c107e37ec41305b1930dd40c17260de71%40%3Ccommits.pulsar.apache.org%3Emailing-list
https://lists.apache.org/thread.html/r27b1eedda37468256c4bb768fde1e8b79b37ec975cbbfd0d65a7ac34%40%3Cdev.myfaces.apache.org%3Emailing-list

Sources

SourceRecordLicence
CVE ListCVE-2021-29425 changed 2026-10-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-gwrp-pvrq-jmwv changed 2024-02-14CC-BY-4.0
NVDCVE-2021-29425 changed 2026-10-07Public domain