{"id":"CVE-2025-27219","aliases":["GHSA-gh9q-2xrm-x6qv"],"url":"https://o3.security/vulnerability/CVE-2025-27219","summary":"CGI has Denial of Service (DoS) potential in Cookie.parse","details":"There is a possibility for DoS by in the cgi gem.\nThis vulnerability has been assigned the CVE identifier CVE-2025-27219. We recommend upgrading the cgi gem.\n\n## Details\n\nCGI::Cookie.parse took super-linear time to parse a cookie string in some cases. Feeding a maliciously crafted cookie string into the method could lead to a Denial of Service.\n\nPlease update CGI gem to version 0.3.5.1, 0.3.7, 0.4.2 or later.\n\n## Affected versions\n\ncgi gem versions <= 0.3.5, 0.3.6, 0.4.0 and 0.4.1.\n\n## Credits\n\nThanks to lio346 for discovering this issue.\nAlso thanks to mame for fixing this vulnerability.","published":"2025-03-03T00:00:00Z","modified":"2026-09-16T11:45:09.987129986Z","cvss":{"score":5.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L"},"epss":{"score":0.00818,"percentile":0.54423,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"cgi","fixedVersion":"0.3.5.1"},{"ecosystem":"RubyGems","name":"cgi","fixedVersion":"0.3.7"},{"ecosystem":"RubyGems","name":"cgi","fixedVersion":"0.4.2"}],"fix":{"url":"https://github.com/ruby/cgi/pull/52","label":"ruby/cgi#52"},"references":[{"type":"WEB","url":"https://hackerone.com/reports/2936778"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27219.json"},{"type":"ADVISORY","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27219.yml"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27219"},{"type":"WEB","url":"https://github.com/ruby/cgi/pull/52"},{"type":"WEB","url":"https://github.com/ruby/cgi/pull/53"},{"type":"WEB","url":"https://github.com/ruby/cgi/pull/54"},{"type":"PACKAGE","url":"https://github.com/ruby/cgi"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-27219"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-16T11:45:09.987129986Z"}}