HistoryEditJSON (OSV)

RUSTSEC-2019-0005

Format string vulnerabilities in pancurses

Reported
Issued
Package
pancurses (crates.io)
Type
Vulnerability
Aliases
References
CVSS Score
7.5 HIGH
CVSS Details
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Patched
no patched versions
Affected Functions
Version
pancurses::mvprintw
  • >=0
pancurses::printw
  • >=0

Description

pancurses::mvprintw and pancurses::printw passes a pointer from a rust &str to C, allowing hostile input to execute a format string attack, which trivially allows writing arbitrary data to stack memory.

Advisory available under CC0-1.0 license.