CVE-2026-24806: Batik codec fix Quick-Media Batik Codec FIX Package Vulnerability

MODERATE
Advisory Identifier: GHSA-8623-9fwr-4cxv
CWE-94
Published
Advisory Summary

CVE-2026-24806 is a MODERATE quick-media batik codec fix package vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Batik codec fix libraries in the Maven ecosystem. The issue involves quick-media batik codec fix package has code injection vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2026-24806 at a Glance

CVE Identifier CVE-2026-24806
GHSA Identifier GHSA-8623-9fwr-4cxv
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Batik codec fix
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-24806

To remediate this vulnerability, upgrade all affected Batik codec fix dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.github.liuyueyi.media:batik-codec-fix fixed: Latest secure release
<dependency>
    <groupId>com.github.liuyueyi.media</groupId>
    <artifactId>batik-codec-fix</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.github.liuyueyi.media

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-24806, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.github.liuyueyi.media

Analyze the terminal output to locate any version of Batik codec fix in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.github.liuyueyi.media command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Batik codec fix, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Improper Control of Generation of Code ('Code Injection') vulnerability in liuyueyi quick-media (plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/png modules). This vulnerability is associated with program files PNGImageEncoder.Java. This issue affects all quick-media versions. A patch is available: [e52fcee](https://github.com/liuyueyi/quick-media/commit/e52fceee32775a6be8ed1e394fbe94f4f8db036a)

CVE-2026-24806 Affected Batik codec fix Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
com.github.liuyueyi.media:batik-codec-fix
Maven
≤ 3.0.0

References

Frequently Asked Questions

What is CVE-2026-24806?
CVE-2026-24806 is a security vulnerability in Batik codec fix involving Quick-Media Batik Codec FIX package has Code Injection vulnerability under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Batik codec fix versions are affected?
Affected versions include releases prior to current release patches across affected packages: com.github.liuyueyi.media:batik-codec-fix.
What version fixes CVE-2026-24806?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is batik-codec-fix affected?
Yes, com.github.liuyueyi.media:batik-codec-fix is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2026-24806?
CVE-2026-24806 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Maven dependencies for CVE-2026-24806?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.github.liuyueyi.media'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8623-9fwr-4cxv",
  "modified" : "2026-01-28T15:52:10Z",
  "published" : "2026-01-27T09:30:30Z",
  "aliases" : [ "CVE-2026-24806" ],
  "summary" : "Quick-Media Batik Codec FIX package has Code Injection vulnerability",
  "details" : "Improper Control of Generation of Code ('Code Injection') vulnerability in liuyueyi quick-media (plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/png modules). This vulnerability is associated with program files PNGImageEncoder.Java.\n\nThis issue affects all quick-media versions. A patch is available: [e52fcee](https://github.com/liuyueyi/quick-media/commit/e52fceee32775a6be8ed1e394fbe94f4f8db036a)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/S:N/AU:Y/R:U/V:C/RE:M/U:Amber"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.github.liuyueyi.media:batik-codec-fix"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24806"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/liuyueyi/quick-media/pull/122"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/liuyueyi/quick-media/commit/29c078450ad2865c7ad196c658cacfab55b207ee"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/liuyueyi/quick-media"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-28T15:52:10Z",
    "nvd_published_at" : "2026-01-27T09:15:50Z"
  }
}