CVE-2026-18374: Buffer overflow in fopen mode argument processing in The GNU C Library glibc
Description
CVE-2026-18374 is a medium severity buffer overflow vulnerability in the GNU C Library (glibc) affecting version 2.45 and earlier. It occurs when an attacker-controlled mode string passed to the fopen function uses the ,ccs= syntax extension with an effectively empty string, potentially causing a heap buffer overflow. This usage pattern is uncommon in typical GNU/Linux applications, and applications should validate user-supplied ccs values before passing them to fopen.
CVSS v3.1
Score 4.9medium
Affected software
The GNU C Library
glibc
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from improper processing of the mode argument in the fopen function of glibc versions 2.45 and earlier. Specifically, passing an effectively empty string to the ,ccs= syntax extension in the mode argument can trigger a heap buffer overflow if the mode string is attacker controlled. This flaw is identified as CWE-787 (Out-of-bounds Write). There is no indication of known exploits in the wild, and the vulnerability requires local attack vector with high attack complexity and no privileges or user interaction. The CVSS 3.1 base score is 4.9 (medium severity).
Potential Impact
Successful exploitation could lead to a heap buffer overflow, potentially causing limited confidentiality, integrity, and availability impacts. However, the attack complexity is high, and the vulnerability requires local access. The impact is limited to scenarios where attacker-controlled input is passed to fopen with the ,ccs= mode syntax, which is not common in typical GNU/Linux applications.
Mitigation Recommendations
No official patch or remediation level has been published yet. Users and developers should avoid passing unvalidated user-supplied values to the ,ccs= syntax extension in fopen mode arguments. Monitor the GNU C Library vendor advisories for updates and apply patches once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- glibc
- Date Reserved
- 2026-07-30T10:48:56.220Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a909ceeacd9273b49b2cd34
Added to database: 08/27/2026, 20:24:14 UTC
Last enriched: 09/10/2026, 04:37:56 UTC
Last updated: 10/11/2026, 18:48:17 UTC
Views: 69
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.