Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-7345: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

0
High
VulnerabilityCVE-2025-7345cvecve-2025-7345
Published: Tue Jul 08 2025 (07/08/2025, 13:39:07 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat Enterprise Linux 10

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 16:05:51 UTC

Technical Analysis

CVE-2025-7345 is a classic buffer overflow vulnerability identified in the gdk-pixbuf library, a widely used image loading and rendering library, and in the glib library's Base64 encoding function. The flaw resides in the gdk_pixbuf__jpeg_image_load_increment function (located in io-jpeg.c) and glib's g_base64_encode_step function (glib/gbase64.c). When a maliciously crafted JPEG image is processed, the heap buffer overflow occurs during the Base64 encoding step, leading to out-of-bounds reads from heap memory. This memory corruption can cause application instability, crashes, or potentially arbitrary code execution if exploited successfully. The vulnerability does not require any privileges or user interaction, and it can be triggered remotely by supplying a crafted JPEG image to an application that uses these libraries for image processing. The CVSS v3.1 score is 7.5, reflecting a high severity due to the network attack vector, low attack complexity, and no required privileges or user interaction, but with impact limited to availability (application crashes) and no direct confidentiality or integrity impact reported. The affected product explicitly mentioned is Red Hat Enterprise Linux 10, which bundles these libraries. While no known exploits are currently reported in the wild, the nature of the vulnerability makes it a candidate for future exploitation, especially in environments processing untrusted image data. The lack of patch links suggests that fixes may be forthcoming or pending release.

Potential Impact

The primary impact of CVE-2025-7345 is potential denial of service through application crashes when processing malicious JPEG images, which can disrupt services relying on image handling. More critically, the heap buffer overflow could be leveraged by attackers to execute arbitrary code remotely, potentially leading to full system compromise. This is particularly concerning for servers and applications that automatically process user-supplied images, such as web servers, content management systems, and image processing pipelines. The vulnerability's exploitation does not require authentication or user interaction, increasing the attack surface. Organizations running Red Hat Enterprise Linux 10 or other Linux distributions using vulnerable versions of gdk-pixbuf and glib are at risk. The impact extends to any software that depends on these libraries, including desktop environments and cloud services. If exploited, attackers could gain control over affected systems, leading to data breaches, service outages, or lateral movement within networks.

Mitigation Recommendations

Organizations should monitor Red Hat and upstream glib and gdk-pixbuf projects for official patches and apply them promptly once available. In the interim, restrict or sanitize untrusted JPEG image inputs, especially in public-facing applications. Employ application-level sandboxing or containerization to limit the impact of potential exploitation. Use intrusion detection systems to monitor for anomalous crashes or suspicious image processing activity. Consider disabling or replacing vulnerable image processing components if patching is delayed. Regularly update all system packages to ensure inclusion of security fixes. Additionally, implement network-level protections such as web application firewalls (WAFs) to detect and block malicious payloads targeting image processing endpoints. Conduct thorough code reviews and testing for any custom image handling code to prevent similar vulnerabilities.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2025-07-08T06:13:05.999Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 686d23166f40f0eb72f5d541

Added to database: 7/8/2025, 1:54:30 PM

Last enriched: 2/26/2026, 4:05:51 PM

Last updated: 3/25/2026, 3:02:11 AM

Views: 212

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses