Skip to main content

GLib CVE-2025-4056

HIGH
Code Injection (CWE-94)
2025-07-28 secalert@redhat.com
High
Disputed · 7.5 Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Windows app spawning via GLib
  2. Delivery
    Supply oversized attacker-controlled input
  3. Exploit
    Input concatenated into long child command line
  4. Execution
    GLib spawn exceeds Windows limit
  5. Impact
    Application crashes or hangs (denial of service)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a Windows platform specifically, a host application that is linked against GLib and calls its process-spawning functions (g_spawn family), and that application supplying a sufficiently long command line - typically because attacker-influenced input is concatenated into the child-process arguments without length validation. Limiting factors that reduce real-world risk: the bug does not manifest on Linux/macOS, it cannot be triggered unless an application actually reaches the spawn-with-long-command-line code path, and impact is confined to denial of service (no confidentiality or integrity loss). The published CVSS AV:N is questionable because the described trigger is a local application operation rather than a directly network-exposed service; whether it is remotely reachable depends entirely on whether a network-facing app forwards untrusted oversized input into GLib spawn calls - verify with the vendor.

Impact

Signals here are partially conflicting and should be weighed carefully. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/A:H, base 7.5) implies trivial remote unauthenticated triggering, but the description clearly scopes the issue to a local application spawning a child process with long command lines on Windows - a local/application-controlled condition, not a directly network-reachable one, so the AV:N rating likely overstates real reachability and should be verified with the vendor. Impact is availability-only (C:N/I:N), so this is a denial-of-service issue, not the RCE/Code-Injection that the Red Hat tags suggest; the tags appear to reflect the CWE-94 class rather than a demonstrated code-execution outcome. No EPSS score, KEV listing, SSVC decision, or POC was provided, so there is no evidence of active or automatable exploitation. Net assessment: a moderate, platform-limited availability bug that is realistically lower priority than the 7.5 base score implies unless an application directly forwards untrusted, attacker-sized input into GLib's spawn APIs on Windows.

Exploit ScenarioDerived

An attacker supplies an unusually long input (for example a crafted filename, URL, or parameter) to a Windows application that forwards that value into a GLib g_spawn call to launch a helper process. The oversized command line exceeds Windows handling limits, and instead of degrading gracefully the spawn fails in a way that crashes or hangs the application, denying service. No public exploit code was identified, and exploitation requires the target application to pass attacker-influenced data into GLib's spawn path.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 25, 2026

Denial of service in GNOME GLib on Windows platforms occurs when an application uses GLib's process-spawning functions with excessively long command lines, causing the spawn operation to fail or crash the host process and disrupt availability. The flaw affects the GLib library's Windows command-line handling and impacts any Windows application that links GLib and passes attacker-influenced long argument strings to a child process. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV; despite Red Hat tags mentioning RCE/Code Injection, the CVSS impact metrics confirm availability-only impact (C:N/I:N/A:H).

RemediationAI

No vendor-released patch version was identified at time of analysis; the references point to issue/bug trackers (GNOME GLib issue 3668 and Red Hat Bugzilla 2362826) rather than a tagged patched release, so monitor https://gitlab.gnome.org/GNOME/glib/-/issues/3668 and https://access.redhat.com/security/cve/CVE-2025-4056 for the fixed version and upgrade GLib once published. As compensating controls for Windows deployments, restrict or validate the length of arguments before passing them to GLib spawn APIs (reject or truncate command lines approaching the Windows ~32,767-character CreateProcess limit), which prevents the crash at the cost of failing legitimate oversized invocations; where feasible, sanitize and bound any untrusted input that flows into child-process arguments, and avoid passing user-controlled data directly into process spawning. If a specific application is the vector, consider running it with reduced privileges and restart supervision so a DoS crash does not cascade, accepting the trade-off of additional operational monitoring.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GLib is the low-level core utility library underpinning GNOME and a large ecosystem of cross-platform GTK applications (GIMP, Inkscape, Pidgin, and many others), providing data structures, an event loop, and OS abstraction including the g_spawn_* process-creation API. On Windows, command-line construction and the CreateProcess path differ fundamentally from POSIX exec semantics: arguments must be flattened and quoted into a single command string subject to Windows length limits (the ~32,767-character CreateProcess ceiling and shorter cmd.exe limits). The assigned CWE-94 (Improper Control of Generation of Code, 'Code Injection') frames the root cause as faulty generation of the spawned command, though the observed real-world impact is a resource/availability failure rather than confirmed arbitrary code execution. The affected component is identified by CPE cpe:2.3:a:gnome:glib (all versions) and the behavior is platform-specific to Windows.

