cve.bz

CVE-2020-5247 Injection

7.5 highEPSS 2.5%Fix available

High (7.5). EPSS 2.5% estimated probability of exploitation activity in the next 30 days. Fixed in puma 3.12.4, 4.3.3.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
2.5% (unchanged from 2.5% a week ago; 2.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers (HTTP Request Splitting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-5247 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-5247?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-5247?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-5247 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
puma:pumathrough 3.12.3
puma:pumafrom 4.0.0 through 4.3.2
ruby-lang:rubythrough 2.3.0
ruby-lang:rubyfrom 2.4.0 through 2.4.7
ruby-lang:rubyfrom 2.5.0 through 2.5.6
ruby-lang:rubyfrom 2.6.0 through 2.6.4
ruby-lang:ruby2.7.0:preview1
debian:debian_linux9.0
fedoraproject:fedora30
fedoraproject:fedora31
fedoraproject:fedora32

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-84j7-475p-hp8vRubyGemspuma<3.12.43.12.4
GHSA-84j7-475p-hp8vRubyGemspuma>=4.0.0 <4.3.34.3.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9puma3.6.0-1+deb9u2DLA-3023-1
Debian12, 13, 14puma3.12.4-1DEBIAN-CVE-2020-5247
SUSEHPE Helion OpenStack 8documentation-hpe-helion-openstack-user, documentation-hpe-helion-openstack-planning, documentation-hpe-helion-openstack-security and 3 more8.20200319-1.23.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-ansible8.0+git.1583432621.24fa60e-3.70.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-barbican8.0+git.1585152761.8ef3d61-4.33.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-db8.0+git.1583944923.03cca6c-3.31.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-monasca8.0+git.1583944894.38f023a-3.24.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-mq8.0+git.1583944811.dc14403-3.19.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-neutron8.0+git.1584715262.e4ea620-3.39.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-octavia8.0+git.1585171918.418f5cf-3.26.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-tempest8.0+git.1585311051.6ab5488-3.33.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8pdns4.1.2-3.6.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-aodh5.1.1~dev7-12.24.1SUSE-SU-2020:1066-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-barbican5.0.2~dev3-12.25.1SUSE-SU-2020:1066-1
131 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.1rmt-server2.6.5-lp151.2.18.2openSUSE-SU-2020:2000-1
openSUSELeap 15.2rmt-server2.6.5-lp152.2.3.1openSUSE-SU-2020:1993-1

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the version of rubygem-puma shipped with Red Hat Gluster Storage 3, as it does not validate whether the header value could inject a CR or LF and inject their own HTTP response.

Red Hat CloudForms uses affected RubyGem Puma, however, it is not vulnerable since it does not have custom code enabling early hints, HTTP/2 support or way to return 103 response. A future update may fix affected RubyGem.

ProductPackageStateAdvisory
CloudForms Management Engine 5rubygem-pumaWill not fix
Red Hat 3scale API Management Platform 2systemAffected
Red Hat Software Collectionsrh-ror50-rubygem-pumaWill not fix
Red Hat Storage 3rubygem-pumaWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-5247.

Attack patterns (CAPEC)

  • CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies Likelihood: High · Severity: High
  • CAPEC-34 HTTP Response Splitting Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-105 HTTP Request Splitting Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON