What’s Vulnerable › Vulnerabilities
CVE-2024-22049: httparty Multipart/Form-Data Request Tampering Vulnerability
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-01-04 · updated 2026-07-14
- Weakness: CWE-472
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.
Affected products
- Debian Linux: 10.0, 11.0
- Fedoraproject Fedora: 38, 39
- jnunemaker httparty: before 0.21.0 — fixed in 0.21.0
How to fix
Upgrade to a fixed version: jnunemaker httparty 0.21.0. Check the vendor advisory for mitigations.
References
- https://github.com/advisories/GHSA-5pq7-52mg-hr42
- https://github.com/jnunemaker/httparty/blob/4416141d37fd71bdba4f37589ec265f55aa446ce/lib/httparty/request/body.rb#L43
- https://github.com/jnunemaker/httparty/commit/cdb45a678c43e44570b4e73f84b1abeb5ec22b8e
- https://github.com/jnunemaker/httparty/security/advisories/GHSA-5pq7-52mg-hr42
- https://lists.debian.org/debian-lts-announce/2024/01/msg00011.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4LDGAVPR4KB72V4GGQCWODEAI72QZI3V/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IOWECZPJY6JZIA5FSBJR77KCRDXWDZDA/
- https://vulncheck.com/advisories/vc-advisory-GHSA-5pq7-52mg-hr42
- https://github.com/advisories/GHSA-5pq7-52mg-hr42
- https://github.com/jnunemaker/httparty/blob/4416141d37fd71bdba4f37589ec265f55aa446ce/lib/httparty/request/body.rb#L43
- https://github.com/jnunemaker/httparty/commit/cdb45a678c43e44570b4e73f84b1abeb5ec22b8e
- https://github.com/jnunemaker/httparty/security/advisories/GHSA-5pq7-52mg-hr42
Get alerted when CVE-2024-22049 or the next vulnerability affects your stack