Cloudanix VulnDB

CVE-2025-7039

Low · 3.7

CVSS

3.7

EPSS

0.4%

Published

Sep 3, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A programming library used by many Linux programs has a flaw that lets someone logged into the same computer peek at or tamper with private temporary files created by other programs.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
High
Impact
Data Exposure
Component
Library
Class
Path Traversal
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflow during temporary file creation in glib leads to out-of-bounds memory access, enabling path traversal or unauthorized access to private temporary file content via symbolic links created by a local attacker.

Why it matters to the business

Local attackers may read or manipulate sensitive temporary data on affected Linux systems, risking exposure of credentials, configuration details, or other private information in multi-user or containerized environments where glib is widely used.

How an attack unfolds

A local attacker crafts symbolic links pointing to sensitive paths and triggers glib temporary file operations; the integer overflow bypasses length validation, allowing out-of-bounds access that follows the attacker-controlled links to read or write unauthorized content.

How to fix it

Upgrade glib packages on Debian 13 and 14 to version 6.3.7-1 or later; for kernel-related glib usage apply commit 840de329ca99cafd0cdde9c6ac160b1330942aba or equivalent patched release. Rebuild and restart affected applications after updating.

How to confirm the fix worked

Verify installed glib package versions match or exceed the fixed releases, review source code or build logs for the referenced commit hash, and test temporary file creation paths with symbolic links to confirm bounds checking is enforced.

Typical attack path

  1. Identify a process or application on the target system that uses glib for temporary file creation.
  2. Create malicious symbolic links in a directory writable by the attacker.
  3. Trigger the vulnerable temporary file operation through normal application usage or crafted input.
  4. Exploit the resulting out-of-bounds access to traverse to and read private file content.

How to detect it

Review system and application logs for unusual temporary file creation patterns involving symlinks, monitor for processes accessing unexpected paths during glib operations, and scan for post-exploitation artifacts such as modified temp files or unexpected reads of sensitive locations.

What your security team should do

  • Prioritize patching glib on all Debian-based systems within standard maintenance windows given the local attack vector and low EPSS.
  • Audit applications and services that invoke glib temporary file APIs for exposure to untrusted local users.
  • Implement filesystem restrictions such as noexec or restricted tmp directories where feasible to limit symlink abuse.

The record

A flaw was found in glib. An integer overflow during temporary file creation leads to an out-of-bounds memory access, allowing an attacker to potentially perform path traversal or access private temporary file content by creating symbolic links. This vulnerability allows a local attacker to manipulate file paths and access unauthorized data. The core issue stems from insufficient validation of file path lengths during temporary file operations.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 glib2.0 0 No fix
Debian:12 glib2.0 0 2.74.6-2+deb12u7
Debian:13 glib2.0 0 2.84.4-3~deb13u1
Debian:14 glib2.0 0 2.84.4-1
Mageia:9 glib2.0 0 2.76.3-1.6.mga9
SUSE:Linux Enterprise Micro 5.2 glib2 0 2.62.6-150200.3.33.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 glib2 0 2.78.6-150600.4.22.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 glib2 0 2.78.6-150600.4.22.1
openSUSE:Leap 15.6 glib2 0 2.78.6-150600.4.22.1
openSUSE:Leap 15.6 glib2-doc 0 2.78.6-150600.4.22.1
openSUSE:Leap 16.0 glib2 0 2.84.4-160000.1.1
openSUSE:Leap 16.0 glib2-doc 0 2.84.4-160000.1.1
openSUSE:Tumbleweed glib2 0 2.84.4-1.1

Related vulnerabilities