Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-29425

MEDIUM 6.5PoCEPSS 97%

Possible limited path traversal vulnerabily in Apache Commons IO

Also known as GHSA-gwrp-pvrq-jmwv

Mitigation

  • Upgrade commons-io:commons-io to 2.7 or later.
  • Upgrade org.checkerframework.annotatedlib:commons-io to 2.7 or later.
  • Vendor 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.

Who should check

  • Projects that depend on Maven package commons-io:commons-io (< 2.7)
  • Projects that depend on Maven package com.cosium.vet:vet (>= 1.0, <= 3.22)
  • Projects that depend on Maven package com.diamondq.common:common-thirdparty.jcasbin (1.4.0)
  • Projects that depend on Maven package com.liferay:com.liferay.sass.compiler.jsass (1.0.1)
  • Projects that depend on Maven package com.virjar:ratel-api (>= 1.0.0, <= 1.3.6)
  • Projects that depend on Maven package net.hasor:cobble-lang (>= 4.4.1, <= 4.6.2)
  • Projects that depend on Maven package org.apache.commons:commons-io (1.3.2)
  • Projects that depend on Maven package org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io (>= 1.4, <= 1.5)

Vulnerability facts

Affected
commons-io:commons-io < 2.7; com.cosium.vet:vet >= 1.0, <= 3.22; com.diamondq.common:common-thirdparty.jcasbin 1.4.0; com.liferay:com.liferay.sass.compiler.jsass 1.0.1; com.virjar:ratel-api >= 1.0.0, <= 1.3.6; net.hasor:cobble-lang >= 4.4.1, <= 4.6.2; org.apache.commons:commons-io 1.3.2; org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io >= 1.4, <= 1.5; org.checkerframework.annotatedlib:commons-io >= 2.6, < 2.7; org.smartboot.servlet:servlet-core >= 0.1.9, <= 0.6
Fixed in
2.7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
Yes: see the exploit references below
Remote exploitation
Remote, no login needed
CVSS
6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
EPSS
10.55% chance of exploitation in 30 days (percentile 97, 2026-11-26)
CWE
CWE-20
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Maven commons-io:commons-io< 2.72.7osv
Maven com.cosium.vet:vet>= 1.0, <= 3.22—osv
Maven com.diamondq.common:common-thirdparty.jcasbin1.4.0—osv
Maven com.liferay:com.liferay.sass.compiler.jsass1.0.1—osv
Maven com.virjar:ratel-api>= 1.0.0, <= 1.3.6—osv
Maven net.hasor:cobble-lang>= 4.4.1, <= 4.6.2—osv
Maven org.apache.commons:commons-io1.3.2—osv
Maven org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io>= 1.4, <= 1.5—osv
Maven org.checkerframework.annotatedlib:commons-io>= 2.6, < 2.72.7osv
Maven org.smartboot.servlet:servlet-core>= 0.1.9, <= 0.6—osv
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.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-29425. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-29425.md
Affected: commons-io:commons-io < 2.7; com.cosium.vet:vet >= 1.0, <= 3.22; com.diamondq.common:common-thirdparty.jcasbin 1.4.0; com.liferay:com.liferay.sass.compiler.jsass 1.0.1; com.virjar:ratel-api >= 1.0.0, <= 1.3.6; net.hasor:cobble-lang >= 4.4.1, <= 4.6.2; org.apache.commons:commons-io 1.3.2; org.apache…
Fixed in: 2.7

Steps:
1. Search this machine and project for commons-io:commons-io (Maven), com.cosium.vet:vet (Maven), com.diamondq.common:common-thirdparty.jcasbin (Maven), com.liferay:com.liferay.sass.compiler.jsass (Maven), com.virjar:ratel-api (Maven), net.hasor:cobble-lang (Maven): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

Other

FAQ

Is CVE-2021-29425 being exploited?

There is no confirmed exploitation: CVE-2021-29425 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 10.55% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-29425?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2021-29425?

commons-io:commons-io < 2.7; com.cosium.vet:vet >= 1.0, <= 3.22; com.diamondq.common:common-thirdparty.jcasbin 1.4.0; com.liferay:com.liferay.sass.compiler.jsass 1.0.1; com.virjar:ratel-api >= 1.0.0, <= 1.3.6; net.hasor:cobble-lang >= 4.4.1, <= 4.6.2; org.apache.commons:commons-io 1.3.2; org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io >= 1.4, <= 1.5; org.checkerframework.annotatedlib:commons-io >= 2.6, < 2.7; org.smartboot.servlet:servlet-core >= 0.1.9, <= 0.6.

Is there a fix for CVE-2021-29425?

Yes. Fixed in 2.7. Upgrade commons-io:commons-io to 2.7 or later. Upgrade org.checkerframework.annotatedlib:commons-io to 2.7 or later. Vendor 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.

How do I check if I'm affected by CVE-2021-29425?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors