Vulnerabilities in pkg:maven/com.github.liuyueyi.media/batik-codec-fix

PACKAGE
Advisory Identifier: GHSA-23f4-hfmq-94mj
Advisory Summary

CVE-2026-24807 is a MODERATE quick-media batik codec fix package vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Batik codec fix libraries in the Maven ecosystem. The issue involves quick-media batik codec fix package has buffer overflow vulnerability in png codec. Remediation is available in the latest vendor maintenance releases.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.github.liuyueyi.media/batik-codec-fix

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.github.liuyueyi.media/batik-codec-fix. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-23f4-hfmq-94mj CVE-2026-24807 MODERATE Quick-Media Batik Codec FIX Package has Buffer Overflow Vulnerability in PNG Codec
GHSA-8623-9fwr-4cxv CVE-2026-24806 MODERATE Quick-Media Batik Codec FIX package has Code Injection vulnerability

CVE-2026-24807 at a Glance

CVE Identifier CVE-2026-24807
GHSA Identifier GHSA-23f4-hfmq-94mj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Batik codec fix
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-24807

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-24807, 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. 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 Verification of Cryptographic Signature vulnerability in liuyueyi quick-media (plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/util modules). This vulnerability is associated with program files SeekableOutputStream.Java. This issue affects all versions of quick-media. A patch is available: [3970e96](https://github.com/liuyueyi/quick-media/pull/123/commits/3970e967f6661328a5544fd0b977dac1a35e380b)

CVE-2026-24807 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-24807?
CVE-2026-24807 is a security vulnerability in Batik codec fix involving Quick-Media Batik Codec FIX Package has Buffer Overflow Vulnerability in PNG Codec under CWE-190: Integer Overflow or Wraparound.
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-24807?
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-24807?
CVE-2026-24807 is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check Maven dependencies for CVE-2026-24807?
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-23f4-hfmq-94mj",
  "modified" : "2026-01-28T15:58:39Z",
  "published" : "2026-01-27T09:30:30Z",
  "aliases" : [ "CVE-2026-24807" ],
  "summary" : "Quick-Media Batik Codec FIX Package has Buffer Overflow Vulnerability in PNG Codec",
  "details" : "Improper Verification of Cryptographic Signature vulnerability in liuyueyi quick-media (plugins/svg-plugin/batik-codec-fix/src/main/java/org/apache/batik/ext/awt/image/codec/util modules). This vulnerability is associated with program files SeekableOutputStream.Java.\n\nThis issue affects all versions of quick-media. A patch is available: [3970e96](https://github.com/liuyueyi/quick-media/pull/123/commits/3970e967f6661328a5544fd0b977dac1a35e380b)",
  "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-24807"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/liuyueyi/quick-media/pull/123"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/liuyueyi/quick-media/commit/3970e967f6661328a5544fd0b977dac1a35e380b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/liuyueyi/quick-media"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-120", "CWE-190" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-28T15:58:39Z",
    "nvd_published_at" : "2026-01-27T09:15:50Z"
  }
}