RUSTSEC-2019-0006

Source
https://rustsec.org/advisories/RUSTSEC-2019-0006
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0006.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0006
Aliases
Published
2019-06-15T12:00:00Z
Modified
2023-11-08T04:01:13.981343Z
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).
Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / ncurses

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "ncurses::instr",
            "ncurses::mvprintw",
            "ncurses::mvwinstr",
            "ncurses::mvwprintw",
            "ncurses::printw"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": []
}