CVE-2020-5247

HIGHCVSS 7.5/10EPSS 2.49%

Last modified

CVE-2020-5247 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 2.49% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.5/10

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

EPSS Probability
2.49%

82.6th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
PumaPuma<= 3.12.3
PumaPuma>= 4.0.0, <= 4.3.2
Ruby-LangRuby<= 2.3.0
Ruby-LangRuby>= 2.4.0, <= 2.4.7
Ruby-LangRuby>= 2.5.0, <= 2.5.6
Ruby-LangRuby>= 2.6.0, <= 2.6.4
Ruby-LangRuby2.7.0Preview1
DebianDebian Linux9.0
FedoraprojectFedora30
FedoraprojectFedora31
FedoraprojectFedora32

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2020-5247?
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.
How severe is CVE-2020-5247?
CVE-2020-5247 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 2.49% probability of exploitation in the next 30 days.
How do I fix CVE-2020-5247?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2020-5247?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST