Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. ncurses
  4. ›
  5. CVE-2019-15548

CVE-2019-15548: Buffer overflow and format vulnerabilities in ncurses

August 25, 2021 (updated June 13, 2023)

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

References

  • github.com/RustSec/advisory-db/issues/106
  • github.com/advisories/GHSA-g7r5-x7cr-vm3v
  • github.com/jeaye/ncurses-rs
  • github.com/jeaye/ncurses-rs/issues/172
  • nvd.nist.gov/vuln/detail/CVE-2019-15548
  • rustsec.org/advisories/RUSTSEC-2019-0006.html

Code Behaviors & Features

Detect and mitigate CVE-2019-15548 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 5.101.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

cargo/ncurses/CVE-2019-15548.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:25 +0000.