# Path Traversal and Improper Input Validation in Apache Commons IO

Advisory record · `GHSA-gwrp-pvrq-jmwv`

- **Identifiers:** `GHSA-gwrp-pvrq-jmwv` · `CVE-2021-29425`
- **State:** Confirmed
- **Severity:** CVSS 4.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-20](https://cwe.mitre.org/data/definitions/20.html) · [CWE-22](https://cwe.mitre.org/data/definitions/22.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md) · [CWE-20](https://agentprime.io/advisories/tag/cwe-20.md)
- **Published:** 26 Apr 2021
- **Updated:** 14 Feb 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 26 Apr 2021, 16:04 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

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

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.8 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.11, the 95th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 26 Apr 2021. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-gwrp-pvrq-jmwv](https://github.com/advisories/GHSA-gwrp-pvrq-jmwv)
- [OSV: GHSA-gwrp-pvrq-jmwv](https://osv.dev/vulnerability/GHSA-gwrp-pvrq-jmwv)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29425>
- <https://lists.apache.org/thread.html/r8efcbabde973ea72f5e0933adc48ef1425db5cde850bf641b3993f31@%3Cdev.commons.apache.org%3E>
- <https://lists.apache.org/thread.html/r92ea904f4bae190b03bd42a4355ce3c2fbe8f36ab673e03f6ca3f9fa@%3Cnotifications.zookeeper.apache.org%3E>
- <https://lists.apache.org/thread.html/ra8ef65aedc086d2d3d21492b4c08ae0eb8a3a42cc52e29ba1bc009d8@%3Cdev.creadur.apache.org%3E>
- <https://lists.apache.org/thread.html/raa053846cae9d497606027816ae87b4e002b2e0eb66cb0dee710e1f5@%3Cdev.creadur.apache.org%3E>
- <https://lists.apache.org/thread.html/rad4ae544747df32ccd58fff5a86cd556640396aeb161aa71dd3d192a@%3Cuser.commons.apache.org%3E>
- <https://lists.apache.org/thread.html/rbebd3e19651baa7a4a5503a9901c95989df9d40602c8e35cb05d3eb5@%3Cdev.creadur.apache.org%3E>
- <https://lists.apache.org/thread.html/rc10fa20ef4d13cbf6ebe0b06b5edb95466a1424a9b7673074ed03260@%3Cnotifications.zookeeper.apache.org%3E>
- <https://lists.apache.org/thread.html/rc2dd3204260e9227a67253ef68b6f1599446005bfa0e1ddce4573a80@%3Cpluto-dev.portals.apache.org%3E>
- <https://lists.apache.org/thread.html/rc359823b5500e9a9a2572678ddb8e01d3505a7ffcadfa8d13b8780ab%40%3Cuser.commons.apache.org%3E>
- <https://lists.apache.org/thread.html/rc5f3df5316c5237b78a3dff5ab95b311ad08e61d418cd992ca7e34ae@%3Cnotifications.zookeeper.apache.org%3E>
- <https://lists.apache.org/thread.html/rc65f9bc679feffe4589ea0981ee98bc0af9139470f077a91580eeee0@%3Cpluto-dev.portals.apache.org%3E>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-gwrp-pvrq-jmwv>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-gwrp-pvrq-jmwv/>. Everything for agents: <https://agentprime.io/llms.txt>.
