CVE-2020-5247
Ruby vulnerability analysis and mitigation

Overview

CVE-2020-5247 affects Puma (RubyGem) versions before 4.3.2 and before 3.12.3. The vulnerability was discovered in early 2020 and involves HTTP Response Splitting, where untrusted input in response headers could be exploited. This security issue affects Ruby/Rack applications using the Puma web server (NVD, GitHub Advisory).

Technical details

The vulnerability allows an attacker to use newline characters (CR, LF or /r, /n) to end a header and inject malicious content, including additional headers or an entirely new response body. The issue received a CVSS v3.1 base score of 7.5 (HIGH) from NVD and 6.5 (MEDIUM) from GitHub, indicating significant severity. This vulnerability is related to CVE-2019-16254, which fixed a similar issue in the WEBrick Ruby web server (NVD, OWASP).

Impact

While HTTP Response Splitting is not an attack in itself, it serves as a vector for several other attacks. The vulnerability can facilitate cross-site scripting (XSS), cross-user defacement, cache poisoning, and page hijacking attacks. The attacker can potentially manipulate how the web browser interprets the response, leading to various security implications (OWASP, GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Puma versions 4.3.2 and 3.12.3 by implementing checks for line endings in headers and rejecting headers containing those characters. For systems unable to upgrade immediately, a workaround involves adding a Rack middleware to the application that performs header checks and rejects any values containing CR/LF characters (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68696HIGH8.8
  • RubyRuby
  • ruby-httparty
NoYesDec 23, 2025
CVE-2025-68113MEDIUM6.5
  • JavaScriptJavaScript
  • org.altcha:altcha
NoYesDec 16, 2025
CVE-2025-14762MEDIUM6
  • RubyRuby
  • logstash-9.0
NoYesDec 17, 2025
GHSA-g9jg-w8vm-g96vMEDIUM4.6
  • JavaScriptJavaScript
  • trix
NoYesDec 31, 2025
CVE-2025-61594LOW2.7
  • RubyRuby
  • ruby:3.3::rubygem-json
NoYesDec 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management