Advisory

RUSTSEC-2019-0006

Also known as: CVE-2019-15547, CVE-2019-15548, GHSA-32v7-ghpr-c8hg, GHSA-g7r5-x7cr-vm3v

Summary

Buffer overflow and format vulnerabilities in functions exposed without unsafe

Details

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

Severity

Not rated by the source.

Dates

Published
2019-06-15 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

ncurses

crates.io · All systems

Affected

  • introduced 0.0.0-0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences