cve.bz

CVE-2021-29425 Path traversal

4.8 mediumExploit referenceEPSS 11%Fix available

Medium (4.8). EPSS 11% estimated probability of exploitation activity in the next 30 days. Fixed in commons-io:commons-io 2.7.

On this page
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.

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
11% (unchanged from 11% a week ago; 11% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-20 Improper Input Validation
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-29425 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29425?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29425?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-29425 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-29425

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-29425](https://cve.bz/cve/badge/CVE-2021-29425.svg)](https://cve.bz/cve/CVE-2021-29425)

HTML:

<a href="https://cve.bz/cve/CVE-2021-29425"><img src="https://cve.bz/cve/badge/CVE-2021-29425.svg" alt="CVE-2021-29425"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:commons_io2.2
apache:commons_io2.3
apache:commons_io2.4
apache:commons_io2.5
apache:commons_io2.6
debian:debian_linux9.0
oracle:access_manager11.1.2.3.0
oracle:access_manager12.2.1.3.0
oracle:access_manager12.2.1.4.0
oracle:agile_engineering_data_management6.2.1.0
oracle:agile_product_lifecycle_management9.3.6
oracle:application_performance_management13.4.1.0
oracle:application_performance_management13.5.1.0
oracle:application_testing_suite13.3.0.1
oracle:banking_apis18.1
oracle:banking_apis18.2
oracle:banking_apis18.3
oracle:banking_apis19.1
oracle:banking_apis19.2
oracle:banking_apis20.1
oracle:banking_apis21.1
oracle:banking_digital_experience17.2
oracle:banking_digital_experience18.1
oracle:banking_digital_experience18.3
oracle:banking_digital_experience19.1
oracle:banking_digital_experience19.2
oracle:banking_digital_experience20.1
oracle:banking_digital_experience21.1
oracle:banking_enterprise_default_management2.6.2
oracle:banking_enterprise_default_management2.7.0
oracle:banking_enterprise_default_management2.7.1
oracle:banking_enterprise_default_management2.10.0
oracle:banking_enterprise_default_management2.12.0
oracle:banking_enterprise_default_managmentfrom 2.3.0 through 2.4.0
oracle:banking_party_management2.7.0
oracle:banking_platformfrom 2.3.0 through 2.4.1
oracle:banking_platform2.6.2
oracle:banking_platform2.7.0
oracle:banking_platform2.7.1
oracle:blockchain_platformbefore 21.1.2
oracle:commerce_guided_search11.3.2
oracle:communications_application_session_controller3.9.0
oracle:communications_billing_and_revenue_management_elastic_charging_engine11.3
oracle:communications_billing_and_revenue_management_elastic_charging_engine12.0
oracle:communications_cloud_native_core_network_repository_function1.14.0
oracle:communications_cloud_native_core_policy1.14.0
oracle:communications_cloud_native_core_unified_data_repository1.4.0
oracle:communications_contacts_server8.0.0.6.0
oracle:communications_converged_application_server_-_service_controller6.2
oracle:communications_convergence3.0.2.2.0
oracle:communications_design_studiofrom 7.4.0 through 7.4.2
oracle:communications_design_studio7.3.5
oracle:communications_diameter_intelligence_hubfrom 8.0.0 through 8.1.0
oracle:communications_diameter_intelligence_hubfrom 8.2.0 through 8.2.3
oracle:communications_interactive_session_recorder6.3
oracle:communications_interactive_session_recorder6.4
oracle:communications_offline_mediation_controller12.0.0.3
oracle:communications_order_and_service_management7.3
oracle:communications_order_and_service_management7.4
oracle:communications_policy_management12.5.0.0.0
oracle:communications_pricing_design_center12.0.0.4.0
oracle:communications_pricing_design_center12.0.0.5.0
oracle:communications_service_broker6.2
oracle:enterprise_communications_broker3.3
oracle:enterprise_session_border_controller8.4
oracle:enterprise_session_border_controller9.0
oracle:financial_services_analytical_applications_infrastructurefrom 8.0.7 through 8.1.1
oracle:financial_services_model_management_and_governancefrom 8.0.8 through 8.1.1
oracle:flexcube_core_bankingfrom 11.6.0 through 11.8.0
oracle:flexcube_core_banking5.2.0
oracle:flexcube_core_banking11.10.0
oracle:fusion_middleware_mapviewer12.2.1.4.0
oracle:health_sciences_data_management_workbench2.5.2.1
oracle:health_sciences_data_management_workbench3.0.0.0
oracle:health_sciences_information_managerfrom 3.0.1 through 3.0.4
oracle:healthcare_data_repository8.1.0
oracle:helidon1.4.7
oracle:helidon2.2.0
oracle:insurance_policy_administration11.0.2
oracle:insurance_policy_administration11.1.0
oracle:insurance_policy_administration11.2.8
oracle:insurance_policy_administration11.3.0
oracle:insurance_policy_administration11.3.1
oracle:insurance_rules_palette11.0.2
oracle:insurance_rules_palette11.1.0
oracle:insurance_rules_palette11.2.8
oracle:insurance_rules_palette11.3.0
oracle:insurance_rules_palette11.3.1
oracle:oss_support_toolsbefore 2.12.42
oracle:primavera_unifierfrom 17.7 through 17.12
oracle:primavera_unifier18.8
oracle:primavera_unifier19.12
oracle:primavera_unifier20.12
oracle:primavera_unifier21.12
oracle:real_user_experience_insight13.4.1.0
oracle:real_user_experience_insight13.5.1.0
oracle:rest_data_servicesbefore 21.2
oracle:rest_data_services21.3
oracle:retail_assortment_planning16.0.3
oracle:retail_integration_busfrom 16.0.1 through 16.0.3
oracle:retail_integration_bus13.0
oracle:retail_integration_bus14.1.3.0
oracle:retail_integration_bus14.1.3.2
oracle:retail_integration_bus15.0.3.1
oracle:retail_integration_bus19.0.0
oracle:retail_integration_bus19.0.1
oracle:retail_merchandising_system16.0.3
oracle:retail_merchandising_system19.0.1
oracle:retail_order_broker16.0
oracle:retail_order_broker18.0
oracle:retail_order_broker19.1
oracle:retail_pricing19.0.1
oracle:retail_service_backbonefrom 16.0.1 through 16.0.3
oracle:retail_service_backbone14.1.3.0
oracle:retail_service_backbone14.1.3.2
oracle:retail_service_backbone15.0.3.1
oracle:retail_service_backbone19.0.0
oracle:retail_service_backbone19.0.1
oracle:retail_size_profile_optimization16.0.3
oracle:retail_xstore_point_of_service17.0.4
oracle:retail_xstore_point_of_service18.0.3
oracle:retail_xstore_point_of_service19.0.2
oracle:retail_xstore_point_of_service20.0.1
oracle:solaris_cluster4.0
oracle:utilities_testing_accelerator6.0.0.1.1
oracle:utilities_testing_accelerator6.0.0.2.2
oracle:utilities_testing_accelerator6.0.0.3.1
oracle:webcenter_portal12.2.1.3.0
oracle:webcenter_portal12.2.1.4.0
oracle:weblogic_server12.1.3.0.0
oracle:weblogic_server12.2.1.3.0
oracle:weblogic_server12.2.1.4.0
oracle:weblogic_server14.1.1.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gwrp-pvrq-jmwvMavencommons-io:commons-io<2.72.7
GHSA-gwrp-pvrq-jmwvMavencom.cosium.vet:vet>=1.0 <=3.22no fix published
GHSA-gwrp-pvrq-jmwvMavencom.diamondq.common:common-thirdparty.jcasbin1.4.0no fix published
GHSA-gwrp-pvrq-jmwvMavencom.liferay:com.liferay.sass.compiler.jsass1.0.1no fix published
GHSA-gwrp-pvrq-jmwvMavencom.virjar:ratel-api>=1.0.0 <=1.3.6no fix published
GHSA-gwrp-pvrq-jmwvMavennet.hasor:cobble-lang>=4.4.1 <=4.6.2no fix published
GHSA-gwrp-pvrq-jmwvMavenorg.apache.commons:commons-io1.3.2no fix published
GHSA-gwrp-pvrq-jmwvMavenorg.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io>=1.4 <=1.5no fix published
GHSA-gwrp-pvrq-jmwvMavenorg.checkerframework.annotatedlib:commons-io>=2.6 <2.72.7
GHSA-gwrp-pvrq-jmwvMavenorg.smartboot.servlet:servlet-core>=0.1.9 <=0.6no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9commons-io2.5-1+deb9u1DLA-2741-1
Debian12, 13, 14commons-io2.8.0-1DEBIAN-CVE-2021-29425
Ubuntu18.04:LTScommons-io2.6-2ubuntu0.18.04.1UBUNTU-CVE-2021-29425 USN-5095-1
Ubuntu20.04:LTScommons-io2.6-2ubuntu0.20.04.1UBUNTU-CVE-2021-29425 USN-5095-1
UbuntuPro:14.04:LTScommons-io2.4-2ubuntu0.1~esm1UBUNTU-CVE-2021-29425
UbuntuPro:16.04:LTScommons-iono fix listedUBUNTU-CVE-2021-29425
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-apache-commons-io0:2.10.0-1.redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-hal-console0:3.2.16-1.Final_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-hibernate, eap7-hibernate-core, eap7-hibernate-java8 and 2 more0:5.3.20-4.SP2_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.4.35-1.Final_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jakarta-el0:3.0.3-2.redhat_00006.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jberet, eap7-jberet-core0:1.3.9-1.Final_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-remoting0:5.0.23-2.SP1_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core and 19 more0:1.7.2-9.Final_redhat_00010.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-narayana, eap7-narayana-jbossxts, eap7-narayana-jts-idlj and 8 more0:5.9.12-1.Final_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-picketbox, eap7-picketbox-infinispan0:5.0.3-9.Final_redhat_00008.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-undertow0:2.0.39-1.SP2_redhat_00001.1.el6eapRHSA-2021:3466
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs0:7.3.9-2.GA_redhat_00002.1.el6eapRHSA-2021:3466
44 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Basesystem 15 SP2apache-commons-io2.6-3.3.1SUSE-SU-2021:1282-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5apache-commons-io2.4-9.3.1SUSE-SU-2021:1315-1
openSUSELeap 15.2apache-commons-io2.6-lp152.2.3.1openSUSE-SU-2021:0605-1
openSUSETumbleweedapache-commons-io2.11.0-2.1openSUSE-SU-2024:12099-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

While the apache-commons-io package included in Red Hat Enterprise Linux 8 Maven App Stream contains the vulnerable code, it is not used in any way by Maven or other packages in this module. This package is not an API component of Maven, thus the affected code can not be reached in any supported scenario.

ProductPackageStateAdvisory
EAP 7.3.9 releasecommons-ioFixed 2021-09-08RHSA-2021:3471
Red Hat AMQ 7.9.0commons-ioFixed 2021-09-30RHSA-2021:3700
Red Hat AMQ Streams 1.8.0commons-ioFixed 2021-08-19RHSA-2021:3225
Red Hat EAP-XP 2.0.0 via EAP 7.3.x basecommons-ioFixed 2021-09-13RHSA-2021:3516
Red Hat Fuse 7.10commons-ioFixed 2021-12-14RHSA-2021:5134
Red Hat JBoss Enterprise Application Platformcommons-io/commons-io:2.10.0.redhat-00001Fixed 2021-09-23RHSA-2021:3660
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6eap7-apache-commons-io-0:2.10.0-1.redhat_00001.1.el6eapFixed 2021-09-08RHSA-2021:3466
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6eap7-hal-console-0:3.2.16-1.Final_redhat_00001.1.el6eapFixed 2021-09-08RHSA-2021:3466
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6eap7-hibernate-0:5.3.20-4.SP2_redhat_00001.1.el6eapFixed 2021-09-08RHSA-2021:3466
Red Hat JBoss Enterprise Application Platform 7.3 for RHEL 6eap7-ironjacamar-0:1.4.35-1.Final_redhat_00001.1.el6eapFixed 2021-09-08RHSA-2021:3466
A-MQ Clients 2commons-ioWill not fix
Red Hat BPM Suite 6commons-ioOut of support scope
Red Hat build of Quarkuscommons-ioNot affected
Red Hat Data Grid 8commons-ioWill not fix
Red Hat Enterprise Linux 7apache-commons-ioOut of support scope
Red Hat Enterprise Linux 8maven:3.5/apache-commons-ioNot affected
Red Hat Enterprise Linux 8maven:3.6/apache-commons-ioNot affected
Red Hat Enterprise Linux 9apache-commons-ioNot affected
Red Hat JBoss A-MQ 6commons-ioOut of support scope
Red Hat JBoss BRMS 6commons-ioOut of support scope
53 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-29425.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON