{"answers":{"affected":"2 open source packages ship an affected version, including nokogiri. It affects 4 products.","exploited":"There is no known exploitation of CVE-2022-24836 in the wild and no public exploit code.","fix":"Upgrade nokogiri to 1.13.4 or later.","what":"CVE-2022-24836 is a high-severity denial of service vulnerability in Apple Macos, published on 11 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-24836 and fix it if it is affected.\n\nWhat it is: CVE-2022-24836 is a high-severity denial of service vulnerability in Apple Macos, published on 11 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-24836 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nokogiri (RubyGems): affected all versions; fixed in 1.13.4\n- nokogiri (RubyGems): affected all versions; fixed in 1.13.4\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-2022-24836/ (Markdown: https://insights.sbomify.com/CVE-2022-24836/index.md)","id":"CVE-2022-24836","markdown":"https://insights.sbomify.com/CVE-2022-24836/index.md","name":"CVE-2022-24836","record":{"aliases":["DEBIAN-CVE-2022-24836","DLA-3003-1","DLA-3868-1","GHSA-crjr-9rc5-ghw8","MGASA-2022-0164","OESA-2022-1644","UBUNTU-CVE-2022-24836"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby XML/HTML library","requires_auth":"none","summary":"An attacker can cause a denial of service in applications using Nokogiri by submitting HTML documents that trigger excessive backtracking in encoding detection regexes.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"macos","vendor":"apple"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"nokogiri","vendor":"nokogiri"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `\u003c v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokogiri `\u003e= 1.13.4`. There are no known workarounds for this issue.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Inefficient Regular Expression Complexity in Nokogiri","id":"CVE-2022-24836","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"apple:macos","products":["apple:macos","debian:debian_linux","fedoraproject:fedora"],"type":"denial_of_service","year":"2022"},"n_packages":2,"n_references":10,"next":{"headline":"Enumerable upload file names in hedgedoc","id":"CVE-2022-24837"},"packages":[{"ecosystem":"RubyGems","fixed":["1.13.4"],"introduced":["0"],"last_affected":[],"package":"nokogiri","purl":null,"source":"GHSA-crjr-9rc5-ghw8"},{"ecosystem":"RubyGems","fixed":["1.13.4"],"introduced":["0"],"last_affected":[],"package":"nokogiri","purl":"pkg:gem/nokogiri","source":"GHSA-crjr-9rc5-ghw8"}],"prev":{"headline":"Heap overflow issue with the Lua cjson library used by Redis","id":"CVE-2022-24834"},"products":["nokogiri"],"published":"2022-04-11","related":[{"cvss_score":9.8,"headline":"Apple macOS Improper Authentication","id":"CVE-2026-65400","kev_date_added":"2026-08-18","published":"2026-08-06"},{"cvss_score":10,"headline":"Security feature bypass in macOS","id":"CVE-2024-44146","kev_date_added":null,"published":"2024-09-16"},{"cvss_score":10,"headline":"Security feature bypass in macOS","id":"CVE-2024-44148","kev_date_added":null,"published":"2024-09-16"},{"cvss_score":10,"headline":"Security feature bypass in macOS","id":"CVE-2023-38586","kev_date_added":null,"published":"2023-09-26"},{"cvss_score":10,"headline":"Security feature bypass in macOS","id":"CVE-2023-40455","kev_date_added":null,"published":"2023-09-26"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-1999-0590","kev_date_added":null,"published":"2000-02-04"},{"cvss_score":9.8,"headline":"Memory corruption in macOS","id":"CVE-2026-84520","kev_date_added":null,"published":"2026-09-14"}],"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":"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-03","vendors":["sparklemotion"]},"summary":"An attacker can cause a denial of service in applications using Nokogiri by submitting HTML documents that trigger excessive backtracking in encoding detection regexes.","url":"https://insights.sbomify.com/CVE-2022-24836/"}