Medium

Path Traversal and Improper Input Validation in Apache Commons IO

  • Disclosed: 26.04.2021
  • Updated: 11.10.2026 11:21

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 software

Click a technology to see all vulnerabilities affecting it.

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

References

CVSS score 4.8/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness (CWE)
CWE-20, CWE-22
Platform
Java / Kotlin (Maven)
Package
com.cosium.vet:vet, com.diamondq.common:common-thirdparty.jcasbin, com.liferay:com.liferay.sass.compiler.jsass
Disclosed
26.04.2021
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-gwrp-pvrq-jmwv - CC BY 4.0

Vulnerability history: com.virjar:ratel-api

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.