Skip to main content

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in com.cosium.vet:vet

CVE-2021-29425

  • com.cosium.vet:vet
  • com.diamondq.common:common-thirdparty.jcasbin
  • com.liferay:com.liferay.sass.compiler.jsass
  • commons-io:commons-io
  • com.virjar:ratel-api
  • net.hasor:cobble-lang
  • org.apache.commons:commons-io
  • org.apache.servicemix.bundles:org.apache.servicemix.bundles.commons-io
  • org.checkerframework.annotatedlib:commons-io
  • org.smartboot.servlet:servlet-core
Severity Medium
Score 4.8/10

Summary

In Commons IO versions 1.1 through 2.6, 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. Other projects and packages that embed the Apache Commons IO code are affected, an example is "com.cosium.vet:vet".

  • HIGH
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • NONE
  • LOW
  • NONE

CWE-22 - Path Traversal

Path traversal (or directory traversal), is a vulnerability that allows malicious users to traverse the server's root directory, gaining access to arbitrary files and folders such as application code & data, back-end credentials, and sensitive operating system files. In the worst-case scenario, an attacker could potentially execute arbitrary files on the server, resulting in a denial of service attack. Such an exploit may severely impact the integrity, confidentiality, and availability of an application.

Advisory Timeline

  • Published