{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-27219","id":"CVE-2025-27219","title":"CGI has Denial of Service (DoS) potential in Cookie.parse","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.","descriptionLong":"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.","published":"2025-03-03T00:00:00.000Z","updated":"2026-10-28T02:31:04.189389043Z","reserved":"2025-02-20T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"mitre"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"mitre"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"mitre.org"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["ruby-lang CGI"],"affectedProducts":[{"vendor":"ruby-lang","product":"CGI","defaultStatus":"unaffected","versions":[{"lessThan":"0.3.5.1","status":"affected","version":"0","versionType":"custom"},{"lessThan":"0.3.7","status":"affected","version":"0.3.6","versionType":"custom"},{"lessThan":"0.4.2","status":"affected","version":"0.4.0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"cgi","purl":"pkg:gem/cgi","ranges":["<0.3.5.1",">=0.3.6 <0.3.7",">=0.4.0 <0.4.2"],"fixed":["0.3.5.1","0.3.7","0.4.2"],"advisory":"GHSA-gh9q-2xrm-x6qv"}],"cwes":["CWE-770","CWE-400"],"aliases":["GHSA-gh9q-2xrm-x6qv"],"references":[{"url":"https://hackerone.com/reports/2936778","tags":["Permissions Required","web"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27219.yml","tags":["Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27219.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27219","tags":["advisory"]},{"url":"https://github.com/ruby/cgi/pull/52","tags":["web"]},{"url":"https://github.com/ruby/cgi/pull/53","tags":["web"]},{"url":"https://github.com/ruby/cgi/pull/54","tags":["web"]},{"url":"https://github.com/ruby/cgi","tags":["package"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-27219","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00849,"epssPercentile":0.58901,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-27219","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-27219","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-27219","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gh9q-2xrm-x6qv","ok":true,"note":"GHSA-gh9q-2xrm-x6qv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-27219","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}