CVE-2022-41704: Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input

Published Oct 25, 2022
·
Updated

A flaw was found in Batik. This issue may allow a malicious user to run untrusted Java code from an SVG.

Other sources

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.

Ubuntu

Affected Software

12 affected componentsFixes available
maven/org.apache.xmlgraphics:batik<1.16
1.16
redhat/org.apache.xmlgraphics batik<1.16
1.16
debian/batik<=1.10-2+deb10u1
1.10-2+deb10u31.12-4+deb11u21.12-4+deb11u11.16+dfsg-1+deb12u11.17+dfsg-1
ubuntu/batik<1.10-2~18.04.1
1.10-2~18.04.1
ubuntu/batik<1.12-1ubuntu0.1
1.12-1ubuntu0.1
ubuntu/batik<1.14-1ubuntu0.2
1.14-1ubuntu0.2
ubuntu/batik<1.14-2ubuntu0.1
1.14-2ubuntu0.1
ubuntu/batik<1.7.ubuntu-8ubuntu2.14.04.3+
1.7.ubuntu-8ubuntu2.14.04.3+
ubuntu/batik<1.8-3ubuntu1+
1.8-3ubuntu1+
Apache Batik>=1.0<1.16
Debian Debian Linux=10.0
Debian Debian Linux=11.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.xmlgraphics:batik to a version that resolves this vulnerability.

    Fixed in 1.16
  2. Upgrade

    Upgrade redhat/org.apache.xmlgraphics batik to a version that resolves this vulnerability.

    Fixed in 1.16
  3. Upgrade

    Upgrade debian/batik to a version that resolves this vulnerability.

    Fixed in 1.10-2+deb10u3Fixed in 1.12-4+deb11u2Fixed in 1.12-4+deb11u1Fixed in 1.16+dfsg-1+deb12u1Fixed in 1.17+dfsg-1
  4. Upgrade

    Upgrade ubuntu/batik to a version that resolves this vulnerability.

    Fixed in 1.10-2~18.04.1
  5. Upgrade

    Upgrade ubuntu/batik to a version that resolves this vulnerability.

    Fixed in 1.12-1ubuntu0.1
  6. Upgrade

    Upgrade ubuntu/batik to a version that resolves this vulnerability.

    Fixed in 1.14-1ubuntu0.2
  7. Upgrade

    Upgrade ubuntu/batik to a version that resolves this vulnerability.

    Fixed in 1.14-2ubuntu0.1
  8. Upgrade

    Upgrade ubuntu/batik to a version that resolves this vulnerability.

    Fixed in 1.7.ubuntu-8ubuntu2.14.04.3+
  9. Upgrade

    Upgrade ubuntu/batik to a version that resolves this vulnerability.

    Fixed in 1.8-3ubuntu1+
  10. Upgrade

    Upgrade Apache Batik (Apache XML Graphics) to a version that resolves this vulnerability.

    Fixed in 1.16
  11. Compensating control

    If you cannot update immediately, avoid loading untrusted SVG input into Apache Batik, since the vulnerability allows execution of untrusted Java code from an SVG.

Event History

Oct 25, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
07:00 PM
Jan 12, 2024
Data Sourced
via Launchpad·12:11 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this flaw in Batik?

The vulnerability ID for this flaw in Batik is CVE-2022-41704.

2

What is the severity level of CVE-2022-41704?

CVE-2022-41704 has a severity level of high.

3

What is the affected software for CVE-2022-41704?

The affected software for CVE-2022-41704 is Batik of Apache XML Graphics prior to version 1.16.

4

How can I fix CVE-2022-41704?

To fix CVE-2022-41704, it is recommended to update to version 1.16 of Apache XML Graphics.

5

Where can I find more information about CVE-2022-41704?

You can find more information about CVE-2022-41704 at the following references: [Link 1](https://lists.apache.org/thread/hplhx0o74jb7blj39fm4kw3otcnjd6xf), [Link 2](http://www.openwall.com/lists/oss-security/2022/10/25/2), [Link 3](https://www.debian.org/security/2022/dsa-5264).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2022-41704 - Apache Batik prior to 1.16 allows RCE when loading untrusted SVG input - SecAlerts