{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.sling:org.apache.sling.commons.json. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-47937 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-47937 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-47937 is a critical denial of service vulnerability in org.apache.sling.commons.json, published on 15 May 2023. 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-47937 and fix it if it is affected.\n\nWhat it is: CVE-2022-47937 is a critical denial of service vulnerability in org.apache.sling.commons.json, published on 15 May 2023. 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-47937 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.sling:org.apache.sling.commons.json (Maven): affected all versions up to 2.0.20; no fix listed\n- org.apache.sling:org.apache.sling.commons.json (Maven): affected all versions up to 2.0.20; no fix listed\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-47937/ (Markdown: https://insights.sbomify.com/CVE-2022-47937/index.md)","id":"CVE-2022-47937","markdown":"https://insights.sbomify.com/CVE-2022-47937/index.md","name":"CVE-2022-47937","record":{"aliases":["GHSA-8j28-34qq-gmch"],"analysis":{"component_type":"library","fix_type":"end_of_life","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Sling JSON library","requires_auth":"none","summary":"Attackers can cause unexpected errors and denial of service in applications using the deprecated Apache Sling Commons JSON bundle via crafted input.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"sling_commons_json","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Improper input validation in the Apache Sling Commons JSON bundle allows an attacker to trigger unexpected errors by supplying specially-crafted input.\n\nThe org.apache.sling.commons.json bundle has been deprecated as of March\n 2017 and should not be used anymore. Consumers are encouraged to \nconsider the Apache Sling Commons Johnzon OSGi bundle provided by the \nApache Sling project, but may of course use other JSON libraries.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Multiple parsing problems in the Apache Sling Commons JSON module","id":"CVE-2022-47937","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":2,"n_references":4,"next":{"headline":"Memory corruption in n/a","id":"CVE-2022-47938"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.0.20"],"package":"org.apache.sling:org.apache.sling.commons.json","purl":null,"source":"GHSA-8j28-34qq-gmch"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.0.20"],"package":"org.apache.sling:org.apache.sling.commons.json","purl":"pkg:maven/org.apache.sling/org.apache.sling.commons.json","source":"GHSA-8j28-34qq-gmch"}],"prev":{"headline":"Memory corruption in JT Open","id":"CVE-2022-47936"},"products":["org.apache.sling.commons.json"],"published":"2023-05-15","related":[],"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":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-10","vendors":["Apache Software Foundation"]},"summary":"Attackers can cause unexpected errors and denial of service in applications using the deprecated Apache Sling Commons JSON bundle via crafted input.","url":"https://insights.sbomify.com/CVE-2022-47937/"}