Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Linux

CVE-2024-22049

Medium · CVSS 5.3EPSS 1.3% First seen December 02, 2026
LinuxOperating systemsVulnerabilities

Research article

HTTParty file name escaping flaw in multipart/form-data requests (CVE-2024-22049), fixed in 0.21.0

CVECVE-2024-22049
PublishedDecember 02, 2026 15:20 UTC
Research cut-offDecember 02, 2026 15:15 UTC
Sources reviewed5: NVD record (last modified 2026-11-20); CISA KEV catalog; vendor advisory page (github.com); FIRST EPSS (2026-12-02); 1 vendor bulletin

Executive summary

CVE-2024-22049 is an improper escaping flaw in HTTParty, a Ruby HTTP client library, affecting file names placed into multipart/form-data requests [1, 3]. NIST NVD rates it 5.3 MEDIUM under CVSS 3.1 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N [1]. NVD lists HTTParty versions below 0.21.0 as affected and 0.21.0 as the fixed version [1], and Ubuntu 20.04 LTS and 22.04 LTS are named as affected by USN-9396-1 [4]. Exploitation requires that an attacker can control the file name sent by an application that uses HTTParty for multipart uploads [4], and the vector indicates remote reachability with no privileges and no user interaction [1]. The described impact is tampering with request contents, potentially leading to unauthorized actions in the receiving service [4], which the pack does not show for any specific application. CISA's Known Exploited Vulnerabilities catalog does not list the CVE as of 2026-12-02 [2], and FIRST's EPSS model estimates a 1.29% probability of exploitation activity in the next 30 days [5], so no confirmed in-the-wild exploitation is documented in the pack. The most important immediate action is to inventory HTTParty versions, upgrade to 0.21.0 or later, and where upgrading is delayed, reject file names containing quotation marks, carriage returns or line feeds before they reach the library [1, 3].

Key points

  • CVE-2024-22049 is an improper escaping flaw in HTTParty file names in multipart/form-data requests [1, 3].
  • NVD scores it 5.3 MEDIUM under CVSS 3.1 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N [1].
  • NVD lists HTTParty below 0.21.0 as affected, fixed in 0.21.0 [1]; Ubuntu 20.04 LTS and 22.04 LTS are named in USN-9396-1 [4].
  • Exploitation requires an attacker-controlled file name in an application's multipart upload [4].
  • Not listed in CISA KEV as of 2026-12-02 [2]; EPSS estimates 1.29% probability of exploitation activity in 30 days [5]; no confirmed exploitation is documented in the pack.

Vulnerability identification

FieldValue
CVE IDCVE-2024-22049 [1]
Vendor and productjnunemaker HTTParty, a Ruby HTTP client library [1, 3]
ComponentHandling of file names in multipart/form-data requests [3]
Published / last modified2024-01-04T21:15:10 / 2026-11-20T13:18:33 [1]
Record statusAnalyzed [1]
CWECWE-472, External Control of Assumed-Immutable Web Parameter [1]
CVSS 3.1 base score5.3, MEDIUM; scored by NVD (Primary) [1]
CVSS 3.1 vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N [1]
Advisory and patch referencesGitHub advisory GHSA-5pq7-52mg-hr42 and commit cdb45a678c43e44570b4e73f84b1abeb5ec22b8e [1, 3]
Other bulletinsUbuntu USN-9396-1 [4]; Debian LTS and Fedora package announcements referenced in the NVD record [1]
CISA KEV statusNot listed as of 2026-12-02 [2]
EPSS0.0129 (1.29%), percentile 0.7111 [5]

The weakness classification and the vendor's description fit each other only loosely. CWE-472 concerns an application trusting a web parameter it assumes will not change [1]. The vendor's commit describes improper escaping of special characters in file names inside a multipart header [3]. Analyst assessment: the escaping defect is an output-encoding problem rather than the assumed-immutable pattern named by the CWE. The pack contains no NVD analysis explaining the choice, so the mapping should be read with caution.

Vulnerability description

HTTParty writes each uploaded file's name into the Content-Disposition header of its multipart/form-data part [3]. According to the vendor's commit, those names were not escaped properly. Special characters such as quotation marks, carriage returns and line feeds could therefore be placed into the header, where they can alter the request payload [3]. The Ubuntu bulletin describes the result as the ability to tamper with request contents, potentially leading to unauthorized actions [4].