Know when Glib gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–High)
Vendor (redhat) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.2 MEDIUM

Trigger is a local application spawning a child process, so AV:L; availability-only DoS gives A:H with C:N/I:N, and no privileges needed to supply oversized input.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

A flaw was found in GLib. A denial of service on Windows platforms may occur if an application attempts to spawn a program using long command lines.

Executive ViewAI

Why It Matters

A denial-of-service vulnerability in GNOME GLib on Windows platforms allows attackers to crash applications by supplying excessively long command-line strings, impacting availability of Windows systems running GLib-dependent software. Organizations depend on affected applications for operational continuity, and successful exploitation can force service interruptions without user involvement. No vendor-released patch identified at time of analysis, requiring immediate identification and containment of vulnerable applications.

Business Impact: High
Compensating Controls

Implement strict input validation and length enforcement on all command-line arguments passed to child processes; deploy application monitoring for unexpected crashes and implement auto-restart capabilities; restrict user and service account permissions for process-spawning operations; segment Windows networks to limit attacker reach if compromise occurs; consider temporary process execution whitelisting until patch is available.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
High
GLib is core to GNOME and ships with many cross-platform Windows GTK apps
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:*

More in Glib

View all
CVE-2024-52533 CRITICAL POC
9.8 Nov 11

gio/gsocks4aproxy.c in GNOME GLib before 2.82.1 has an off-by-one error and resultant buffer overflow because SOCKS4_CON

CVE-2018-16428 CRITICAL POC
9.8 Sep 04

In GNOME GLib 2.56.1, g_markup_parse_context_end_parse() in gmarkup.c has a NULL pointer dereference. Rated critical sev

CVE-2025-13601 HIGH POC
7.7 Nov 26

Heap-based buffer overflow in GLib's g_escape_uri_string() function allows local attackers to achieve high-integrity and

CVE-2021-27219 HIGH POC
7.5 Feb 15

An issue was discovered in GNOME GLib before 2.66.6 and 2.67.x before 2.67.3. Rated high severity (CVSS 7.5), this vulne

CVE-2020-35457 HIGH POC
7.8 Dec 14

GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entri

CVE-2018-16429 HIGH POC
7.5 Sep 04

GNOME GLib 2.56.1 has an out-of-bounds read vulnerability in g_markup_parse_context_parse() in gmarkup.c, related to utf

CVE-2020-6750 MEDIUM POC
5.9 Jan 09

GSocketClient in GNOME GLib through 2.62.4 may occasionally connect directly to a target address instead of connecting v

CVE-2025-14087 CRITICAL
9.8 Dec 10

Heap corruption in GLib (GNOME's core C utility library) lets remote attackers trigger a buffer-underflow in the GVarian

CVE-2021-28153 MEDIUM POC
5.3 Mar 11

An issue was discovered in GNOME GLib before 2.66.8. Rated medium severity (CVSS 5.3), this vulnerability is remotely ex

CVE-2019-12450 CRITICAL
9.8 May 29

file_copy_fallback in gio/gfile.c in GNOME GLib 2.15.0 through 2.61.1 does not properly restrict file permissions while

CVE-2024-34397 MEDIUM POC
5.2 May 07

An issue was discovered in GNOME GLib before 2.78.5, and 2.79.x and 2.80.x before 2.80.1. Rated medium severity (CVSS 5.

CVE-2026-58016 CRITICAL
9.1 Jun 30

Denial of service in GNOME GLib (versions before 2.88.1) arises when g_dbus_node_info_new_for_xml() parses malformed D-B

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy