Loading...
Skip to main content

CVE-2020-5249

MEDIUM

HTTP Response Splitting (Early Hints) in Puma

Published March 3, 2020Updated February 4, 2026Source: osv

Summary

### Impact If an application using Puma allows untrusted input in an early-hints header, an attacker can use a carriage return character to end the header and inject malicious content, such as additional headers or an entirely new response body. This vulnerability is known as [HTTP Response Splitting](https://owasp.org/www-community/attacks/HTTP_Response_Splitting). While not an attack in itself, response splitting is a vector for several other attacks, such as cross-site scripting (XSS). This is related to [CVE-2020-5247](https://github.com/puma/puma/security/advisories/GHSA-84j7-475p-hp8v), which fixed this vulnerability but only for regular responses. ### Patches This has been fixed in 4.3.3 and 3.12.4. ### Workarounds Users can not allow untrusted/user input in the Early Hints response header. ### For more information If you have any questions or comments about this advisory: * Open an issue in [puma](https://github.com/puma/puma) * Email us a project maintainer. [Email addresses are listed in our Code of Conduct](https://github.com/puma/puma/blob/master/CODE_OF_CONDUCT.md#enforcement).

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update puma to 4.3.3 or later
gem install puma -v 4.3.3
Bundler
Update puma to 3.12.4 or later
gem install puma -v 3.12.4

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
puma
rubygems
4.0.0, 4.0.1, 4.1.0, 4.1.1 (+4 more)4.3.3
puma
rubygems
0.8.0, 0.8.1, 0.8.2, 0.9.0 (+102 more)3.12.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
Low

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

Frequently Asked Questions

What is CVE-2020-5249?
HTTP Response Splitting (Early Hints) in Puma This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
How do I check if my project is affected by CVE-2020-5249?
CVE-2020-5249 affects puma. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-5249 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.5

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-33vf-4xgg-9r58

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies