CVE-2025-6199
Low · 3.3CVSS
3.3
EPSS
0.2%
Published
Jun 17, 2025
CISA due date
—
Cloudanix analysis
A bug in how certain software reads GIF pictures can accidentally mix private data from the computer's memory into the pictures it produces.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Library
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The LZW decoder in the GIF parser incorrectly sets the reported output size to the full buffer length on invalid symbols, causing uninitialized buffer contents to be returned as part of the decompressed image data and exposing arbitrary process memory.
Why it matters to the business
Applications that process untrusted GIF images may inadvertently leak sensitive data from memory into output files, creating confidentiality risks in image-handling workflows; the issue affects a widely used library present in many downstream packages, increasing the scope of potential exposure across systems.
How an attack unfolds
An attacker crafts a GIF containing an invalid LZW symbol, supplies it to any application that uses the vulnerable decoder for image processing, and receives an output image that contains fragments of uninitialized memory from the target process.
How to fix it
Upgrade the affected package to the fixed version (asterisk on Mageia 5: 11.21.2-1.mga5) or later; rebuild or reinstall any dependent applications that statically link the vulnerable GdkPixbuf library.
How to confirm the fix worked
Verify the installed package version matches or exceeds the fixed release; test with a proof-of-concept GIF containing an invalid LZW symbol and confirm that output size equals actual decompressed bytes with no uninitialized data present.
Typical attack path
- Create a GIF file embedding an invalid LZW symbol designed to trigger the size-reporting error
- Deliver the image to the target application or service via upload, email attachment, or web content
- Trigger the GIF parser through normal image handling or preview operations
- Inspect the resulting image data or memory dump for leaked process contents
How to detect it
Review application logs and file-system artifacts for unexpected GIF processing events around the time of potential exposure; correlate with any downstream image files whose sizes exceed expected decompressed content; examine memory snapshots or core dumps taken during GIF decoding for signs of uninitialized data inclusion.
What your security team should do
- Apply the listed fixed package version immediately on all affected systems
- Scan inventories for any other packages that depend on the vulnerable GdkPixbuf GIF decoder
- Restrict processing of untrusted GIF images until patches are deployed
- Review image-handling code paths for additional memory-safety hardening opportunities
The record
A flaw was found in the GIF parser of GdkPixbuf’s LZW decoder. When an invalid symbol is encountered during decompression, the decoder sets the reported output size to the full buffer length rather than the actual number of written bytes. This logic error results in uninitialized sections of the buffer being included in the output, potentially leaking arbitrary memory contents in the processed image.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | gdk-pixbuf | 0 | No fix |
| Debian:12 | gdk-pixbuf | 0 | 2.42.10+dfsg-1+deb12u2 |
| Debian:13 | gdk-pixbuf | 0 | No fix |
| Debian:14 | gdk-pixbuf | 0 | 2.42.12+dfsg-3 |
| Mageia:9 | gdk-pixbuf2.0 | 0 | 2.42.10-2.2.mga9 |
| 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 |
| 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-4.1 |
Related vulnerabilities
- CVE-2025-7345 A flaw exists in gdk‑pixbuf within the gdk_pixbuf__jpeg_image_load_increment function… Also affects gdk-pixbuf
- CVE-2017-2862 An exploitable heap overflow vulnerability exists in the… Also affects gdk-pixbuf
- CVE-2017-2870 An exploitable integer overflow vulnerability exists in the tiff_image_parse… Also affects gdk-pixbuf
- CVE-2017-6311 gdk-pixbuf-thumbnailer.c in gdk-pixbuf allows context-dependent attackers to cause a… Also affects gdk-pixbuf
- CVE-2015-7552 Heap-based buffer overflow in the gdk_pixbuf_flip function in gdk-pixbuf-scale.c in… Also affects gdk-pixbuf
- CVE-2015-7673 io-tga.c in gdk-pixbuf before 2.32.0 uses heap memory after its allocation failed, which… Also affects gdk-pixbuf
- CVE-2015-4491 Integer overflow in the make_filter_table function in pixops/pixops.c in gdk-pixbuf… Also affects gdk-pixbuf
- CVE-2026-5201 A flaw was found in the gdk-pixbuf library. Also affects gdk-pixbuf