CVE-2025-7345: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
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.
AI Analysis
Technical Summary
The vulnerability CVE-2025-7345 affects the gdk-pixbuf2 library used in Red Hat Enterprise Linux 9 and 10. It involves a heap buffer overflow in the gdk_pixbuf__jpeg_image_load_increment function and glib's g_base64_encode_step when handling specially crafted JPEG images. This overflow can result in out-of-bounds reads from heap memory, which may cause application crashes or enable arbitrary code execution. Red Hat has issued security advisories RHSA-2025:12841 and RHSA-2025:12862 providing updated gdk-pixbuf2 packages that fix this issue. The updates are rated with a Moderate security impact by Red Hat but the CVSS v3.1 score is 7.5 (High) with an attack vector of network, no privileges required, and no user interaction needed.
Potential Impact
The vulnerability allows attackers to cause a heap buffer overflow during Base64 encoding of malicious JPEG images, leading to out-of-bounds heap memory reads. This can result in application crashes (denial of service) or potentially arbitrary code execution, impacting the availability and security of affected systems running vulnerable versions of gdk-pixbuf2.
Mitigation Recommendations
Red Hat has released official security updates for gdk-pixbuf2 that address CVE-2025-7345. Users of Red Hat Enterprise Linux 9 and 10 should apply the updated packages as described in advisories RHSA-2025:12841 and RHSA-2025:12862. The updates fix the heap buffer overflow vulnerability. No additional mitigation is required beyond applying these official patches.
CVE-2025-7345: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Description
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.
CVSS v3.1
Score 7.5high
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2025-7345 affects the gdk-pixbuf2 library used in Red Hat Enterprise Linux 9 and 10. It involves a heap buffer overflow in the gdk_pixbuf__jpeg_image_load_increment function and glib's g_base64_encode_step when handling specially crafted JPEG images. This overflow can result in out-of-bounds reads from heap memory, which may cause application crashes or enable arbitrary code execution. Red Hat has issued security advisories RHSA-2025:12841 and RHSA-2025:12862 providing updated gdk-pixbuf2 packages that fix this issue. The updates are rated with a Moderate security impact by Red Hat but the CVSS v3.1 score is 7.5 (High) with an attack vector of network, no privileges required, and no user interaction needed.
Potential Impact
The vulnerability allows attackers to cause a heap buffer overflow during Base64 encoding of malicious JPEG images, leading to out-of-bounds heap memory reads. This can result in application crashes (denial of service) or potentially arbitrary code execution, impacting the availability and security of affected systems running vulnerable versions of gdk-pixbuf2.
Mitigation Recommendations
Red Hat has released official security updates for gdk-pixbuf2 that address CVE-2025-7345. Users of Red Hat Enterprise Linux 9 and 10 should apply the updated packages as described in advisories RHSA-2025:12841 and RHSA-2025:12862. The updates fix the heap buffer overflow vulnerability. No additional mitigation is required beyond applying these official patches.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- redhat
- Date Reserved
- 2025-07-08T06:13:05.999Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/errata/RHSA-2025:12841","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:12862","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:13315","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14574","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14575","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14576","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14585","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14618","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14646","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14647","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2025:14683","vendor":"Red Hat"},{"url":"https://access.redhat.com/security/cve/CVE-2025-7345","vendor":"Red Hat"}]
Threat ID: 686d23166f40f0eb72f5d541
Added to database: 07/08/2025, 13:54:30 UTC
Last enriched: 07/02/2026, 22:09:28 UTC
Last updated: 09/10/2026, 19:36:52 UTC
Views: 275
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.