CVE-2024-22049 httparty Multipart/Form-Data Request Tampering Vulnerability
Attackers can manipulate multipart form-data filenames to write files to arbitrary locations, potentially overwriting critical data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-22049?
CVE-2024-22049 is a medium-severity path traversal vulnerability in Debian Debian Linux, published on 4 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
httparty before 0.21.0 is vulnerable to an assumed-immutable web parameter vulnerability. A remote and unauthenticated attacker can provide a crafted filename parameter during multipart/form-data uploads which could result in attacker controlled filenames being written.
Weakness: CWE-472
Which versions are affected by CVE-2024-22049?
2 open source packages ship an affected version, including httparty. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
httparty RubyGems | All versions | 0.21.0 |
httparty RubyGems | All versions | 0.21.0 |
Products include Debian Debian Linux, Fedoraproject Fedora, Jnunemaker Httparty.
How do I fix CVE-2024-22049?
Upgrade httparty to 0.21.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-22049 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-22049 exists.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2024-22049, DLA-3716-1, DLA-3900-1, GHSA-5pq7-52mg-hr42, UBUNTU-CVE-2024-22049.