The CVSS vector indicates that the flaw needs no privileges and no user interaction, and that its impact is limited to low integrity [1]. The record does not show confidentiality or availability impact [1]. The vector does not establish that the flaw is exploitable in any particular deployment. The pack also does not show which server-side action an altered request would trigger; that depends on the receiving application [Analyst assessment].

Attack surface and exploitation prerequisites

PrerequisiteWhat the evidence shows
Network positionThe AV:N component of the vector indicates remote network reachability [1]
Authentication and privilegePR:N in the vector indicates no privileges are required [1]. Whether the application's upload endpoint is reachable without login is not established by the pack.
User interactionUI:N in the vector indicates none [1]
Attacker control of file nameRequired: the attacker must be able to control the file name in a multipart/form-data request [4]
Application behaviourThe vulnerable code path is a multipart upload built by HTTParty with an attacker-influenced file name [3, 4]. The pack does not state a default configuration.
Affected library versionBelow 0.21.0 [1]

The network, privilege and interaction prerequisites come from the CVSS vector alone [1]. The file-name control requirement is stated in the Ubuntu bulletin [4].

Impact analysis

AreaAssessmentBasis
ConfidentialityNone, per the vector [1]Scoring only
IntegrityLow, per the vector; the bulletin describes altered request contents [1, 4]Scoring and vendor bulletin; no demonstrated exploit
AvailabilityNone, per the vector [1]Scoring only
Authentication and authorizationNot established. The bulletin mentions unauthorized actions as a possible outcome [4].Plausible downstream consequence, not demonstrated
Privilege boundariesNot established by the reviewed sourcesNone
Data and privacyNot established. No source describes data exposure.None
Business operations and regulatory dutiesDepend on what the receiving application does with the altered request; not establishedAnalyst assessment

Affected products and versions

Vendor and productAffected versionsFixed versionSource and qualification
jnunemaker HTTParty (Ruby library)Below 0.21.00.21.0NVD configuration data [1]
Debian linux10.0 and 11.0, as NVD analysed themNot stated in the packNVD configuration data [1]. These are release versions; the pack does not give the affected package version.
Fedora38 and 39, as NVD analysed themNot stated in the packNVD configuration data [1]. Same limitation as Debian.
Ubuntu 20.04 LTS and 22.04 LTSAffected, per USN-9396-1 [4]Not stated in the packVendor bulletin [4]. The NVD record does not list Ubuntu.

The sources disagree on scope. NVD lists Debian and Fedora releases [1], while the Ubuntu bulletin names Ubuntu 20.04 LTS and 22.04 LTS [4]. The pack does not reconcile these lists, and neither source states the fixed package version for its distribution. The NVD fixed version 0.21.0 is the only fixed version the pack gives [1].

Exploitation and threat intelligence status

  • CISA KEV: not listed as of 2026-12-02 [2]. The catalog's absence does not prove that the flaw has not been exploited.
  • EPSS: 1.29% estimated probability of exploitation activity in the next 30 days, at the 71.11st percentile [5]. EPSS is a statistical estimate and is not evidence of exploitation.
  • NVD references: several references, including the GitHub advisory, the vendor advisory and a source-line reference in the HTTParty repository, carry the NVD tag Exploit [1]. The tag classifies those references; it does not confirm exploitation or show that exploit code exists.
  • Confirmed exploitation in the wild, public proof-of-concept code and threat actor attribution are not established by the reviewed sources.

Detection and exposure assessment

  1. Inventory HTTParty in Ruby applications. On a host with RubyGems, run gem list httparty; it prints the installed gem name and version and is read-only. In each application, search Gemfile.lock for the line beginning with httparty and its version. Compare the version with the fixed version 0.21.0 [1]. A version below 0.21.0 places the component within the NVD affected range [1]; this does not prove exploitability.
  2. Identify uploads that use multipart requests. Search application code for multipart requests that pass file names. Flag any path where a file name originates from a user, an upload form or an external system [4]. This is an analyst method, since the pack contains no product-specific code search guidance.
  3. Check distribution packages. On Ubuntu 20.04 LTS and 22.04 LTS, compare the installed HTTParty package version with the fixed package version published in USN-9396-1 [4]. The pack does not state that version, so obtain it from the bulletin before drawing conclusions. The Debian and Fedora advisories referenced in NVD [1] are not in the pack.
  4. Review receiving-service logs for requests whose multipart file-name fields contain quotation marks, carriage returns or line feeds [Analyst assessment]. The pack provides no log indicator for this CVE, so any match needs manual validation and a finding of no match does not show the system is safe.

