RUSTSEC-2019-0022

Source
https://rustsec.org/advisories/RUSTSEC-2019-0022
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0022.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0022
Aliases
Published
2019-09-14T12:00:00Z
Modified
2023-11-08T04:01:22.139199Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Stream callback function is not unwind safe
Details

Affected versions of this crate is not panic safe within callback functions stream_callback and stream_finished_callback.

The call to user-provided closure might panic before a mem::forget call, which then causes a use after free that grants attacker to control the callback function pointer.

This allows an attacker to construct an arbitrary code execution .

The flaw was reported by Phosphorus15.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / portaudio-rs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.3.2-0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "informational": null,
    "categories": [
        "code-execution",
        "memory-corruption"
    ]
}