Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-22902

The actionpack ruby gem (a framework for handling and responding to web requests in Rails) before 6.0.3.7, 6.1.3.2 suffers from a possible denial of service vulnerability in the Mime type parser of Action Dispatch. Carefully crafted Accept headers can cause the mime type parser in Action Dispatch to do catastrophic backtracking in the regular expression engine.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-22902
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:54 UTC · Revision 1

Source evidence

CVE-2021-22902

core-osv · Original source

Published 11 Jun 2021, 16:15 UTC

The actionpack ruby gem (a framework for handling and responding to web requests in Rails) before 6.0.3.7, 6.1.3.2 suffers from a possible denial of service vulnerability in the Mime type parser of Action Dispatch. Carefully crafted Accept headers can cause the mime type parser in Action Dispatch to do catastrophic backtracking in the regular expression engine.

osv:CVE-2021-22902
Complete source record
{
  "id": "3c5001cf8e3e99b6b7cd16cc0c930bea1b244e2f864a39c73e5dfebbc739dfa1",
  "url": "https://osv.dev/vulnerability/CVE-2021-22902",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-22902",
    "summary": "The actionpack ruby gem (a framework for handling and responding to web requests in Rails) before 6.0.3.7, 6.1.3.2 suffers from a possible denial of service vulnerability in the Mime type parser of Action Dispatch. Carefully crafted Accept headers can cause the mime type parser in Action Dispatch to do catastrophic backtracking in the regular expression engine.",
    "evidence": "osv:CVE-2021-22902",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-22902",
      "aliases": [
        "CVE-2021-22902",
        "GHSA-g8ww-46x2-2p65"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rails/rails",
              "type": "GIT",
              "events": [
                {
                  "introduced": "66cabeda2c46c582d19738e1318be8d59584cc5b"
                },
                {
                  "fixed": "c04aff675d4cd3e8a54e0008dbfca10a8832a414"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.0.0"
                      },
                      {
                        "fixed": "6.0.3.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.0.3.6",
            "v6.0.3.5",
            "v6.0.3.4",
            "v6.0.3.3",
            "v6.0.3.2",
            "v6.0.3.1",
            "v6.0.3",
            "v6.0.3.rc1",
            "v6.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22902.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:33.803015267Z",
      "provider": "osv",
      "references": [
        "https://hackerone.com/reports/1138654",
        "https://discuss.rubyonrails.org/t/cve-2021-22902-possible-denial-of-service-vulnerability-in-action-dispatch/77866"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "rubyonrails:rails",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6.1.0"
                  },
                  {
                    "fixed": "6.1.0.2"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-22902",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 433375,
  "published_at": "2021-06-11T16:15:11.36+00:00"
}