cvelo
P4 · InfoCVSS 3.7EPSS 0.6%

Rack: `Rack::Multipart` extracts the boundary by substring match rather than parameter parsing, allowing parser differentials and WAF bypass.

  • CVE-2026-142594
  • GHSA-r243-pfwh-7rpx
  • EUVD-2026-141929

Description

Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::Multipart::Parser.parse_boundary locates boundary= as a substring anywhere in a Content-Type header instead of parsing named parameters consistently with Rack::MediaType.params, truncates quoted boundary values at delimiters, preserves surrounding whitespace, and does not correctly process quoted-pair escapes. A conforming intermediary can therefore find no boundary or a different boundary while Rack parses attacker-controlled multipart parts, allowing form fields or uploads to bypass web application firewall inspection. Exploitation requires an intermediary that inspects multipart bodies using a conforming parser, and Rack itself grants no capability beyond a well-formed request carrying the same body. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • rack

    Affected versionsFixed in
    < 2.2.26none stated
    >= 3.0.0, < 3.1.24none stated
    >= 3.2.0, < 3.2.9none stated
  • rackRubyGems

    Affected versionsFixed in
    from 3.2.0 to before 3.2.93.2.9
    from 3.0.0 to before 3.1.243.1.24
    before 2.2.262.2.26

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.