PT-2019-14264 · Ncurses+1 · Ncurses+1

Published

2018-04-18

·

Updated

2021-08-25

·

CVE-2019-15548

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions ncurses versions through 5.99.0
Description The issue arises from the mishandling of interaction with C functions, leading to buffer overflows in instr and mvwinstr. Specifically, ncurses exposes functions from the ncurses library that pass buffers without length to C functions, which may write an arbitrary amount of data, causing a buffer overflow. Additionally, it passes Rust &str to strings expecting C format arguments, allowing hostile input to execute a format string attack, which can write arbitrary data to stack memory, particularly in functions like printw.
Recommendations For versions through 5.99.0, consider disabling the instr and mvwinstr functions until a patch is available. Restrict access to the printw family of functions to minimize the risk of exploitation. Avoid using the &str parameter in affected functions until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Buffer Overflow

Use of Externally-Controlled Format String

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2018-1601
CVE-2019-15548
GHSA-32V7-GHPR-C8HG
GHSA-G7R5-X7CR-VM3V
RUSTSEC-2019-0006

Affected Products

Alt Linux
Ncurses