Remediation

Immediate mitigation (analyst recommendation based on the described mechanism [3, 4]; not vendor-confirmed as a workaround):

  • Before passing a file name to HTTParty, reject or normalise names containing quotation marks, carriage returns or line feeds. Verify with a staging test that sends such a name and confirms it is rejected before HTTParty builds the request. Side effect: legitimate file names containing these characters will fail, so log the rejections and review them.
  • Restrict which authenticated users or systems can reach upload paths that use HTTParty. Verify by confirming access controls on those endpoints. This reduces exposure but does not remove the defect.

Permanent fix:

  • Upgrade the HTTParty gem to 0.21.0 or later [1, 3]. Update the version in Gemfile.lock, run the test suite and redeploy. Verify with gem list httparty and by confirming the new version in Gemfile.lock. The pack does not state whether a restart is required; a restart of the application is needed to load the new gem [Analyst assessment].
  • On Ubuntu 20.04 LTS and 22.04 LTS, install the package updates identified in USN-9396-1 [4]. Verify the installed package version against that notice. Debian and Fedora package updates are referenced by NVD [1], but their content and fixed versions are not in the pack.
  • Recommended hardening: validate the file-name character set at the application boundary as a defence-in-depth measure, in addition to the upgrade [Analyst assessment].

Backups, rollback and maintenance-window steps are not covered by the sources; standard change control applies.

Remediation checklist

  1. Inventory every Ruby application that uses HTTParty by running gem list httparty on each host and searching Gemfile.lock for the httparty entry; any version below 0.21.0 is within the NVD affected range [1].
  2. Upgrade the HTTParty gem to 0.21.0 or later, update Gemfile.lock, run the test suite and redeploy; verify with gem list httparty and the Gemfile.lock entry [1, 3].
  3. Until the upgrade is deployed, reject or normalise file names containing quotation marks, carriage returns or line feeds before they reach HTTParty; verify with a staging request carrying such a name [3, 4].
  4. Find every code path that sends multipart uploads through HTTParty and identify where each file name originates; prioritise paths where the name comes from users or external systems [4].
  5. Restrict access to upload endpoints that use HTTParty to authenticated and necessary users; verify access controls on those endpoints.
  6. On Ubuntu 20.04 LTS and 22.04 LTS, apply the package updates from USN-9396-1 and confirm the installed HTTParty package version against the fixed version in that notice [4].
  7. Check Debian and Fedora hosts against the distribution advisories referenced in the NVD record, since their fixed package versions are not in the pack [1].
  8. Review receiving-service logs for multipart requests with file-name fields containing quotation marks, carriage returns or line feeds; treat any match as requiring manual validation, not as confirmed compromise [Analyst assessment].

Evidence gaps

  • Not established by the reviewed sources: the NVD description text; the pack gives only the vendor commit's paraphrased facts [1, 3].
  • Not established by the reviewed sources: exactly which special characters the old replacement table failed to escape, and the code change itself; reading the diff of commit cdb45a678c43e44570b4e73f84b1abeb5ec22b8e would settle this [3].
  • Not established by the reviewed sources: the content of GitHub advisory GHSA-5pq7-52mg-hr42; reading it would confirm the affected range and any further details [1].
  • Not established by the reviewed sources: the fixed package versions for Ubuntu 20.04 LTS and 22.04 LTS; the USN-9396-1 notice itself would settle this [4].
  • Not established by the reviewed sources: fixed package versions for Debian 10.0 and 11.0 and Fedora 38 and 39; the Debian and Fedora announcements referenced in NVD would settle this [1].
  • Not established by the reviewed sources: whether the NVD Debian and Fedora entries refer to the library package or to the operating system release, and why Ubuntu is absent from NVD while named in the Ubuntu bulletin [1, 4].
  • Not established by the reviewed sources: the vendor's confirmed complete affected range; NVD gives below 0.21.0 but the pack does not contain a vendor statement of the range [1].
  • Not established by the reviewed sources: confirmed in-the-wild exploitation, public proof-of-concept code, threat actors and targeted sectors; the EPSS score and reference tags are not evidence of exploitation [1, 2, 5].
  • Not established by the reviewed sources: any indicators of compromise, such as log patterns from real attempts; the pack provides none.
  • Not established by the reviewed sources: the publication date of the vendor commit; the patch page does not state it [3].
  • Not established by the reviewed sources: what an altered request does in specific receiving applications; this depends on each application and needs testing against its own behaviour.

