{"id":"CVE-2026-18374","state":"PUBLISHED","title":"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 b","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.\n\n\n\nThis 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.","publishedAt":"2026-08-27T19:20:40.426Z","updatedAt":"2026-08-28T15:37:10.821Z","severity":{"score":4.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","source":"glibc"},"assigner":"glibc","products":["The GNU C Library glibc"],"affected":[{"vendor":"The GNU C Library","product":"glibc","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.45","versionType":"custom"}]}],"references":["https://sourceware.org/bugzilla/show_bug.cgi?id=34574","https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0015","http://www.openwall.com/lists/oss-security/2026/08/27/6"],"weaknesses":["CWE-787"],"ingestedAt":"2026-10-29T20:11:10.572Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/18xxx/CVE-2026-18374.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-18374","state":"PUBLISHED","datePublished":"2026-08-27T19:20:40.426Z","dateUpdated":"2026-08-28T15:37:10.821Z","assignerShortName":"glibc","assignerOrgId":"3ff69d7a-14f2-4f67-a097-88dee7810d18","dateReserved":"2026-07-30T10:48:56.220Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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.\n\n\n\nThis 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."}],"affected":[{"vendor":"The GNU C Library","product":"glibc","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"2.45","versionType":"custom"}]}],"references":[{"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=34574","tags":["issue-tracking"]},{"url":"https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0015","tags":["vendor-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW","baseSeverity":"MEDIUM","baseScore":4.9,"vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"}}],"problemTypes":[{"descriptions":[{"lang":"en","description":"Buffer overflow in fopen mode argument processing"}]},{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787 Out-of-bounds write","type":"CWE"}]}],"providerMetadata":{"shortName":"glibc","orgId":"3ff69d7a-14f2-4f67-a097-88dee7810d18","dateUpdated":"2026-08-27T19:26:33.518Z"},"impacts":[{"capecId":"CAPEC-100","descriptions":[{"lang":"en","value":"CAPEC-100 Overflow Buffers"}]},{"capecId":"CAPEC-47","descriptions":[{"lang":"en","value":"CAPEC-47 Buffer Overflow via Parameter Expansion"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 1.0.5"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/08/27/6"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-08-27T22:21:53.526Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-28T15:36:48.992608Z","id":"CVE-2026-18374","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","type":"CWE","lang":"en","description":"CWE-787 Out-of-bounds Write"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-28T15:37:10.821Z"}}]}}}