Skip to content
Heist/ feed
Back to feed
Medium

Rack ReDos in content type parsing (2nd degree polynomial)

Type: advisorySources: OSV

Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-25126
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:45 UTC · Revision 1

Source evidence

Rack ReDos in content type parsing (2nd degree polynomial)

core-osv · Original source

Published 28 Feb 2024, 23:28 UTC

Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.

osv:CVE-2024-25126
Complete source record
{
  "id": "f6ebac6c330cb2ca92c77eb17d506e7769887bf4857fc4a5ff9a2c664431e62c",
  "url": "https://osv.dev/vulnerability/CVE-2024-25126",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Rack ReDos in content type parsing (2nd degree polynomial)",
    "summary": "Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is patched in 3.0.9.1 and 2.2.8.1.",
    "evidence": "osv:CVE-2024-25126",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-25126",
      "aliases": [
        "CVE-2024-25126",
        "GHSA-22f2-v57c-j9cx"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rack/rack",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e33cc65a013952935c6bb70e24f359023c075e84"
                },
                {
                  "fixed": "e83001100ad9dd24e1744b13669dcb2736a13ebd"
                },
                {
                  "introduced": "52901caf09ebcda879512a8605059963a49df55d"
                },
                {
                  "fixed": "a4bc5e0f41c750135969ceece8772ab112dc8f17"
                },
                {
                  "fixed": "6efb2ceea003c4b195815a614e00438cbd543462"
                },
                {
                  "fixed": "d9c163a443b8cadf4711d84bd2c58cb9ef89cf49"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "0.4"
                      },
                      {
                        "fixed": "2.2.8.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:rack:rack:*:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.0.9.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6efb2ceea003c4b195815a614e00438cbd543462"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d9c163a443b8cadf4711d84bd2c58cb9ef89cf49"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.0.9",
            "v3.0.8",
            "v3.0.7",
            "v3.0.6",
            "v3.0.5",
            "v3.0.4.1",
            "v3.0.4",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "3.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-25126.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.541579779Z",
      "provider": "osv",
      "references": [
        "https://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941",
        "https://lists.debian.org/debian-lts-announce/2024/04/msg00022.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25126.json",
        "https://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cx",
        "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-25126.yml",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-25126",
        "https://security.netapp.com/advisory/ntap-20240510-0005/",
        "https://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462",
        "https://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1333"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25126.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-25126",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497540,
  "published_at": "2024-02-28T23:28:07.073+00:00"
}