{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.xmlgraphics:batik. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-40146 in the wild and no public exploit code.","fix":"Upgrade org.apache.xmlgraphics:batik to 1.15 or later.","what":"CVE-2022-40146 is a high-severity server-side request forgery vulnerability in Debian Debian Linux, published on 22 Sep 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-40146 and fix it if it is affected.\n\nWhat it is: CVE-2022-40146 is a high-severity server-side request forgery vulnerability in Debian Debian Linux, published on 22 Sep 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-40146 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.xmlgraphics:batik (Maven): affected from 1.0; fixed in 1.15\n- org.apache.xmlgraphics:batik (Maven): affected from 1.0; fixed in 1.15\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-40146/ (Markdown: https://insights.sbomify.com/CVE-2022-40146/index.md)","id":"CVE-2022-40146","markdown":"https://insights.sbomify.com/CVE-2022-40146/index.md","name":"CVE-2022-40146","record":{"aliases":["DEBIAN-CVE-2022-40146","GHSA-h4qg-p7r2-cpg3","UBUNTU-CVE-2022-40146"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache XML Graphics Batik","requires_auth":"none","summary":"An attacker can exploit a Server-Side Request Forgery vulnerability in Apache Batik to access local files via Jar URLs.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"batik","vendor":"apache"},{"product":"debian_linux","vendor":"debian"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to access files using a Jar url. This issue affects Apache XML Graphics Batik 1.14.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2022-11-01","github_poc":2,"max_poc_stars":31,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-11-01T03:41:36Z","kind":"github_poc","ref":"https://github.com/cckuailong/CVE-2022-40146_Exploit_Jar","stars":31,"title":null},{"date":"2024-07-30T15:00:00Z","kind":"github_poc","ref":"https://github.com/soulfoodisgood/CVE-2022-40146","stars":0,"title":"Vulnerable svg-to-png service"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Jar url should be blocked by DefaultScriptSecurity","id":"CVE-2022-40146","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"ssrf","year":"2022"},"n_packages":2,"n_references":3,"next":{"headline":"Security feature bypass in Industrial Edge Management","id":"CVE-2022-40147"},"packages":[{"ecosystem":"Maven","fixed":["1.15"],"introduced":["1.0"],"last_affected":[],"package":"org.apache.xmlgraphics:batik","purl":null,"source":"GHSA-h4qg-p7r2-cpg3"},{"ecosystem":"Maven","fixed":["1.15"],"introduced":["1.0"],"last_affected":[],"package":"org.apache.xmlgraphics:batik","purl":"pkg:maven/org.apache.xmlgraphics/batik","source":"GHSA-h4qg-p7r2-cpg3"}],"prev":{"headline":"Apache Karaf: JDBC JAAS LDAP injection","id":"CVE-2022-40145"},"products":["Apache XML Graphics"],"published":"2022-09-22","related":[{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Apache Batik","id":"CVE-2018-8013","kev_date_added":null,"published":"2018-05-24"},{"cvss_score":8.2,"headline":"Server-side request forgery (SSRF) in Apache Batik","id":"CVE-2020-11987","kev_date_added":null,"published":"2021-02-24"},{"cvss_score":7.5,"headline":"Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input","id":"CVE-2022-41704","kev_date_added":null,"published":"2022-10-25"},{"cvss_score":7.5,"headline":"Apache Batik prior to 1.16 allows RCE via scripting","id":"CVE-2022-42890","kev_date_added":null,"published":"2022-10-25"},{"cvss_score":7.5,"headline":"Server-side request forgery (SSRF) in Apache Batik","id":"CVE-2019-17566","kev_date_added":null,"published":"2020-11-12"},{"cvss_score":7.3,"headline":"Improper Restriction of XML External Entity Reference in Apache Batik","id":"CVE-2017-5662","kev_date_added":null,"published":"2017-04-18"}],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2025-11-03","vendors":["Apache Software Foundation"]},"summary":"An attacker can exploit a Server-Side Request Forgery vulnerability in Apache Batik to access local files via Jar URLs.","url":"https://insights.sbomify.com/CVE-2022-40146/"}