CVE-2021-22114 Path Traversal in Spring-integration-zip
Attackers can write arbitrary files outside the target directory using crafted archives, requiring an upgrade to Spring Integration Zip.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-22114?
CVE-2021-22114 is a medium-severity path traversal vulnerability in Spring Integration Zip extension, published on 1 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Addresses partial fix in CVE-2018-1263. Spring-integration-zip, versions prior to 1.0.4, exposes an arbitrary file write vulnerability, that can be achieved using a specially crafted zip archive (affects other archives as well, bzip2, tar, xz, war, cpio, 7z), that holds path traversal filenames. So when the filename gets concatenated to the target extraction directory, the final path ends up outside of the target folder.
Weakness: CWE-22
Which versions are affected by CVE-2021-22114?
2 open source packages ship an affected version, including org.springframework.integration:spring-integration-zip. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.integration:spring-integration-zip Maven | All versions | 1.0.4 |
org.springframework.integration:spring-integration-zip Maven | All versions | 1.0.4 |
Products include Vmware Spring Integration Zip.
How do I fix CVE-2021-22114?
Upgrade org.springframework.integration:spring-integration-zip to 1.0.4 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-22114 being exploited?
There is no known exploitation of CVE-2021-22114 in the wild and no public exploit code.
Other vulnerabilities in Spring Integration Zip extension
Sources
Also known as GHSA-vw83-h3mq-3qwj.