Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. puma
  4. ›
  5. CVE-2020-5247

CVE-2020-5247: Improper Neutralization of CRLF Sequences in HTTP Headers

February 28, 2020 (updated April 9, 2020)

In Puma (RubyGem), 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).

References

  • github.com/puma/puma/security/advisories/GHSA-84j7-475p-hp8v
  • nvd.nist.gov/vuln/detail/CVE-2020-5247
  • www.ruby-lang.org/en/news/2019/10/01/http-response-splitting-in-webrick-cve-2019-16254

Code Behaviors & Features

Detect and mitigate CVE-2020-5247 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.12.3, all versions starting from 4.0.0 up to 4.3.2

Fixed versions

  • 3.12.4
  • 4.3.3

Solution

Upgrade to versions 3.12.4, 4.3.3 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

gem/puma/CVE-2020-5247.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.