# CVE-2026-18374: Passing an effectively empty string to the ,ccs= syntax extension of the mode argument in the fopen function in the GNU C Library version 2…

- Severity: Medium 4.9 (CVSS:3.1, scored by glibc) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 3% of CVEs (2026-11-30)
- Published: 2026-08-27T19:20:40.426Z
- Modified: 2026-09-03T16:43:15.293Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: glibc

## Description

Passing an effectively empty string to the `,ccs=` syntax extension of the mode argument in the `fopen` function in the GNU C Library version 2.45 or earlier may result in a heap buffer overflow when the mode string input to the function is attacker controlled.



This usage pattern is not seen in applications in common GNU/Linux distributions and applications that process user-supplied values for `ccs` should not pass them through without validation.

(As written by CVE List.)

## Affected

- The GNU C Library glibc: before 2.45

## References

- <https://sourceware.org/bugzilla/show_bug.cgi?id=34574> (issue-tracking)
- <https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0015> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/08/27/6>

## Sources

- CVE List: [CVE-2026-18374](https://www.cve.org/CVERecord?id=CVE-2026-18374), CVE Terms of Use, modified 2026-08-28
- NVD: [CVE-2026-18374](https://nvd.nist.gov/vuln/detail/CVE-2026-18374), Public domain, modified 2026-09-03

---

Page: https://cve.day/CVE-2026-18374 · Whole record: https://cve.day/CVE-2026-18374.json · Rebuilt by cve.day 2026-11-25T22:59:35.520Z
