# CVE-2026-115819: One-byte buffer overflow in wide scanf %s and %[ conversions

- Severity: Medium 4.8 (CVSS:3.1, scored by glibc) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/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.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-11-11T15:36:38.804Z
- Modified: 2026-11-17T15:17:31.913Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: glibc

## Description

Calling the wide scanf family of functions (swscanf, fwscanf, wscanf, vswscanf, vfwscanf and vwscanf) with a %s or %[ conversion without the 'l' length modifier in the GNU C Library version 2.2 to version 2.44 writes an extra null byte one past the end of the destination array when the converted multibyte string and its terminating null byte exactly fill that array.

These conversions store each wide input character into the caller's char array as a multibyte sequence.  The conversion ends with the sequence that returns to the initial shift state, which also stores the terminating null byte, and the functions then append a second null byte.  A destination sized for the converted string and one terminator, as the C standard requires the caller to provide, is therefore written one byte past its end.  The out-of-bounds byte is always a null byte, which may corrupt adjacent data or crash the process.  An attacker who supplies the input can trigger the overflow with a string whose converted length exactly fills the destination.

The narrow scanf functions, the %ls and %l[ conversions into a wchar_t array, and the 'a' and 'm' allocation modifiers are not affected, and storing a wide scanf conversion into a narrow char array is uncommon.  This issue affects all architectures and ABIs supported by the GNU C Library.

(As written by CVE List.)

## Affected

- The GNU C Library glibc: from 2.2 up to 2.44

## References

- <https://sourceware.org/bugzilla/show_bug.cgi?id=34989> (issue-tracking)
- <https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0027> (vendor-advisory)

## Sources

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

---

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