{"id":"CVE-2004-0983","aliases":["DEBIAN-CVE-2004-0983","DSA-586-1","EUVD-2004-0981","GHSA-f94p-wf3v-wp5p","RHSA-2004:635"],"status":"published","title":"The CGI module in Ruby 1.6 before 1.6.8, and 1.8 before 1.8.2, allows remote attackers to cause a...","description":"The CGI module in Ruby 1.6 before 1.6.8, and 1.8 before 1.8.2, allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a certain HTTP request.","severity":{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01898,"percentile":0.79797,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2004-11-08T00:00:00Z","modified":"2026-06-26T10:01:48Z","fixes":[{"ecosystem":"Debian:3.0","package":"ruby","fixed_in":["1.6.7-3woody4"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::as","package":"irb","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-debuginfo","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-devel","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-docs","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-libs","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-mode","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-tcltk","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"irb","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-debuginfo","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-devel","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-docs","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-libs","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-mode","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-tcltk","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::es","package":"irb","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-debuginfo","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-devel","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-docs","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-libs","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-mode","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-tcltk","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::ws","package":"irb","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-debuginfo","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-devel","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-docs","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-libs","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-mode","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-tcltk","fixed_in":["0:1.6.8-9.EL3.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:3.0","package":"ruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.7-3woody4"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"irb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-mode","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"ruby-tcltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"irb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-mode","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"ruby-tcltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"irb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-mode","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"ruby-tcltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"irb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-docs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-mode","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"ruby-tcltk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.6.8-9.EL3.3"}]}]}],"products":[{"vendor":"gentoo","product":"linux"},{"vendor":"mandrakesoft","product":"mandrake_linux"},{"vendor":"mandrakesoft","product":"mandrake_linux_corporate_server"},{"vendor":"ubuntu","product":"ubuntu_linux"},{"vendor":"yukihiro_matsumoto","product":"ruby"}],"references":[{"url":"http://www.redhat.com/support/errata/RHSA-2004-635.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:128","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"]},{"url":"http://www.securityfocus.com/bid/11618","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","Vendor Advisory"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10268","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"]},{"url":"https://usn.ubuntu.com/20-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://www.debian.org/security/2004/dsa-586","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17985","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-0983","tags":["advisory"]},{"url":"https://usn.ubuntu.com/20-1"},{"url":"https://github.com/advisories/GHSA-f94p-wf3v-wp5p"},{"url":"https://access.redhat.com/errata/RHSA-2004:635","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=138362","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_635.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-0983","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617342","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-0983","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-0983","description":"The CGI module in Ruby 1.6 before 1.6.8, and 1.8 before 1.8.2, allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a certain HTTP request.","status":"published","published":"2004-11-19T05:00:00Z","modified":"2024-08-08T00:38:59.645Z","updated_at":"2026-11-02T14:34:55.098814Z"}],"euvd":[{"id":"EUVD-2004-0981","description":"The CGI module in Ruby 1.6 before 1.6.8, and 1.8 before 1.8.2, allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a certain HTTP request.","status":"published","published":"2004-11-19T05:00:00Z","modified":"2024-08-08T00:38:59Z","updated_at":"2026-11-03T01:15:17.239417Z"}],"ghsa":[{"id":"GHSA-f94p-wf3v-wp5p","title":"The CGI module in Ruby 1.6 before 1.6.8, and 1.8 before 1.8.2, allows remote attackers to cause a...","description":"The CGI module in Ruby 1.6 before 1.6.8, and 1.8 before 1.8.2, allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a certain HTTP request.","status":"published","published":"2022-04-29T02:58:43Z","modified":"2025-04-03T04:09:21Z","updated_at":"2026-11-02T15:00:41.179225Z"}],"nvd":[{"id":"CVE-2004-0983","description":"The CGI module in Ruby 1.6 before 1.6.8, and 1.8 before 1.8.2, allows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a certain HTTP request.","status":"published","published":"2005-03-01T05:00:00Z","modified":"2026-06-16T22:06:47.507Z","cvss":[{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:53.662124Z"}],"osv":[{"id":"DSA-586-1","title":"ruby - infinite loop","status":"published","published":"2004-11-08T00:00:00Z","modified":"2026-03-09T02:08:34.811297Z","updated_at":"2026-11-02T15:46:17.892347Z"},{"id":"RHSA-2004:635","title":"Red Hat Security Advisory: ruby security update","status":"published","published":"2024-09-15T14:58:53Z","modified":"2026-06-26T10:01:48Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
