CVE-2026-24806: Batik codec fix Quick-Media Batik Codec FIX Package Vulnerability
MODERATECVE-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
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.
<dependency>
<groupId>com.github.liuyueyi.media</groupId>
<artifactId>batik-codec-fix</artifactId>
<version>Latest secure release</version>
</dependency>
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
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?
Which Batik codec fix versions are affected?
What version fixes CVE-2026-24806?
Is batik-codec-fix affected?
What CWE is associated with CVE-2026-24806?
How can I check Maven dependencies for CVE-2026-24806?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}