{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-42890","id":"CVE-2022-42890","title":"Apache Batik prior to 1.16 allows RCE via scripting","description":"A vulnerability in Batik of Apache XML Graphics allows an attacker to run Java code from untrusted SVG via JavaScript. This issue affects Apache XML Graphics prior to 1.16. Users are recommended to upgrade to version 1.16.","descriptionLong":"A vulnerability in Batik of Apache XML Graphics allows an attacker to run Java code from untrusted SVG via JavaScript. This issue affects Apache XML Graphics prior to 1.16. Users are recommended to upgrade to version 1.16.","published":"2022-10-25T00:00:00.000Z","updated":"2026-10-28T02:31:00.969302767Z","reserved":"2022-10-12T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["Apache Software Foundation Apache XML Graphics"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache XML Graphics","defaultStatus":null,"versions":[{"version":"Batik","status":"affected","lessThanOrEqual":"1.15","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.apache.xmlgraphics:batik","purl":"pkg:maven/org.apache.xmlgraphics/batik","ranges":["<1.16"],"fixed":["1.16"],"advisory":"GHSA-rwqr-m72q-v6cm"},{"ecosystem":"Maven","name":"org.apache.xmlgraphics:batik-bridge","purl":"pkg:maven/org.apache.xmlgraphics/batik-bridge","ranges":["<1.16"],"fixed":["1.16"],"advisory":"GHSA-rwqr-m72q-v6cm"}],"cwes":["CWE-918"],"aliases":["GHSA-rwqr-m72q-v6cm"],"references":[{"url":"https://lists.apache.org/thread/pkvhy0nsj1h1mlon008wtzhosbtxjwly","tags":["x_transferred","Vendor Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2022/10/25/3","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00038.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article","web"]},{"url":"https://www.debian.org/security/2022/dsa-5264","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://security.gentoo.org/glsa/202401-11","tags":["vendor-advisory","x_transferred","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42890.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42890","tags":["advisory"]},{"url":"https://github.com/apache/xmlgraphics-batik/commit/401aa8595f52d085d40ff5b6b4ac0dd372423082","tags":["web"]},{"url":"https://github.com/apache/xmlgraphics-batik/commit/52f7a1ad6e3110ec295a35ffc94410eef085707a","tags":["web"]},{"url":"https://github.com/apache/xmlgraphics-batik/commit/eada57c716a2757579d53017f8b2aeadaad20edd","tags":["web"]},{"url":"https://issues.apache.org/jira/browse/BATIK-1345","tags":["web"]},{"url":"https://xmlgraphics.apache.org/security.html","tags":["web"]},{"url":"http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03378,"epssPercentile":0.89019,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-42890","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42890","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-42890","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rwqr-m72q-v6cm","ok":true,"note":"GHSA-rwqr-m72q-v6cm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-42890","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}