Skip to main content
EPSS 1.2%top 35%

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

0
High
VulnerabilityCVE-2025-7345cvecve-2025-7345
Published: 07/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.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Affected versions
=0>=9.0.0 <9.6>=10.0.0 <10.2

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 22:09:28 UTC

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.

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
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 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