GHSA-32v7-ghpr-c8hg

Suggest an improvement
Source
https://github.com/advisories/GHSA-32v7-ghpr-c8hg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-32v7-ghpr-c8hg/GHSA-32v7-ghpr-c8hg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-32v7-ghpr-c8hg
Aliases
Published
2021-08-25T20:58:47Z
Modified
2023-11-08T04:01:13.981343Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Mishandling of format strings in ncurses
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).

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-134"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-18T17:45:13Z"
}
References

Affected packages

crates.io / ncurses

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
5.101.0

Ecosystem specific

{
    "affected_functions": [
        "ncurses::instr",
        "ncurses::mvprintw",
        "ncurses::mvwinstr",
        "ncurses::mvwprintw",
        "ncurses::printw"
    ]
}