Home / Apache Software Foundation / Apache Commons IO / CVE-2021-29425
CVE-2021-29425: is it exploited, and which versions of Apache Software Foundation Apache Commons IO are affected and fixed?
CVE-2021-29425 is an improper input validation vulnerability in Apache Software Foundation Apache Commons IO. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: commons-io:commons-io before 2.7, com.cosium.vet:vet through 3.22, com.virjar:ratel-api through 1.3.6 and 4 more (GitHub advisory GHSA-gwrp-pvrq-jmwv). Fixed in 2.7 (GitHub advisory GHSA-gwrp-pvrq-jmwv). Severity: Medium (6.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:59 UTC.
What is CVE-2021-29425?
Possible limited path traversal vulnerabily in Apache Commons IO
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.
From the CVE record by apache, last updated October 7, 2026, 18:16 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Commons IO | 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 |
As the CVE record by apache states it, last updated October 7, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | commons-io:commons-io | < 2.7 | 2.7 | GHSA-gwrp-pvrq-jmwv |
| Maven | com.cosium.vet:vet | >= 1.0, <= 3.22 | none listed | GHSA-gwrp-pvrq-jmwv |
| Maven | com.diamondq.common:common-thirdparty.jcasbin | 1.4.0 | none listed | GHSA-gwrp-pvrq-jmwv |
| Maven | com.liferay:com.liferay.sass.compiler.jsass | 1.0.1 | none listed | GHSA-gwrp-pvrq-jmwv |
| Maven | com.virjar:ratel-api | >= 1.0.0, <= 1.3.6 | none listed | GHSA-gwrp-pvrq-jmwv |
| Maven | net.hasor:cobble-lang | >= 4.4.1, <= 4.6.2 | none listed | GHSA-gwrp-pvrq-jmwv |
| Maven | org.apache.commons:commons-io | 1.3.2 | none listed | GHSA-gwrp-pvrq-jmwv |
| Maven | org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io | >= 1.4, <= 1.5 | none listed | GHSA-gwrp-pvrq-jmwv |
| Maven | org.checkerframework.annotatedlib:commons-io | >= 2.6, < 2.7 | 2.7 | GHSA-gwrp-pvrq-jmwv |
| Maven | org.smartboot.servlet:servlet-core | >= 0.1.9, <= 0.6 | none listed | GHSA-gwrp-pvrq-jmwv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 14, 2024. Summary: Path Traversal and Improper Input Validation in Apache Commons IO.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | commons io | 2.2 | application |
| apache | commons io | 2.3 | application |
| apache | commons io | 2.4 | application |
| apache | commons io | 2.5 | application |
| apache | commons io | 2.6 | application |
| debian | debian linux | 9.0 | operating system |
| oracle | access manager | 11.1.2.3.0 | application |
| oracle | access manager | 12.2.1.3.0 | application |
| oracle | access manager | 12.2.1.4.0 | application |
| oracle | agile engineering data management | 6.2.1.0 | application |
| oracle | agile product lifecycle management | 9.3.6 | application |
| oracle | application performance management | 13.4.1.0 | application |
| oracle | application performance management | 13.5.1.0 | application |
| oracle | application testing suite | 13.3.0.1 | application |
| oracle | banking apis | 18.1 | application |
| oracle | banking apis | 18.2 | application |
| oracle | banking apis | 18.3 | application |
| oracle | banking apis | 19.1 | application |
| oracle | banking apis | 19.2 | application |
| oracle | banking apis | 20.1 | application |
| oracle | banking apis | 21.1 | application |
| oracle | banking digital experience | 17.2 | application |
| oracle | banking digital experience | 18.1 | application |
| oracle | banking digital experience | 18.3 | application |
| oracle | banking digital experience | 19.1 | application |
NVD analysis (status Modified), last modified October 7, 2026, 19:17 UTC.
How severe is CVE-2021-29425?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N | CISA-ADP |
| Medium 4.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N | NVD |
| Medium 5.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-29425 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, October 7, 2026)
- EPSS
- 10.5% probability of exploitation activity in the next 30 days, percentile 95.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Is there a workaround? (from the CVE record)
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.
Where are the vendor advisories and references?
- https://issues.apache.org/jira/browse/IO-556 x_refsource_MISC
- https://lists.apache.org/thread.html/rc359823b5500e9a9a2572678ddb8e01d3505a7ffcadfa8d13b8780ab%40%3Cuser.commons.apache.org%3E x_refsource_MISC
- [commons-dev] 20210414 Re: [all] OSS Fuzz mailing-list, x_refsource_MLIST
- [commons-dev] 20210415 Re: [all] OSS Fuzz mailing-list, x_refsource_MLIST
- [pulsar-commits] 20210420 [GitHub] [pulsar] lhotari opened a new pull request #10287: [Security] Upgrade commons-io to address CVE-2021-29425 mailing-list, x_refsource_MLIST
- [pulsar-commits] 20210420 [GitHub] [pulsar] merlimat merged pull request #10287: [Security] Upgrade commons-io to address CVE-2021-29425 mailing-list, x_refsource_MLIST
- [creadur-dev] 20210427 [jira] [Closed] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity mailing-list, x_refsource_MLIST
- [creadur-dev] 20210427 [jira] [Created] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity mailing-list, x_refsource_MLIST
- [creadur-dev] 20210427 [jira] [Commented] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity mailing-list, x_refsource_MLIST
- [creadur-dev] 20210427 [jira] [Updated] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity mailing-list, x_refsource_MLIST
- [pulsar-commits] 20210429 [pulsar] branch branch-2.7 updated: [Security] Upgrade commons-io to address CVE-2021-29425 (#10287) mailing-list, x_refsource_MLIST
- [myfaces-dev] 20210504 [GitHub] [myfaces-tobago] lofwyr14 opened a new pull request #808: build: CVE fix mailing-list, x_refsource_MLIST
- [creadur-dev] 20210518 [jira] [Created] (WHISKER-19) Update commons-io to fix CVE-2021-29425 mailing-list, x_refsource_MLIST
- [creadur-dev] 20210518 [jira] [Commented] (WHISKER-19) Update commons-io to fix CVE-2021-29425 mailing-list, x_refsource_MLIST
- [creadur-dev] 20210518 [jira] [Assigned] (WHISKER-19) Update commons-io to fix CVE-2021-29425 mailing-list, x_refsource_MLIST
- [creadur-dev] 20210518 [jira] [Updated] (WHISKER-19) Update commons-io to fix CVE-2021-29425 mailing-list, x_refsource_MLIST
- [kafka-users] 20210617 vulnerabilities mailing-list, x_refsource_MLIST
- [creadur-dev] 20210621 [jira] [Commented] (RAT-281) Update commons-io to fix CVE-2021-29425 Moderate severity mailing-list, x_refsource_MLIST
- [commons-user] 20210709 commons-fileupload dependency and CVE mailing-list, x_refsource_MLIST
- [commons-user] 20210709 Re: commons-fileupload dependency and CVE mailing-list, x_refsource_MLIST
- [portals-pluto-dev] 20210714 [jira] [Closed] (PLUTO-789) Upgrade to commons-io-2.7 due to CVE-2021-29425 mailing-list, x_refsource_MLIST
- [portals-pluto-dev] 20210714 [jira] [Created] (PLUTO-789) Upgrade to commons-io-2.7 due to CVE-2021-29425 mailing-list, x_refsource_MLIST
- [portals-pluto-scm] 20210714 [portals-pluto] branch master updated: PLUTO-789 Upgrade to commons-io-2.7 due to CVE-2021-29425 mailing-list, x_refsource_MLIST
- [zookeeper-issues] 20210805 [jira] [Updated] (ZOOKEEPER-4343) OWASP Dependency-Check fails with CVE-2021-29425, commons-io-2.6 mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210805 [GitHub] [zookeeper] ztzg opened a new pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.7 (avoids CVE-2021-29 mailing-list, x_refsource_MLIST
- [zookeeper-dev] 20210805 [jira] [Created] (ZOOKEEPER-4343) OWASP Dependency-Check fails with CVE-2021-29425, commons-io-2.6 mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210805 [GitHub] [zookeeper] ztzg commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.7 (avoids CVE-2021-29 mailing-list, x_refsource_MLIST
- [zookeeper-issues] 20210805 [jira] [Created] (ZOOKEEPER-4343) OWASP Dependency-Check fails with CVE-2021-29425, commons-io-2.6 mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210806 [GitHub] [zookeeper] nkalmar commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.7 (avoids CVE-2021 mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20210812 [SECURITY] [DLA 2741-1] commons-io security update mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210813 [GitHub] [zookeeper] ztzg commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-2 mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210813 [GitHub] [zookeeper] eolivelli commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2 mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210813 [GitHub] [zookeeper] eolivelli commented on a change in pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 ( mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210816 [GitHub] [zookeeper] nkalmar edited a comment on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210816 [GitHub] [zookeeper] nkalmar commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-202 mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210825 [GitHub] [zookeeper] ztzg commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-2 mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210825 [GitHub] [zookeeper] ztzg commented on a change in pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoid mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210825 [GitHub] [zookeeper] eolivelli commented on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2 mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210825 [GitHub] [zookeeper] ztzg edited a comment on pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE mailing-list, x_refsource_MLIST
- [zookeeper-notifications] 20210901 [GitHub] [zookeeper] ztzg closed pull request #1735: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) mailing-list, x_refsource_MLIST
- [zookeeper-commits] 20210901 [zookeeper] branch master updated: ZOOKEEPER-4343: Bump commons-io to version 2.11 (avoids CVE-2021-29425) mailing-list, x_refsource_MLIST
- [zookeeper-issues] 20210901 [jira] [Resolved] (ZOOKEEPER-4343) OWASP Dependency-Check fails with CVE-2021-29425, commons-io-2.6 mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220210-0004/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 30, 2021
- Published
- April 13, 2021, 06:50 UTC
- CVE record updated
- October 7, 2026, 18:16 UTC by apache
- NVD
- Modified, last modified October 7, 2026, 19:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:59 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Commons IO?
- Oct 3, 2024CVE-2024-47554 Apache Software Foundation Apache Commons IO: denial of service (uncontrolled resource consumption)
Every CVE in Apache Commons IO
Questions about CVE-2021-29425
Is CVE-2021-29425 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 10.5% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Commons IO are affected by CVE-2021-29425?
commons-io:commons-io before 2.7, com.cosium.vet:vet through 3.22, com.virjar:ratel-api through 1.3.6, net.hasor:cobble-lang through 4.6.2, org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io through 1.5, org.checkerframework.annotatedlib:commons-io from 2.6 before 2.7 and 1 more, per the GitHub advisory GHSA-gwrp-pvrq-jmwv. The tables above give every range the sources list.
Which version fixes CVE-2021-29425?
2.7, per the GitHub advisory GHSA-gwrp-pvrq-jmwv. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-29425?
Medium (6.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-29425?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.