jeaye/ncurses-rs · Security
Buffer overflow and format vulnerabilities in ncurses
- GHSA ID
- GHSA-g7r5-x7cr-vm3v
- CVE ID
- CVE-2019-15548
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
ncurses exposes functions from the ncurses library which:
- Pass buffers without length to C functions that may write an arbitrary amount of data, leading to a buffer overflow. (instr, mvwinstr, etc)
- Passes rust &str to strings expecting C format arguments, allowing hostile input to execute a format string attack, which trivially allows writing arbitrary data to stack memory (functions in the printw family).
CWEs
- CWE-119 · Improper Restriction of Operations within the Bounds of a Memory Buffer