CVE-2021-29425
CVE-2021-29425 · Possible limited path traversal vulnerabily in Apache Commons IO
CVSS 6.5 · Medium · EPSS 10.5% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- apache commons ioNo fix published
- commons-io Debian 12Update to 2.8.0-1
- commons-io Debian 13Update to 2.8.0-1
- commons-io Debian 14Update to 2.8.0-1
- and 4 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="commons-io"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
This page shows selected source facts. See the linked advisories for the complete description and affected versions.
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.
- Published
- Updated
Fixes in distributions
- RHSA-2021:3658 · Red Hat jboss enterprise application platform 7.4 el8 ·
- RHSA-2021:3656 · Red Hat jboss enterprise application platform 7.4 el7 ·
- RHSA-2021:3466 · Red Hat jboss enterprise application platform 7.3 el6 ·
- RHSA-2021:3468 · Red Hat jboss enterprise application platform 7.3 el8 ·
- RHSA-2021:3467 · Red Hat jboss enterprise application platform 7.3 el7 ·
- openSUSE-SU-2024:12099-1 · openSUSE Tumbleweed ·
- USN-5095-1 · Ubuntu 18.04 LTS, Ubuntu 20.04 LTS ·
- DLA-2741-1 · Debian 9 ·
- SUSE-SU-2021:1315-1 · SUSE Linux Enterprise Server 12 SP5, SUSE Linux Enterprise Server for SAP Applications 12 SP5, SUSE Linux Enterprise Software Development Kit 12 SP5 ·
- openSUSE-SU-2021:0605-1 · openSUSE Leap 15.2 ·
- SUSE-SU-2021:1282-1 · SUSE Linux Enterprise Module for Basesystem 15 SP2 ·
Stack: system
Affected products and versions
apache commons io
- Versions
- Apache Commons IO 2.2: Affected
- Apache Commons IO 2.3: Affected
- Apache Commons IO 2.4: Affected
- Apache Commons IO 2.5: Affected
- Apache Commons IO 2.6: Affected
No fix published
commons-io Debian 12
- Affected ranges
- ECOSYSTEM: < 2.8.0-1
Update to 2.8.0-1
commons-io Debian 13
- Affected ranges
- ECOSYSTEM: < 2.8.0-1
Update to 2.8.0-1
commons-io Debian 14
- Affected ranges
- ECOSYSTEM: < 2.8.0-1
Update to 2.8.0-1
commons-io Ubuntu Pro 14.04 LTS
- Versions
- 2.4-2
- Affected ranges
- ECOSYSTEM: < 2.4-2ubuntu0.1~esm1
Update to 2.4-2ubuntu0.1~esm1
commons-io Ubuntu Pro 16.04 LTS
- Versions
- 2.4-2
- 2.4-2ubuntu0.16.04.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
commons-io Ubuntu 18.04 LTS
- Versions
- 2.5-1
- 2.5-2
- 2.6-1
- 2.6-2
- Affected ranges
- ECOSYSTEM: < 2.6-2ubuntu0.18.04.1
Update to 2.6-2ubuntu0.18.04.1
commons-io Ubuntu 20.04 LTS
- Versions
- 2.6-2
- Affected ranges
- ECOSYSTEM: < 2.6-2ubuntu0.20.04.1
Update to 2.6-2ubuntu0.20.04.1
Original sources
- https://issues.apache.org/jira/browse/IO-556
- https://lists.apache.org/thread.html/rc359823b5500e9a9a2572678ddb8e01d3505a7ffcadfa8d13b8780ab%40%3Cuser.commons.apache.org%3E
- https://lists.apache.org/thread.html/rfd01af05babc95b8949e6d8ea78d9834699e1b06981040dde419a330%40%3Cdev.commons.apache.org%3E
- https://lists.apache.org/thread.html/r8efcbabde973ea72f5e0933adc48ef1425db5cde850bf641b3993f31%40%3Cdev.commons.apache.org%3E
- https://lists.apache.org/thread.html/r873d5ddafc0a68fd999725e559776dc4971d1ab39c0f5cc81bd9bc04%40%3Ccommits.pulsar.apache.org%3E
- https://lists.apache.org/thread.html/r0d73e2071d1f1afe1a15da14c5b6feb2cf17e3871168d5a3c8451436%40%3Ccommits.pulsar.apache.org%3E
- https://lists.apache.org/thread.html/r47ab6f68cbba8e730f42c4ea752f3a44eb95fb09064070f2476bb401%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/raa053846cae9d497606027816ae87b4e002b2e0eb66cb0dee710e1f5%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/r8569a41d565ca880a4dee0e645dad1cd17ab4a92e68055ad9ebb7375%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/rfa2f08b7c0caf80ca9f4a18bd875918fdd4e894e2ea47942a4589b9c%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/r1c2f4683c35696cf6f863e3c107e37ec41305b1930dd40c17260de71%40%3Ccommits.pulsar.apache.org%3E
- https://lists.apache.org/thread.html/r27b1eedda37468256c4bb768fde1e8b79b37ec975cbbfd0d65a7ac34%40%3Cdev.myfaces.apache.org%3E
- https://lists.apache.org/thread.html/ra8ef65aedc086d2d3d21492b4c08ae0eb8a3a42cc52e29ba1bc009d8%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/r523a6ffad58f71c4f3761e3cee72df878e48cdc89ebdce933be1475c%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/rbebd3e19651baa7a4a5503a9901c95989df9d40602c8e35cb05d3eb5%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/r2bc986a070457daca457a54fe71ee09d2584c24dc262336ca32b6a19%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/r2721aba31a8562639c4b937150897e24f78f747cdbda8641c0f659fe%40%3Cusers.kafka.apache.org%3E
- https://lists.apache.org/thread.html/r345330b7858304938b7b8029d02537a116d75265a598c98fa333504a%40%3Cdev.creadur.apache.org%3E
- https://lists.apache.org/thread.html/rad4ae544747df32ccd58fff5a86cd556640396aeb161aa71dd3d192a%40%3Cuser.commons.apache.org%3E
- https://lists.apache.org/thread.html/r808be7d93b17a7055c1981a8453ae5f0d0fce5855407793c5d0ffffa%40%3Cuser.commons.apache.org%3E
- https://lists.apache.org/thread.html/rc65f9bc679feffe4589ea0981ee98bc0af9139470f077a91580eeee0%40%3Cpluto-dev.portals.apache.org%3E
- https://lists.apache.org/thread.html/rc2dd3204260e9227a67253ef68b6f1599446005bfa0e1ddce4573a80%40%3Cpluto-dev.portals.apache.org%3E
- https://lists.apache.org/thread.html/r2df50af2641d38f432ef025cd2ba5858215cc0cf3fc10396a674ad2e%40%3Cpluto-scm.portals.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2021-29425