References

  1. CVE-2024-22049 record. NIST National Vulnerability Database (NVD), 2026-11-20. https://nvd.nist.gov/vuln/detail/CVE-2024-22049. Accessed 2026-12-02. CVE identity, record status and dates, CVSS 3.1 score and vector, scorer, CWE-472 mapping, NVD affected and fixed versions for HTTParty, Debian and Fedora, NVD reference tags including Exploit, and referenced advisories and announcements.
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-02. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-02. CISA KEV status: CVE-2024-22049 not listed as of 2026-12-02, with the caveat that absence is not evidence of no exploitation.
  3. Patch page (github.com). github.com. https://github.com/jnunemaker/httparty/commit/cdb45a678c43e44570b4e73f84b1abeb5ec22b8e. Accessed 2026-12-02. Vendor-commit description of the improper escaping of file names in multipart/form-data Content-Disposition headers, the special characters involved, the escaping approach and the mitigation concept; HTTParty described as a Ruby HTTP client library.
  4. USN-9396-1: HTTParty vulnerabilities. Ubuntu USN, 2026-12-02. https://ubuntu.com/security/notices/USN-9396-1. Accessed 2026-12-02. Ubuntu 20.04 LTS and 22.04 LTS as affected per USN-9396-1, the requirement that an attacker can control the file name, and the described impact of altered request contents and possible unauthorized actions.
  5. EPSS score for CVE-2024-22049. FIRST, 2026-12-02. https://api.first.org/data/v1/epss?cve=CVE-2024-22049. Accessed 2026-12-02. EPSS value of 0.0129 (1.29%) and percentile 0.7111 for 30-day exploitation probability, with the caveat that EPSS is not evidence of exploitation.

Written with AI assistance from the 5 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

It was discovered that HTTParty did not escape file names in multipart/form-data requests. An attacker able to control a file name could possibly use this issue to tamper with the contents of the request. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2024-22049) It was discovered that HTTParty sent requests to the host named in an absolute URL even when a base URI was confi…

Excerpt from Ubuntu USN. No official description has been published yet.

Severity breakdown

Medium · 5.3 CVSS 3.1 base score from NVD

An attacker without an account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Login needed
no
User action needed
no
Scope
stays within the vulnerable component
Impact
low on integrity, none on confidentiality and availability

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Weakness

  • CWE-472: External Control of Assumed-Immutable Web Parameter

Affected and fixed versions

ProductAffected versionsFixed in
debian linux10.0, 11.0—
fedoraproject fedora38, 39—
jnunemaker httparty< 0.21.00.21.0

From NVD's CPE data; confirm with the vendor advisory before relying on a version number.

Public exploits

Exploit available Exploit code or a detailed exploitation write-up is public, so attacks are easier to carry out.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

Frequently asked questions

What is CVE-2024-22049?

CVE-2024-22049 is an improper escaping flaw in HTTParty, a Ruby HTTP client library, affecting file names placed into multipart/form-data requests. NIST NVD rates it 5.3 MEDIUM under CVSS 3.1 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. NVD lists HTTParty versions below 0.21.0 as affected and 0.21.0 as the fixed version, and Ubuntu 20.04 LTS and 22.04 LTS are named as affected by USN-9396-1. Weakness type: External Control of Assumed-Immutable Web Parameter (CWE-472).

How severe is CVE-2024-22049?

CVE-2024-22049 has a CVSS 3.1 base score of 5.3 (medium), from NVD. An attacker without an account can exploit this over the network, without any user action.

Is CVE-2024-22049 being exploited?

Not as far as is known: CVE-2024-22049 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. Exploit code or a proof of concept has been published, which makes attacks more likely. EPSS estimates a 1.3% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2024-22049?

debian linux 10.0, 11.0; fedoraproject fedora 38, 39; jnunemaker httparty < 0.21.0 (fixed in 0.21.0).

How do I fix CVE-2024-22049?

Inventory every Ruby application that uses HTTParty by running gem list httparty on each host and searching Gemfile.lock for the httparty entry; any version below 0.21.0 is within the NVD affected range. Upgrade the HTTParty gem to 0.21.0 or later, update Gemfile.lock, run the test suite and redeploy; verify with gem list httparty and the Gemfile.lock entry. Until the upgrade is deployed, reject or normalise file names containing quotation marks, carriage returns or line feeds before they reach HTTParty; verify with a staging request carrying such a name.

Timeline & sources

References

Related vulnerabilities & news