GitHub Advisoryadvisory · crates.io

GHSA-g7r5-x7cr-vm3v Buffer overflow and format vulnerabilities in ncurses

CRITICAL Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2019-15548
Ecosystem
crates.io
Packages
ncurses
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-119
Reviewed
2021-08-18

Affected packages

• crates.io ncurses: <= 5.101.0 (no fix yet)

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).

Related

Alias · CVE (1)

  • CVE-2019-15548 An issue was discovered in the ncurses crate through 5.99.0 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer weakness

References