GHSA-qpjr-ch72-2qq4

Suggest an improvement
Source
https://github.com/advisories/GHSA-qpjr-ch72-2qq4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-qpjr-ch72-2qq4/GHSA-qpjr-ch72-2qq4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qpjr-ch72-2qq4
Aliases
Published
2021-08-25T20:45:17Z
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
Use after free in portaudio-rs
Details

Affected versions of this crate is not panic safe within callback functions streamcallback and streamfinished_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 .

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-416"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:21:17Z"
}
References

Affected packages

crates.io / portaudio-rs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.3.2