{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.xmlgraphics:batik. It affects 21 products.","exploited":"There is no known exploitation of CVE-2018-8013 in the wild and no public exploit code.","fix":"Upgrade org.apache.xmlgraphics:batik to 1.10 or later.","what":"CVE-2018-8013 is a critical unsafe deserialization vulnerability in Canonical Ubuntu Linux, published on 24 May 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-8013 and fix it if it is affected.\n\nWhat it is: CVE-2018-8013 is a critical unsafe deserialization vulnerability in Canonical Ubuntu Linux, published on 24 May 2018. 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-2018-8013 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.10\n- org.apache.xmlgraphics:batik (Maven): affected from 1.0; fixed in 1.10\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-2018-8013/ (Markdown: https://insights.sbomify.com/CVE-2018-8013/index.md)","id":"CVE-2018-8013","markdown":"https://insights.sbomify.com/CVE-2018-8013/index.md","name":"CVE-2018-8013","record":{"aliases":["DEBIAN-CVE-2018-8013","DLA-1385-1","GHSA-25gw-4pcc-45cf","UBUNTU-CVE-2018-8013","USN-3661-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java graphics library","requires_auth":"none","summary":"An attacker can execute arbitrary code by exploiting unsafe deserialization in Apache Batik when processing malicious input streams.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"batik","vendor":"apache"},{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"business_intelligence","vendor":"oracle"},{"product":"communications_diameter_signaling_router","vendor":"oracle"},{"product":"communications_metasolv_solution","vendor":"oracle"},{"product":"communications_webrtc_session_controller","vendor":"oracle"},{"product":"data_integrator","vendor":"oracle"},{"product":"enterprise_repository","vendor":"oracle"},{"product":"financial_services_analytical_applications_infrastructure","vendor":"oracle"},{"product":"fusion_middleware_mapviewer","vendor":"oracle"},{"product":"instantis_enterprisetrack","vendor":"oracle"},{"product":"insurance_calculation_engine","vendor":"oracle"},{"product":"insurance_policy_administration_j2ee","vendor":"oracle"},{"product":"jd_edwards_enterpriseone_tools","vendor":"oracle"},{"product":"retail_back_office","vendor":"oracle"},{"product":"retail_central_office","vendor":"oracle"},{"product":"retail_integration_bus","vendor":"oracle"},{"product":"retail_order_broker","vendor":"oracle"},{"product":"retail_point-of-service","vendor":"oracle"},{"product":"retail_returns_management","vendor":"oracle"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"In Apache Batik 1.x before 1.10, when deserializing subclass of `AbstractDocument`, the class takes a string from the inputStream as the class name which then use it to call the no-arg constructor of the class. Fix was to check the class type before calling newInstance in deserialization.","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":true,"headline":"Deserialization of Untrusted Data in Apache Batik","id":"CVE-2018-8013","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","oracle:business_intelligence","oracle:communications_diameter_signaling_router","oracle:financial_services_analytical_applications_infrastructure","oracle:instantis_enterprisetrack","oracle:jd_edwards_enterpriseone_tools"],"type":"deserialization","year":"2018"},"n_packages":2,"n_references":17,"next":{"headline":"The defaults settings for the CORS filter provided in Apache Tomcat are insecure and enable 'supportsCredentials' for all origins","id":"CVE-2018-8014"},"packages":[{"ecosystem":"Maven","fixed":["1.10"],"introduced":["1.0"],"last_affected":[],"package":"org.apache.xmlgraphics:batik","purl":null,"source":"GHSA-25gw-4pcc-45cf"},{"ecosystem":"Maven","fixed":["1.10"],"introduced":["1.0"],"last_affected":[],"package":"org.apache.xmlgraphics:batik","purl":"pkg:maven/org.apache.xmlgraphics/batik","source":"GHSA-25gw-4pcc-45cf"}],"prev":{"headline":"Missing Authorization in Apache ZooKeeper","id":"CVE-2018-8012"},"products":["Apache Batik"],"published":"2018-05-24","related":[{"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":"Jar url should be blocked by DefaultScriptSecurity","id":"CVE-2022-40146","kev_date_added":null,"published":"2022-09-22"},{"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)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Apache Software Foundation"]},"summary":"An attacker can execute arbitrary code by exploiting unsafe deserialization in Apache Batik when processing malicious input streams.","url":"https://insights.sbomify.com/CVE-2018-8013/"}