# CVE-2025-27219: CGI has Denial of Service (DoS) potential in Cookie.parse

- Severity: Medium 5.8 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.85%, higher than 59% of CVEs (2026-12-02)
- Published: 2025-03-03T00:00:00.000Z
- Modified: 2026-09-10T03:49:48.446Z
- Also known as: GHSA-gh9q-2xrm-x6qv
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerability. The method does not impose any limit on the length of the raw cookie value it processes. This oversight can lead to excessive resource consumption when parsing extremely large cookies.

(As written by CVE List.)

## Affected

- ruby-lang CGI: before 0.3.5.1; from 0.3.6 before 0.3.7; from 0.4.0 before 0.4.2; 0.3.6
- cgi (RubyGems): before 0.3.5.1; from 0.3.6 before 0.3.7; from 0.4.0 before 0.4.2

## Every score

- mitre: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://hackerone.com/reports/2936778> (permissions-required, web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27219.yml> (third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27219> (advisory)
- <https://github.com/ruby/cgi/pull/52> (web)
- <https://github.com/ruby/cgi/pull/53> (web)
- <https://github.com/ruby/cgi/pull/54> (web)
- <https://github.com/ruby/cgi> (package)
- <https://www.cve.org/CVERecord?id=CVE-2025-27219> (web)

## Sources

- CVE List: [CVE-2025-27219](https://www.cve.org/CVERecord?id=CVE-2025-27219), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-gh9q-2xrm-x6qv](https://github.com/advisories/GHSA-gh9q-2xrm-x6qv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-27219](https://nvd.nist.gov/vuln/detail/CVE-2025-27219), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-27219 · Whole record: https://cve.day/CVE-2025-27219.json · Rebuilt by cve.day 2026-11-25T22:58:54.934Z
