High
Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input
Type: advisorySources: OSV
A vulnerability in Batik of Apache XML Graphics allows an attacker to run untrusted Java code from an SVG. This issue affects Apache XML Graphics prior to 1.16. It is recommended to update to version 1.16.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-41704
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 21:01 UTC · Revision 1
Source evidence
Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input
core-osv · Original sourcePublished 25 Oct 2022, 00:00 UTC
A vulnerability in Batik of Apache XML Graphics allows an attacker to run untrusted Java code from an SVG. This issue affects Apache XML Graphics prior to 1.16. It is recommended to update to version 1.16.
osv:CVE-2022-41704
Complete source record
{
"id": "2b9e6525697d47229a86a971183642170c170e16efd1eb137901c188b52e2275",
"url": "https://osv.dev/vulnerability/CVE-2022-41704",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input",
"summary": "A vulnerability in Batik of Apache XML Graphics allows an attacker to run untrusted Java code from an SVG. This issue affects Apache XML Graphics prior to 1.16. It is recommended to update to version 1.16.",
"evidence": "osv:CVE-2022-41704",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-41704",
"aliases": [
"CVE-2022-41704",
"GHSA-r29w-r9ph-vm76"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/apache/xmlgraphics-batik",
"type": "GIT",
"events": [
{
"introduced": "1b708df57205a70c2c9fb8235ff5eab837609968"
},
{
"fixed": "8e94aaaf3872a670040c6faebe82c907cb380fad"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:batik:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.0"
},
{
"fixed": "1.16"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-41704.json"
}
}
],
"modified": "2026-10-28T02:30:51.516055441Z",
"provider": "osv",
"references": [
"https://lists.apache.org/thread/hplhx0o74jb7blj39fm4kw3otcnjd6xf",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41704.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-41704",
"https://security.gentoo.org/glsa/202401-11",
"https://www.debian.org/security/2022/dsa-5264",
"https://lists.debian.org/debian-lts-announce/2022/10/msg00038.html"
],
"provider_metadata": {
"cna_assigner": "apache",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "Batik"
},
{
"last_affected": "1.15"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41704.json"
}
},
"related_cves": [
{
"value": "CVE-2022-41704",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 520398,
"published_at": "2022-10-25T00:00:00+00:00"
}