← back
CVE-2024-22049mediumCWE-472

httparty Multipart/Form-Data Request Tampering Vulnerability

13Vexday Risk Score

No sign of exploitation. No public exploitation artifact known so far.

ssvc Trackcvss 5.3epss 1.3%
exploitation probability
1.3%top 33% of all CVEs
observed exploitation
nono source reports it
In short

HTTParty, a popular Ruby library for making HTTP requests, has a vulnerability where attackers can manipulate uploaded filenames during file uploads. By crafting a malicious filename in multipart requests, an attacker could cause files to be saved with names they control, potentially overwriting important files or executing malicious code.

Technical detail

HTTParty versions prior to 0.21.0 fail to properly validate and sanitize filename parameters in multipart/form-data requests, allowing unauthenticated remote attackers to inject arbitrary filenames. An attacker can craft a multipart upload request with a malicious filename parameter that gets written to the filesystem as-is, potentially leading to arbitrary file write or path traversal impacts depending on server-side handling.

Summary generated and translated by AI from the 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Affected products
httparty