batik — security advisory
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.
- Products
- batik
- Affected versions
- 1.10-2, 1.10-2~18.04, 1.12-1, 1.12-4, 1.14-1, 1.16+dfsg-1, 1.17+dfsg-1, 1.18+dfsg-2, 1.18+dfsg-2build1, 1.19-2, 1.7.ubuntu-8ubuntu2, 1.7.ubuntu-8ubuntu2.14.04.1, 1.7.ubuntu-8ubuntu2.14.04.2, 1.7.ubuntu-8ubuntu2.14.04.3, 1.7.ubuntu-8ubuntu3, 1.8-3, 1.8-3ubuntu1, 1.9-3
- Fixed versions
- 1.10-2~18.04.1, 1.12-1ubuntu0.1, 1.14-1ubuntu0.2, 1.7.ubuntu-8ubuntu2.14.04.3+esm1, 1.8-3ubuntu1+esm1
- CVEs
- CVE-2022-42890
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:39 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2022-42890
batik
Fixed versions: 1.7.ubuntu-8ubuntu2.14.04.3+esm1
batik
Fixed versions: 1.8-3ubuntu1+esm1
batik
Fixed versions: 1.10-2~18.04.1
batik
Fixed versions: 1.12-1ubuntu0.1
batik
Fixed versions: 1.14-1ubuntu0.2
batik
Fixed versions: Not specified
batik
Fixed versions: Not specified
batik
Fixed versions: Not specified
batik
Fixed versions: Not specified
Complete source record
{
"id": "dc6bfa206172c24fefb3f2521f605595a4f248cd862a7eae94f1c6d694dfa02a",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-42890",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2022-42890",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2022-42890",
"products": [
{
"name": {
"value": "batik",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.7.ubuntu-8ubuntu2.14.04.3+esm1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "1.7.ubuntu-8ubuntu2",
"evidence": "/affected/0/versions"
},
{
"value": "1.7.ubuntu-8ubuntu2.14.04.1",
"evidence": "/affected/0/versions"
},
{
"value": "1.7.ubuntu-8ubuntu2.14.04.2",
"evidence": "/affected/0/versions"
},
{
"value": "1.7.ubuntu-8ubuntu2.14.04.3",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "batik",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.8-3ubuntu1+esm1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "1.7.ubuntu-8ubuntu3",
"evidence": "/affected/1/versions"
},
{
"value": "1.8-3",
"evidence": "/affected/1/versions"
},
{
"value": "1.8-3ubuntu1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "batik",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.10-2~18.04.1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "1.9-3",
"evidence": "/affected/2/versions"
},
{
"value": "1.10-2~18.04",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "batik",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.12-1ubuntu0.1",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": [
{
"value": "1.10-2",
"evidence": "/affected/3/versions"
},
{
"value": "1.12-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "batik",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.14-1ubuntu0.2",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": [
{
"value": "1.12-4",
"evidence": "/affected/4/versions"
},
{
"value": "1.14-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "batik",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.16+dfsg-1",
"evidence": "/affected/5/versions"
},
{
"value": "1.17+dfsg-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "batik",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.18+dfsg-2",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "batik",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.18+dfsg-2build1",
"evidence": "/affected/7/versions"
},
{
"value": "1.19-2",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "batik",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.18+dfsg-2",
"evidence": "/affected/8/versions"
},
{
"value": "1.18+dfsg-2build1",
"evidence": "/affected/8/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2022-42890",
"aliases": [
"UBUNTU-CVE-2022-42890"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.7.ubuntu-8ubuntu2.14.04.3+esm1"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=trusty%2Fesm",
"ecosystem": "Ubuntu:Pro:14.04:LTS"
},
"versions": [
"1.7.ubuntu-8ubuntu2",
"1.7.ubuntu-8ubuntu2.14.04.1",
"1.7.ubuntu-8ubuntu2.14.04.2",
"1.7.ubuntu-8ubuntu2.14.04.3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbatik-java",
"binary_version": "1.7.ubuntu-8ubuntu2.14.04.3+esm1"
}
],
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.8-3ubuntu1+esm1"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"1.7.ubuntu-8ubuntu3",
"1.8-3",
"1.8-3ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbatik-java",
"binary_version": "1.8-3ubuntu1+esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.10-2~18.04.1"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.9-3",
"1.10-2~18.04"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbatik-java",
"binary_version": "1.10-2~18.04.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.12-1ubuntu0.1"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.10-2",
"1.12-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbatik-java",
"binary_version": "1.12-1ubuntu0.1"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.14-1ubuntu0.2"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.12-4",
"1.14-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbatik-java",
"binary_version": "1.14-1ubuntu0.2"
}
],
"availability": "No subscription required"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.16+dfsg-1",
"1.17+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbatik-java",
"binary_version": "1.17+dfsg-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.18+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbatik-java",
"binary_version": "1.18+dfsg-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.18+dfsg-2build1",
"1.19-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "batik",
"binary_version": "1.19-2"
},
{
"binary_name": "libbatik-java",
"binary_version": "1.19-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "batik",
"purl": "pkg:deb/ubuntu/batik?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.18+dfsg-2",
"1.18+dfsg-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42890.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbatik-java",
"binary_version": "1.18+dfsg-2build1"
}
]
}
}
],
"modified": "2026-10-17T12:57:16.505627833Z",
"provider": "osv",
"upstream": [
"CVE-2022-42890"
],
"references": [
"https://ubuntu.com/security/CVE-2022-42890",
"https://www.openwall.com/lists/oss-security/2022/10/25/3",
"https://issues.apache.org/jira/browse/BATIK-1345",
"https://lists.apache.org/thread/pkvhy0nsj1h1mlon008wtzhosbtxjwly",
"https://ubuntu.com/security/notices/USN-6117-1",
"https://www.cve.org/CVERecord?id=CVE-2022-42890"
]
},
"related_cves": [
{
"value": "CVE-2022-42890",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 357077,
"published_at": "2022-10-25T17:15:00+00:00"
}