CVE-2025-7345: Gdk‑pixbuf: heap‑buffer‑overflow in gdk‑pixbuf

Published Jul 8, 2025
·
Updated

A flaw exists in gdk‑pixbuf within the gdkpixbufjpegimageloadincrement function (io-jpeg.c) and in glib’s gbase64encodestep (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.

Other sources

Heap‑buffer‑overflow vulnerability in the JPEG and Base64 decoding paths of gdk‑pixbuf. The flaw occurs in gdkpixbufjpegimageloadincrement() (io‑jpeg.c:1193:26) when a specially crafted JPEG triggers a flow that leads to gbase64encodestep() in glib (gbase64.c:141:16), reading beyond heap buffer bounds. Exploitation requires no authentication and could lead to application crash or arbitrary code execution via crafted images.

Red Hat

Affected Software

2 affected components
Gnome GDK-PixBuf
Gnome GLib

Event History

Jul 8, 2025
Data Sourced
via Red Hat·06:13 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·01:39 PM
Data Sourced
via MITRE·01:39 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeakness
Oct 2, 57575
Event
via FIRST·10:33 AM

Frequently Asked Questions

1

What is the severity of CVE-2025-7345?

CVE-2025-7345 has been classified as a high severity vulnerability due to the potential for a heap buffer overflow.

2

How do I fix CVE-2025-7345?

To fix CVE-2025-7345, update gdk-pixbuf and glib to the latest versions that contain patches addressing this vulnerability.

3

What are the potential impacts of CVE-2025-7345?

The potential impacts of CVE-2025-7345 include application crashes and possible remote code execution if exploited.

4

Which software is affected by CVE-2025-7345?

CVE-2025-7345 affects GNOME's gdk-pixbuf and glib libraries.

5

How can I mitigate the risk associated with CVE-2025-7345?

Mitigation of CVE-2025-7345 involves applying security patches and ensuring that JPEG processing in applications is handled securely.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203