Vulnerability · Published Jan 4, 2024 · Assigned by VulnCheck
CVE-2024-22049httparty Multipart/Form-Data Request Tampering Vulnerability
Medium 5.3
In plain English
A medium-severity security flaw in httparty. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.3%top 29.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-httparty | 0.21.0-1 | DEBIAN-CVE-2024-22049 |
| Debian:13 | ruby-httparty | 0.21.0-1 | DEBIAN-CVE-2024-22049 |
| Debian:14 | ruby-httparty | 0.21.0-1 | DEBIAN-CVE-2024-22049 |
| RubyGems | httparty | 0.21.0 | GHSA-5pq7-52mg-hr42 |
| Ubuntu:22.04:LTS | ruby-httparty | no fix listed | UBUNTU-CVE-2024-22049 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| httparty | 0 – through 0.20.0 |
Weakness: CWE-472 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/jnunemaker/httparty/security/advisories/GHSA-5pq7-52mg-hr42 vendor-advisory
- https://github.com/jnunemaker/httparty/commit/cdb45a678c43e44570b4e73f84b1abeb5ec22b8e patch
- https://github.com/jnunemaker/httparty/blob/4416141d37fd71bdba4f37589ec265f55aa446ce/lib/httparty/request/body.rb#L43 related
- https://github.com/advisories/GHSA-5pq7-52mg-hr42 vendor-advisory
- https://vulncheck.com/advisories/vc-advisory-GHSA-5pq7-52mg-hr42 third-party-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IOWECZPJY6JZIA5FSBJR77KCRDXWDZDA/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4LDGAVPR4KB72V4GGQCWODEAI72QZI3V/
- https://lists.debian.org/debian-lts-announce/2024/01/msg00011.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00043.html