{"id":"CVE-2018-8013","aliases":["GHSA-25gw-4pcc-45cf"],"kind":"cve","tier":"cold","status":"published","title":"Deserialization of Untrusted Data in Apache Batik","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.","ai_summary":null,"severity":"critical","cvss":{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},"scores":[{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd"},{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-502"],"remote":true,"remote_unauth":true,"epss":{"score":0.18309,"percentile":0.97293,"date":"2026-12-02"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"Maven","name":"org.apache.xmlgraphics:batik","affected":">= 1.0, < 1.10","fixed":["1.10"],"source":"osv"}],"affected_products":[{"vendor":"Apache Software Foundation","product":"Apache Batik","versions":"1.0 - 1.9.1","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade org.apache.xmlgraphics:batik to 1.10 or later.","technologies":[],"references":[{"url":"https://www.debian.org/security/2018/dsa-4215","kind":"vendor"},{"url":"https://usn.ubuntu.com/3661-1/","kind":"vendor"},{"url":"https://security.gentoo.org/glsa/202401-11","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-8013","kind":"vendor"},{"url":"http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html","kind":"patch"},{"url":"http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html","kind":"patch"},{"url":"https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html","kind":"patch"},{"url":"https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html","kind":"patch"},{"url":"https://github.com/apache/xmlgraphics-batik/commit/f91125b26a6ca2b7a1195f1842360bed03629839","kind":"patch"},{"url":"http://www.securityfocus.com/bid/104252","kind":"other"},{"url":"https://lists.debian.org/debian-lts-announce/2018/05/msg00016.html","kind":"other"},{"url":"https://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-dev/201805.mbox/%3c000701d3f28f%24d01860a0%24704921e0%24%40gmail.com%3e","kind":"other"},{"url":"http://www.securitytracker.com/id/1040995","kind":"other"},{"url":"https://lists.apache.org/thread.html/r9e90b4d1cf6ea87a79bb506541140dfbf4801f4463a7cee08126ee44%40%3Ccommits.xmlgraphics.apache.org%3E","kind":"other"},{"url":"https://lists.apache.org/thread.html/rc0a31867796043fbe59113fb654fe8b13309fe04f8935acb8d0fab19%40%3Ccommits.xmlgraphics.apache.org%3E","kind":"other"},{"url":"https://www.oracle.com/security-alerts/cpujul2020.html","kind":"other"},{"url":"https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","kind":"other"},{"url":"https://xmlgraphics.apache.org/security.html","kind":"other"},{"url":"https://www.oracle.com/security-alerts/cpuoct2020.html","kind":"other"},{"url":"https://usn.ubuntu.com/3661-1","kind":"other"},{"url":"https://ubuntu.com/security/CVE-2018-8013","kind":"other"},{"url":"https://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-dev/201805.mbox/%3c000701d3f28f$d01860a0$704921e0$@gmail.com%3e","kind":"other"},{"url":"https://lists.apache.org/thread.html/rc0a31867796043fbe59113fb654fe8b13309fe04f8935acb8d0fab19@%3Ccommits.xmlgraphics.apache.org%3E","kind":"other"},{"url":"https://lists.apache.org/thread.html/r9e90b4d1cf6ea87a79bb506541140dfbf4801f4463a7cee08126ee44@%3Ccommits.xmlgraphics.apache.org%3E","kind":"other"},{"url":"https://issues.apache.org/jira/browse/BATIK-1222","kind":"other"}],"workarounds":null,"vendors":["apache","apache software foundation","canonical","debian","oracle"],"products":["apache batik","batik","business_intelligence","communications_diameter_signaling_router","communications_metasolv_solution","communications_webrtc_session_controller","data_integrator","debian_linux","enterprise_repository","financial_services_analytical_applications_infrastructure","fusion_middleware_mapviewer","instantis_enterprisetrack","insurance_calculation_engine","insurance_policy_administration_j2ee","jd_edwards_enterpriseone_tools","retail_back_office","retail_central_office","retail_integration_bus","retail_order_broker","retail_point-of-service","retail_returns_management","ubuntu_linux"],"cpes":["cpe:2.3:a:apache:batik:*:*:*:*:*:*:*:*","cpe:2.3:a:oracle:business_intelligence:11.1.1.7.0:*:*:*:enterprise:*:*:*","cpe:2.3:a:oracle:business_intelligence:11.1.1.9.0:*:*:*:enterprise:*:*:*","cpe:2.3:a:oracle:business_intelligence:12.2.1.3.0:*:*:*:enterprise:*:*:*","cpe:2.3:a:oracle:business_intelligence:12.2.1.4.0:*:*:*:enterprise:*:*:*","cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:*","cpe:2.3:a:oracle:communications_metasolv_solution:6.3.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:communications_webrtc_session_controller:*:*:*:*:*:*:*:*","cpe:2.3:a:oracle:data_integrator:12.2.1.3.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:enterprise_repository:11.1.1.7.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:enterprise_repository:12.1.3.0.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:financial_services_analytical_applications_infrastructure:*:*:*:*:*:*:*:*","cpe:2.3:a:oracle:fusion_middleware_mapviewer:12.2.1.2:*:*:*:*:*:*:*","cpe:2.3:a:oracle:fusion_middleware_mapviewer:12.2.1.3:*:*:*:*:*:*:*","cpe:2.3:a:oracle:instantis_enterprisetrack:17.1:*:*:*:*:*:*:*","cpe:2.3:a:oracle:instantis_enterprisetrack:17.2:*:*:*:*:*:*:*","cpe:2.3:a:oracle:instantis_enterprisetrack:17.3:*:*:*:*:*:*:*","cpe:2.3:a:oracle:insurance_calculation_engine:10.1.1:*:*:*:*:*:*:*","cpe:2.3:a:oracle:insurance_calculation_engine:10.2.1:*:*:*:*:*:*:*","cpe:2.3:a:oracle:insurance_policy_administration_j2ee:10.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:insurance_policy_administration_j2ee:10.2:*:*:*:*:*:*:*","cpe:2.3:a:oracle:jd_edwards_enterpriseone_tools:9.2:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_back_office:13.3:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_back_office:13.4:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_back_office:14.1:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_back_office:14:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_central_office:14.1:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_integration_bus:17.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_order_broker:15.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_order_broker:16.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_order_broker:5.1:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_order_broker:5.2:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_point-of-service:13.4:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_point-of-service:14.0:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_point-of-service:14.1:*:*:*:*:*:*:*","cpe:2.3:a:oracle:retail_returns_management:14.1:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*","cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"],"published_at":"2018-05-24T16:00:00.000Z","modified_at":"2026-06-17T02:04:05.320Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-8013"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-25gw-4pcc-45cf","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2018-8013","markdown":"https://flawdb.com/CVE-2018-8013.md","json":"https://flawdb.com/api/v1/entries/CVE-2018-8013"}}