CVE-2020-5247 in Debian Linux and 3 more products
In Puma (RubyGem) before 4.3.2 and before 3.12.3, if an application using Puma allows untrusted input in a response header, an attacker can use newline characters (i.e. `CR`, `LF` or`/r`, `/n`) to end the header and inject malicious content, such as additional headers or an entirely new response body. This vulnerabi...
Affects 4 products from 4 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 9.0 |
| Fedoraproject | Fedora | 30 31 32 |
| Puma | Puma | ≤ 3.12.3 ≥ 4.0.0, ≤ 4.3.2 |
| Ruby-Lang | Ruby | 2.7.0 ≤ 2.3.0 ≥ 2.4.0, ≤ 2.4.7 ≥ 2.5.0, ≤ 2.5.6 ≥ 2.6.0, ≤ 2.6.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
In Puma (RubyGem) before 4.3.2 and before 3.12.3, if an application using Puma allows untrusted input in a response header, an attacker can use newline characters (i.e. `CR`, `LF` or`/r`, `/n`) 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. 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-2019-16254, which fixed this vulnerability for the WEBrick Ruby web server. This has been fixed in versions 4.3.2 and 3.12.3 by checking all headers for line endings and rejecting headers with those characters.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-5247 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-189768-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| Published | 2020-02-28 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-74: Injection
Parent class for all injection vulnerabilities where attacker-supplied data is interpreted as code or commands.
CWE-113: CWE-113
Related attack patterns (CAPEC)
CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters via CWE-74
CAPEC-7 Blind SQL Injection via CWE-74
CAPEC-8 Buffer Overflow in an API Call via CWE-74
CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-74
CAPEC-10 Buffer Overflow via Environment Variables via CWE-74
Show all 39
CAPEC-13 Subverting Environment Variable Values via CWE-74
CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-74
CAPEC-24 Filter Failure through Buffer Overflow via CWE-74
CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-113
CAPEC-34 HTTP Response Splitting via CWE-74, CWE-113
CAPEC-42 MIME Conversion via CWE-74
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-74
CAPEC-45 Buffer Overflow via Symbolic Links via CWE-74
CAPEC-46 Overflow Variables and Tags via CWE-74
CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-74
CAPEC-51 Poison Web Service Registry via CWE-74
CAPEC-52 Embedding NULL Bytes via CWE-74
CAPEC-53 Postfix, Null Terminate, and Backslash via CWE-74
CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-74
CAPEC-67 String Format Overflow in syslog() via CWE-74
CAPEC-71 Using Unicode Encoding to Bypass Validation Logic via CWE-74
CAPEC-72 URL Encoding via CWE-74
CAPEC-76 Manipulating Web Input to File System Calls via CWE-74
CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-74
CAPEC-79 Using Slashes in Alternate Encoding via CWE-74
CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic via CWE-74
CAPEC-83 XPath Injection via CWE-74
CAPEC-84 XQuery Injection via CWE-74
CAPEC-85 AJAX Footprinting via CWE-113
CAPEC-101 Server Side Include (SSI) Injection via CWE-74
CAPEC-105 HTTP Request Splitting via CWE-74, CWE-113
CAPEC-108 Command Line Execution through SQL Injection via CWE-74
CAPEC-120 Double Encoding via CWE-74
CAPEC-273 HTTP Response Smuggling via CWE-74
CAPEC-6 Argument Injection via CWE-74
CAPEC-135 Format String Injection via CWE-74
CAPEC-250 XML Injection via CWE-74
CAPEC-267 Leverage Alternate Encoding via CWE-74
CAPEC-28 Fuzzing via CWE-74
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Puma (RubyGem) versions before 4.3.2 and 3.12.3 are vulnerable to HTTP Response Splitting due to improper handling of untrusted input in response headers, allowing attackers to inject malicious content.
An attacker can exploit this vulnerability by injecting newline characters into response headers, which can lead to the insertion of additional headers or a new response body, potentially leading to further attacks such as cache poisoning or cross-site scripting (XSS).
Questions
What is CVE-2020-5247?
Puma (RubyGem) versions before 4.3.2 and 3.12.3 are vulnerable to HTTP Response Splitting due to improper handling of untrusted input in response headers, allowing attackers to inject malicious content.
What is the CVSS score for CVE-2020-5247?
CVE-2020-5247 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 2.5%.
Is CVE-2020-5247 actively exploited?
No confirmed active exploitation of CVE-2020-5247 as of 2026-09-25.
How do I remediate CVE-2020-5247?
Priority: HIGH. Advisory: https://www.ruby-lang.org/en/news/2019/10/01/http-response-splitting-in-webrick-cve-2019-16254
What systems are affected by CVE-2020-5247?
CVE-2020-5247 affects Debian Debian Linux; Fedoraproject Fedora; Puma Puma; Ruby-Lang Ruby.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.