CVE-2021-41136
Ruby vulnerability analysis and mitigation

Overview

CVE-2021-41136 is a vulnerability discovered in Puma, a HTTP 1.1 server for Ruby/Rack applications. The vulnerability was disclosed on October 12, 2021, affecting versions prior to 5.5.1 and 4.3.9. The issue involves HTTP request smuggling when Puma is used with a proxy that forwards HTTP header values containing LF (Line Feed) characters (GitHub Advisory).

Technical details

The vulnerability occurs when Puma is used with a proxy that forwards HTTP header values containing LF characters as line endings. This behavior can lead to inconsistent interpretation of HTTP requests between Puma and the proxy server. The severity of this vulnerability is considered Low with a CVSS v3 score of 3.7 (Red Hat CVE).

Impact

If exploited, this vulnerability could allow a client to smuggle a request through a proxy, causing the proxy to send a response back to another unknown client. If the proxy uses persistent connections and the client adds another request via HTTP pipelining, the proxy may mistake it as the first request's body, while Puma would interpret it as two separate requests. This could lead to responses being sent to unintended clients (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Puma versions 5.5.1 and 4.3.9. For users unable to upgrade immediately, a workaround is to use a proxy that does not forward LF characters as line endings. Compatible proxies include Nginx, Apache (>2.4.25), Haproxy, Caddy, and Traefik. Note that implementing the fix may cause legacy clients using LF as line endings in HTTP headers to receive 400 errors (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-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
CVE-2025-61594MEDIUMN/A
  • RubyRuby
  • ruby-doc
NoYesDec 11, 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