{"answers":{"affected":"2 open source packages ship an affected version, including webrick. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-4310 exists.","fix":"Upgrade webrick to 1.3.1 or later.","what":"CVE-2008-4310 is a high-severity denial of service vulnerability in Ruby-Lang Ruby, published on 9 Dec 2008. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2008-4310 and fix it if it is affected.\n\nWhat it is: CVE-2008-4310 is a high-severity denial of service vulnerability in Ruby-Lang Ruby, published on 9 Dec 2008. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-4310 exists.\n\nAffected packages and fixed versions:\n- webrick (RubyGems): affected all versions; fixed in 1.3.1\n- webrick (RubyGems): affected all versions; fixed in 1.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2008-4310/ (Markdown: https://insights.sbomify.com/CVE-2008-4310/index.md)","id":"CVE-2008-4310","markdown":"https://insights.sbomify.com/CVE-2008-4310/index.md","name":"CVE-2008-4310","record":{"aliases":["GHSA-wfrc-r6c6-7j9r","RHSA-2008:0981"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby WEBrick library","requires_auth":"none","summary":"Remote attackers can cause denial of service via CPU consumption in the Ruby WEBrick library through crafted HTTP requests.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ruby","vendor":"ruby-lang"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:C","version":"2.0"},"cwes":[{"id":"CWE-399","name":null}],"description":"httputils.rb in WEBrick in Ruby 1.8.1 and 1.8.5, as used in Red Hat Enterprise Linux 4 and 5, allows remote attackers to cause a denial of service (CPU consumption) via a crafted HTTP request.  NOTE: this issue exists because of an incomplete fix for CVE-2008-3656.","ecosystems":["Red Hat:enterprise_linux:4::as","Red Hat:enterprise_linux:4::desktop","Red Hat:enterprise_linux:4::es","Red Hat:enterprise_linux:4::ws","Red Hat:enterprise_linux:5::client","Red Hat:enterprise_linux:5::client_workstation","Red Hat:enterprise_linux:5::server","RubyGems"],"exploits":{"exploitdb":1,"first_seen":"2008-08-11","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2008-08-11","kind":"exploitdb","ref":"32222","stars":null,"title":"Ruby 1.9 - 'WEBrick::HTTP::DefaultFileHandler' Crafted HTTP Request Denial of Service"}],"tier":"weaponised"},"has_fix":true,"headline":"WEBrick Denial of Service Vulnerability","id":"CVE-2008-4310","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"ruby-lang:ruby","products":["ruby-lang:ruby"],"type":"denial_of_service","year":"2008"},"n_packages":56,"n_references":5,"next":{"headline":"Security feature bypass in n/a","id":"CVE-2008-4311"},"packages":[{"ecosystem":"RubyGems","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"webrick","purl":null,"source":"GHSA-wfrc-r6c6-7j9r"},{"ecosystem":"RubyGems","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"webrick","purl":"pkg:gem/webrick","source":"GHSA-wfrc-r6c6-7j9r"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"irb","purl":"pkg:rpm/redhat/irb","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-docs","purl":"pkg:rpm/redhat/ruby-docs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-mode","purl":"pkg:rpm/redhat/ruby-mode","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-tcltk","purl":"pkg:rpm/redhat/ruby-tcltk","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"irb","purl":"pkg:rpm/redhat/irb","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-docs","purl":"pkg:rpm/redhat/ruby-docs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-mode","purl":"pkg:rpm/redhat/ruby-mode","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-tcltk","purl":"pkg:rpm/redhat/ruby-tcltk","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"irb","purl":"pkg:rpm/redhat/irb","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-docs","purl":"pkg:rpm/redhat/ruby-docs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-mode","purl":"pkg:rpm/redhat/ruby-mode","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-tcltk","purl":"pkg:rpm/redhat/ruby-tcltk","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"irb","purl":"pkg:rpm/redhat/irb","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-devel","purl":"pkg:rpm/redhat/ruby-devel","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-docs","purl":"pkg:rpm/redhat/ruby-docs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-mode","purl":"pkg:rpm/redhat/ruby-mode","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:1.8.1-7.el4_7.2"],"introduced":["0"],"last_affected":[],"package":"ruby-tcltk","purl":"pkg:rpm/redhat/ruby-tcltk","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:1.8.5-5.el5_2.6"],"introduced":["0"],"last_affected":[],"package":"ruby","purl":"pkg:rpm/redhat/ruby","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:1.8.5-5.el5_2.6"],"introduced":["0"],"last_affected":[],"package":"ruby-debuginfo","purl":"pkg:rpm/redhat/ruby-debuginfo","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:1.8.5-5.el5_2.6"],"introduced":["0"],"last_affected":[],"package":"ruby-docs","purl":"pkg:rpm/redhat/ruby-docs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:1.8.5-5.el5_2.6"],"introduced":["0"],"last_affected":[],"package":"ruby-irb","purl":"pkg:rpm/redhat/ruby-irb","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:1.8.5-5.el5_2.6"],"introduced":["0"],"last_affected":[],"package":"ruby-libs","purl":"pkg:rpm/redhat/ruby-libs","source":"RHSA-2008:0981"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:1.8.5-5.el5_2.6"],"introduced":["0"],"last_affected":[],"package":"ruby-rdoc","purl":"pkg:rpm/redhat/ruby-rdoc","source":"RHSA-2008:0981"}],"prev":{"headline":"Integer overflow in n/a","id":"CVE-2008-4309"},"products":["n/a"],"published":"2008-12-09","related":[{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-4124","kev_date_added":null,"published":"2009-12-11"},{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2022-28738","kev_date_added":null,"published":"2022-05-09"},{"cvss_score":9.8,"headline":"Weak cryptography in OpenSSL extension of Ruby (Git trunk)","id":"CVE-2011-4121","kev_date_added":null,"published":"2019-11-26"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2017-17790","kev_date_added":null,"published":"2017-12-20"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-11465","kev_date_added":null,"published":"2017-07-19"},{"cvss_score":9.8,"headline":"Memory corruption in Ruby","id":"CVE-2016-2336","kev_date_added":null,"published":"2017-01-06"},{"cvss_score":9.8,"headline":"Code injection in Ruby","id":"CVE-2016-2337","kev_date_added":null,"published":"2017-01-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Remote attackers can cause denial of service via CPU consumption in the Ruby WEBrick library through crafted HTTP requests.","url":"https://insights.sbomify.com/CVE-2008-4310/"}