CVE-2021-29425Possible limited path traversal vulnerabily in Apache Commons IO
- 6.5MediumCVSS base score
- 10.5%Exploitation in 30 daysEPSS · top 4.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By apache
- 14 days later
· 14 days later
Published
- 5 years later
· 5 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 10.5% · top 4.1% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Affected products
Apache Software Foundation · Apache Commons IO
- affected Apache Commons IO 2.2
- affected Apache Commons IO 2.3
- affected Apache Commons IO 2.4
- affected Apache Commons IO 2.5
- affected Apache Commons IO 2.6
Affected packages
Affected packages10
From reviewed advisories of the GitHub Advisory Database.
- Mavencom.cosium.vet:vetGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavencom.diamondq.common:common-thirdparty.jcasbinGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavencom.liferay:com.liferay.sass.compiler.jsassGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavencom.virjar:ratel-apiGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavencommons-io:commons-ioGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavennet.hasor:cobble-langGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavenorg.apache.commons:commons-ioGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavenorg.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-ioGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavenorg.checkerframework.annotatedlib:commons-ioGHSA-gwrp-pvrq-jmwv (opens in a new tab)
- Mavenorg.smartboot.servlet:servlet-coreGHSA-gwrp-pvrq-jmwv (opens in a new tab)
What to do
Workaround: Neither the method in question (FileNameUtils.normalize) nor any methods, that invoke it, do actually access any files. There's only a string returned, from which a path can be constructed. In other words, a possible workaround would be not passing any unsafe input to FileNameUtils.normalize.
Workaround: Upgrade to Apache Commons IO 2.7, or later, where the same method returns the value null, as an indication of "invalid input".
References
References47
- https://issues.apache.org/jira/browse/IO-556 (opens in a new tab)x_refsource_MISCx_transferred
- https://lists.apache.org/thread.html/rc359823b5500e9a9a2572678ddb8e01d3505a7ffcadfa8d13b8780ab%40%3Cuser.commons.apache.org%3E (opens in a new tab)x_refsource_MISCx_transferred
- [commons-dev] 20210414 Re: [all] OSS Fuzz (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [commons-dev] 20210415 Re: [all] OSS Fuzz (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210420 [GitHub] [pulsar] lhotari opened a new pull request #10287: [Security] Upgrade commons-io to address CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210420 [GitHub] [pulsar] merlimat merged pull request #10287: [Security] Upgrade commons-io to address CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210427 [jira] [Closed] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210427 [jira] [Created] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210427 [jira] [Commented] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210427 [jira] [Updated] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [pulsar-commits] 20210429 [pulsar] branch branch-2.7 updated: [Security] Upgrade commons-io to address CVE-2021-29425 (#10287) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [myfaces-dev] 20210504 [GitHub] [myfaces-tobago] lofwyr14 opened a new pull request #808: build: CVE fix (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210518 [jira] [Created] (WHISKER-19) Update commons-io to fix CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210518 [jira] [Commented] (WHISKER-19) Update commons-io to fix CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210518 [jira] [Assigned] (WHISKER-19) Update commons-io to fix CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210518 [jira] [Updated] (WHISKER-19) Update commons-io to fix CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [kafka-users] 20210617 vulnerabilities (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [creadur-dev] 20210621 [jira] [Commented] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [commons-user] 20210709 commons-fileupload dependency and CVE (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [commons-user] 20210709 Re: commons-fileupload dependency and CVE (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [portals-pluto-dev] 20210714 [jira] [Closed] (PLUTO-789) Upgrade to commons-io-2.7 due to CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [portals-pluto-dev] 20210714 [jira] [Created] (PLUTO-789) Upgrade to commons-io-2.7 due to CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [portals-pluto-scm] 20210714 [portals-pluto] branch master updated: PLUTO-789 Upgrade to commons-io-2.7 due to CVE-2021-29425 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-issues] 20210805 [jira] [Updated] (ZOOKEEPER-4343) OWASP Dependency-Check fails with CVE-2021-29425, commons-io-2.6 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210805 [GitHub] [zookeeper] ztzg opened a new pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.7 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-dev] 20210805 [jira] [Created] (ZOOKEEPER-4343) OWASP Dependency-Check fails with CVE-2021-29425, commons-io-2.6 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210805 [GitHub] [zookeeper] ztzg commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.7 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-issues] 20210805 [jira] [Created] (ZOOKEEPER-4343) OWASP Dependency-Check fails with CVE-2021-29425, commons-io-2.6 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210806 [GitHub] [zookeeper] nkalmar commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.7 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [debian-lts-announce] 20210812 [SECURITY] [DLA 2741-1] commons-io security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210813 [GitHub] [zookeeper] ztzg commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210813 [GitHub] [zookeeper] eolivelli commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210813 [GitHub] [zookeeper] eolivelli commented on a change in pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210816 [GitHub] [zookeeper] nkalmar edited a comment on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210816 [GitHub] [zookeeper] nkalmar commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210825 [GitHub] [zookeeper] ztzg commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210825 [GitHub] [zookeeper] ztzg commented on a change in pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210825 [GitHub] [zookeeper] eolivelli commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210825 [GitHub] [zookeeper] ztzg edited a comment on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-notifications] 20210901 [GitHub] [zookeeper] ztzg closed pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-commits] 20210901 [zookeeper] branch master updated: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [zookeeper-issues] 20210901 [jira] [Resolved] (ZOOKEEPER-4343) OWASP Dependency-Check fails with CVE-2021-29425, commons-io-2.6 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com/security-alerts/cpuoct2021.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpujan2022.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpuapr2022.html (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20220210-0004/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.oracle.com/security-alerts/cpujul2022.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0828 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-gwrp-pvrq-jmwv (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-29425)Record last updated .