CVE-2025-7039: Glib: buffer under-read on glib through glib/gfileutils.c via get_tmp_file()
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.
Security readout for executives and security teams
Plain-English summary
CVE-2025-7039 is a low-severity GLib temporary-file handling flaw. Under specific conditions, improper path-length validation can cause out-of-bounds memory access and may let an attacker manipulate temporary file paths or access private temporary-file content.
Executive priority
Treat this as a routine patch-management item unless affected systems host untrusted local users or sensitive temporary-file workflows. It does not currently justify emergency response based on the supplied evidence.
Technical view
The bundle describes an integer overflow in GLib's get_tmp_file() path in glib/gfileutils.c, leading to buffer under-read or out-of-bounds access during temporary file creation. The stated impact is limited integrity risk through path traversal or unauthorized temporary-file content access.
Likely exposure
Confirmed affected entries are Red Hat Enterprise Linux 10 packages including glib2, bootc, glycin-loaders, loupe, mingw-glib2, and rpm-ostree. RHEL 6, 7, 8, and 9 entries are marked unknown. A Siemens advisory is referenced, but no Siemens affected-product details are provided in the bundle.
Exploitation context
The bundle says this can be abused by a local attacker using symbolic links. It is not in CISA KEV, and the provided sources do not state active exploitation. CVSS is 3.7 low, with high attack complexity and limited integrity impact.
Researcher notes
There is a source tension: CVSS lists AV:N, while the description states local attacker behavior. The practical exposure assessment should follow vendor clarification. No patch version, proof of exploitation, or Siemens product scope is included in the bundle.
Mitigation direction
Check Red Hat and Siemens advisories for current package status and vendor fixes.
Prioritize updates for affected RHEL 10 systems running listed packages.
Track unknown RHEL 6, 7, 8, and 9 package statuses until clarified.
Limit untrusted local user access on systems handling sensitive temporary files.
Avoid relying on unsupported local workarounds without vendor confirmation.
Validation and detection
Inventory systems for GLib, glib2, and listed dependent packages.
Map installed packages to the affected RHEL versions in vendor advisories.
Confirm whether Siemens advisory scope applies to your environment.
Review local threat model for untrusted users and temporary-file sensitive workflows.
Document unknown-status systems separately for follow-up.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-22: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.