CVE-2020-5247
HTTP Response Splitting in Puma
Reported by github_m · Published February 28, 2020
puma is fixed in 4.3.3, 4.3.2, 3.12.4 and 1 more (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| puma | RubyGems | 4.3.3, 4.3.2, 3.12.4, 3.12.3 |
| gitlab-puma | RubyGems | 4.3.2, 3.12.3 |
| ruby-min | Bitnami | 2.6.5, 2.5.7, 2.4.8, 2.3.1 |
| ruby-min | Bitnami | 2.6.5, 2.5.7, 2.4.8, 2.3.1 |
| ruby | ruby-lang | 2.6.4, 2.5.6, 2.4.7, 2.3.0 |
| puma | puma | 4.3.2, 3.12.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| puma | Puma | < 3.12.3, >= 4.0.0, < 4.3.2 |
| RubyGems | gitlab-puma | 0, 4.0.0 |
| RubyGems | puma | 0, 4.0.0 |
| puma | Puma | 0, 4.0.0 |
Timeline
- Feb 28, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Apr 30, 2026 Security Advisory (3 in total, the first dated here)
- Aug 30, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-5247
vulnetix vdb fixes CVE-2020-5247
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-5247/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2020-a3f26a9387 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-fd87f90634 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-08092b4c97 vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20220525 [SECURITY] [DLA 3023-1] puma security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2020-5247 advisory