Cloudanix VulnDB

CVE-2025-7345

High · 7.5

CVSS

7.5

EPSS

1.3%

Published

Jul 8, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in the way some programs read certain picture files can let attackers crash those programs or take control of the computer.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap buffer overflow in gdk_pixbuf__jpeg_image_load_increment during JPEG processing combined with g_base64_encode_step, enabling out-of-bounds heap reads that can crash the application or permit arbitrary code execution.

Why it matters to the business

Applications and services using the affected image libraries on Linux distributions may crash or be fully compromised when loading untrusted images, leading to service disruption or attacker control; with 475 days since publication and a modest EPSS increase, exposure remains relevant for any unpatched downstream dependents.

How an attack unfolds

An attacker supplies a maliciously crafted JPEG image that triggers the overflow path in the JPEG loader and Base64 encoder; out-of-bounds reads are leveraged to either crash the process or achieve code execution without authentication or user interaction.

How to fix it

Upgrade linux-lts (Alpaquita:stream) to version 6.6.58-r0 or later; rebuild or redeploy any containers or packages that depend on the vulnerable gdk-pixbuf and glib versions.

How to confirm the fix worked

Confirm the installed package version meets or exceeds the fixed release; attempt to load a crafted test JPEG that previously triggered the overflow and verify the process no longer crashes or executes unexpected code.

Typical attack path

  1. Attacker crafts JPEG image exploiting the JPEG incremental load and Base64 encoding flaw
  2. Malicious image is delivered over the network or via file upload to the target application
  3. Application invokes gdk_pixbuf__jpeg_image_load_increment on the image
  4. Overflow occurs in g_base64_encode_step causing out-of-bounds heap reads
  5. Attacker achieves application crash or arbitrary code execution

How to detect it

Search application and system logs for segmentation faults or crashes occurring during JPEG image loading; correlate any anomalous Base64 encoding activity or heap-related errors with image processing events.

What your security team should do

  • Apply the 6.6.58-r0 update to all affected linux-lts instances without delay
  • Inventory and update any downstream packages or containers that ship vulnerable gdk-pixbuf or glib
  • Add runtime image sanitization or sandboxing for untrusted JPEG handling until patches are deployed
  • Review logs for JPEG-related crashes and monitor EPSS trend for any further rise

The record

A flaw exists in gdk‑pixbuf within the gdk_pixbuf__jpeg_image_load_increment function (io-jpeg.c) and in glib’s g_base64_encode_step (glib/gbase64.c). When processing maliciously crafted JPEG images, a heap buffer overflow can occur during Base64 encoding, allowing out-of-bounds reads from heap memory, potentially causing application crashes or arbitrary code execution.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 gdk-pixbuf2 0 2.36.12-7.el8_10
AlmaLinux:8 gdk-pixbuf2-devel 0 2.36.12-7.el8_10
AlmaLinux:8 gdk-pixbuf2-modules 0 2.36.12-7.el8_10
AlmaLinux:8 gdk-pixbuf2-xlib 0 2.36.12-7.el8_10
AlmaLinux:8 gdk-pixbuf2-xlib-devel 0 2.36.12-7.el8_10
Debian:11 gdk-pixbuf 0 No fix
Debian:12 gdk-pixbuf 0 No fix
Debian:13 gdk-pixbuf 0 No fix
Debian:14 gdk-pixbuf 0 2.42.12+dfsg-4
SUSE:Linux Enterprise Module for Basesystem 15 SP6 gdk-pixbuf 0 2.42.12-150600.3.8.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 gdk-pixbuf 0 2.42.12-150600.3.8.1
SUSE:Linux Enterprise Server 12 SP5-LTSS gdk-pixbuf 0 2.34.0-19.23.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 gdk-pixbuf 0 2.34.0-19.23.1
openSUSE:Leap 15.6 gdk-pixbuf 0 2.42.12-150600.3.8.1
openSUSE:Leap 16.0 gdk-pixbuf 0 2.42.12-160000.3.1
openSUSE:Tumbleweed gdk-pixbuf 0 2.42.12-5.1

Related vulnerabilities