CVE-2022-42890: Apache Batik prior to 1.16 allows RCE via scripting

Published Oct 25, 2022
·
Updated

A flaw was found in Batik of Apache XML Graphics. This issue may allow a malicious user to run Java code from untrusted SVG via JavaScript.

Other sources

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.

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 XML Graphics Batik to a version that resolves this vulnerability.

    Fixed in 1.16

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:12 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 of this flaw?

The vulnerability ID of this flaw is CVE-2022-42890.

2

What is the severity of CVE-2022-42890?

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

3

What is the affected software version for CVE-2022-42890?

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

4

How can I fix the vulnerability CVE-2022-42890?

To fix CVE-2022-42890, users are recommended to upgrade to version 1.16 of Apache XML Graphics.

5

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

More information about CVE-2022-42890 can be found at the following references: [link1](https://lists.apache.org/thread/pkvhy0nsj1h1mlon008wtzhosbtxjwly), [link2](http://www.openwall.com/lists/oss-security/2022/10/25/3), [link3](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