VDB

CVE-2020-5247

CVE-2020-5247 PUBLISHED CVSS 6.5 MEDIUM

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.

PackageEcosystemFixed in
pumaRubyGems4.3.3, 4.3.2, 3.12.4, 3.12.3
gitlab-pumaRubyGems4.3.2, 3.12.3
ruby-minBitnami2.6.5, 2.5.7, 2.4.8, 2.3.1
ruby-minBitnami2.6.5, 2.5.7, 2.4.8, 2.3.1
rubyruby-lang2.6.4, 2.5.6, 2.4.7, 2.3.0
pumapuma4.3.2, 3.12.3

Risk scores

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

Affected products

VendorProductVersions
pumaPuma< 3.12.3, >= 4.0.0, < 4.3.2
RubyGemsgitlab-puma0, 4.0.0
RubyGemspuma0, 4.0.0
pumaPuma0, 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›