Skip to main content

libjxl CVE-2025-70103

HIGH
Heap-based Buffer Overflow (CWE-122)
2026-05-27 cve@mitre.org
7.3
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious PBM image
  2. Delivery
    Submit to libjxl-decoding service
  3. Exploit
    Trigger heap overflow in DecodeImagePNM
  4. Execution
    Overrun frame->color heap buffer
  5. Impact
    Crash or limited memory corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application invoke libjxl 0.12.0's extras PNM decoder (DecodeImagePNM in lib/extras/dec/pnm.cc) on attacker-supplied input - i.e., the PBM/PGM/PPM (Netpbm) decoding path must be reachable with an untrusted file; the trigger is a crafted PBM image whose header xsize/ysize/stride values exceed the allocated output buffer. Per the CVSS vector (AV:N/AC:L/PR:N/UI:N), no authentication and no user interaction are required, which in practice fits server-side or automated ingestion that decodes uploads without a human opening them. Limiting factors: the target must specifically use libjxl 0.12.0 and expose PNM decoding (deployments that only handle JPEG XL or other formats and never reach this code path are not affected), and impact is partial (C:L/I:L/A:L), so realistic outcomes lean toward crashes/limited corruption rather than full system compromise.

Impact

Signals are largely consistent and point to a real but moderate-severity issue. CVSS 7.3 with AV:N/AC:L/PR:N/UI:N favors prioritization, but the impact metrics are all Low (C:L/I:L/A:L), and SSVC technical impact is 'partial' - meaning this is heap corruption with limited, not total, control, more plausibly a controlled crash or constrained memory disruption than reliable arbitrary code execution. SSVC 'Automatable: yes' and the existence of public exploit code raise practical concern, especially for services that auto-decode untrusted uploads. The notable tension is the CVSS UI:N rating against an image-parsing bug: a passive client requires a victim to open/process the file, so UI:N realistically applies to server-side or automated pipelines that ingest images without human action - defenders should weigh which deployment model they run. No EPSS score was provided in the input, and the CVE is not in CISA KEV, so there is no evidence of widespread or active exploitation despite the available POC.

Exploit ScenarioDerived

An attacker uploads a crafted PBM image with header dimensions inconsistent with the buffer libjxl allocates to a web service that automatically decodes images with libjxl 0.12.0 (e.g., an avatar processor or thumbnail generator). When DecodeImagePNM writes the decoded rows, it overruns the heap buffer, corrupting adjacent memory and causing a denial-of-service crash or limited memory corruption. Public exploit code is available (referenced POC at sigdevel/pocs), lowering the barrier to reproduction.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

Heap buffer overflow in libjxl 0.12.0 lets remote attackers corrupt heap memory by feeding a crafted PBM/PNM image to the jxl::extras::DecodeImagePNM routine, which writes decoded rows into an output buffer without first checking that the buffer is large enough for the header-declared dimensions. The CVSS vector (AV:N/AC:L/PR:N/UI:N) describes unauthenticated, low-complexity exploitation with no user interaction, and CISA's SSVC framework rates it automatable with partial technical impact. Publicly available exploit code exists, though it is not listed in CISA KEV and no public exploit has been tied to active exploitation.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the buffer-size validation from libjxl PR #4338 (https://github.com/libjxl/libjxl/pull/4338), which rejects PNM inputs whose header dimensions exceed the allocated output/extra-channel buffers, and rebuild or update libjxl once a tagged release incorporating it is published (track issue https://github.com/libjxl/libjxl/issues/4337). Until a patched release is consumed, the most direct compensating control is to disable or block the Netpbm/PNM decode path in libjxl-backed pipelines and restrict accepted input to formats you actually need; the trade-off is loss of PBM/PGM/PPM support for legitimate users. Where the decoder cannot be removed, run image decoding in a sandboxed, memory-isolated worker process (seccomp/containerized) with strict resource limits so a heap overrun is contained to a disposable process, accepting the added operational complexity, and validate/limit declared image dimensions at the application layer before handing files to libjxl.

Affected ProductsAI

The affected product is libjxl (the JPEG XL reference library) at version 0.12.0, specifically the PNM/PBM decoder in lib/extras/dec/pnm.cc. No CPE strings were supplied in the input, so the precise affected-version range is bounded only by what the advisory states (0.12.0) and is not independently confirmed for earlier releases. The relevant upstream tracking and fix are at the libjxl GitHub repository: issue https://github.com/libjxl/libjxl/issues/4337 and pull request https://github.com/libjxl/libjxl/pull/4338. Any application, image service, thumbnailer, or platform that embeds libjxl 0.12.0 and exposes its extras PNM decoding path to untrusted input is potentially affected.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libjxl is the reference encoder/decoder for the JPEG XL image format; this flaw lives in its 'extras' image-loading layer that also parses legacy Netpbm formats (PBM/PGM/PPM, collectively PNM) in lib/extras/dec/pnm.cc. The root cause is CWE-122 (heap-based buffer overflow): DecodeImagePNM trusts the width/height (xsize/ysize) and stride values derived from the PNM header and writes pixel rows into the frame->color buffer without validating that the allocated pixels_size can hold stride*ysize bytes. The upstream fix (PR #4338) adds explicit pre-write size checks - required_bytes = stride * ysize for rows, required_pixels = xsize * ysize * pixel_stride() for pixels, plus equivalent guards on each extra-channel buffer - failing with JXL_FAILURE when the destination is too small, confirming that header-controlled dimensions could previously overrun the heap allocation.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.3 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
SUSE HIGH
Red Hat 7.6 HIGH

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

DescriptionCVE.org

Heap buffer overflow vulnerability in libjxl 0.12.0 via crafted PBM images to the jxl::extras::DecodeImagePNM function in file lib/extras/dec/pnm.cc.

Executive ViewAI

Why It Matters

libjxl 0.12.0 contains a remote heap buffer overflow vulnerability allowing unauthenticated attackers to corrupt memory and potentially execute code by uploading crafted PBM/PNM image files, with publicly available exploit code and no vendor-released patch identified at time of analysis. Any system processing user-supplied images through this library is exposed to remote compromise without authentication or user interaction. Immediate compensating controls are critical pending vendor patch availability.

Business Impact: High
Compensating Controls

Disable or restrict PBM/PNM image upload functionality; implement strict input validation rejecting untrusted image files; segment affected systems from internet-facing networks; enforce least-privilege access to image processing services; enable verbose logging of image processing operations; consider alternative image processing libraries that are actively patched.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy