Wiz Agents & Workflows are here

CVE-2026-34831
Ruby vulnerability analysis and mitigation

Rack is a modular Ruby web server interface. Prior to versions 2.2.23, 3.1.21, and 3.2.6, Rack::Files#fail sets the Content-Length response header using String#size instead of String#bytesize. When the response body contains multibyte UTF-8 characters, the declared Content-Length is smaller than the number of bytes actually sent on the wire. Because Rack::Files reflects the requested path in 404 responses, an attacker can trigger this mismatch by requesting a non-existent path containing percent-encoded UTF-8 characters. This results in incorrect HTTP response framing and may cause response desynchronization in deployments that rely on the incorrect Content-Length value. This issue has been patched in versions 2.2.23, 3.1.21, and 3.2.6.


SourceNVD

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34827HIGH7.5
  • RubyRuby
  • ruby-rack
NoYesApr 02, 2026
CVE-2026-34835MEDIUM4.8
  • RubyRuby
  • ruby-rack
NoYesApr 02, 2026
CVE-2026-32762MEDIUM4.8
  • RubyRuby
  • ruby-rack
NoYesApr 02, 2026
CVE-2026-26962MEDIUM4.8
  • RubyRuby
  • rack
NoYesApr 02, 2026
CVE-2026-34831MEDIUM4.8
  • RubyRuby
  • rack
NoYesApr 02, 2026

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