{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2025-61921",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2025-10-03T22:21:59.615Z",
        "datePublished": "2025-10-10T19:28:10.688Z",
        "dateUpdated": "2025-10-10T20:54:47.627Z"
    },
    "containers": {
        "cna": {
            "title": "Sinatra has ReDoS vulnerability in ETag header value generation",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-1333",
                            "lang": "en",
                            "description": "CWE-1333: Inefficient Regular Expression Complexity",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnAvailabilityImpact": "LOW",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 2.7,
                        "baseSeverity": "LOW",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U",
                        "version": "4.0"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/sinatra/sinatra/security/advisories/GHSA-mr3q-g2mv-mr4q"
                },
                {
                    "name": "https://github.com/sinatra/sinatra/issues/2120",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/sinatra/sinatra/issues/2120"
                },
                {
                    "name": "https://github.com/sinatra/sinatra/pull/1823",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/sinatra/sinatra/pull/1823"
                },
                {
                    "name": "https://github.com/sinatra/sinatra/pull/2121",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/sinatra/sinatra/pull/2121"
                },
                {
                    "name": "https://bugs.ruby-lang.org/issues/19104",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://bugs.ruby-lang.org/issues/19104"
                }
            ],
            "affected": [
                {
                    "vendor": "sinatra",
                    "product": "sinatra",
                    "versions": [
                        {
                            "version": "< 4.2.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2025-10-10T19:28:10.688Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Sinatra is a domain-specific language for creating web applications in Ruby. In versions prior to 4.2.0, there is a denial of service vulnerability in the `If-Match` and `If-None-Match` header parsing component of Sinatra, if the `etag` method is used when constructing the response. Carefully crafted input can cause `If-Match` and `If-None-Match` header parsing in Sinatra to take an unexpected amount of time, possibly resulting in a denial of service attack vector. This header is typically involved in generating the `ETag` header value. Any applications that use the `etag` method when generating a response are impacted. Version 4.2.0 fixes the issue."
                }
            ],
            "source": {
                "advisory": "GHSA-mr3q-g2mv-mr4q",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-10-10T20:54:24.202335Z",
                                "id": "CVE-2025-61921",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-10-10T20:54:47.627Z"
                }
            }
        ]
    }
}