# CVE-2019-16881: Use after free in portaudio-rs

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.51%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-09-14T12:00:00.000Z
- Modified: 2026-06-17T02:22:53.577Z
- Also known as: GHSA-qpjr-ch72-2qq4, RUSTSEC-2019-0022
- Weaknesses: CWE-416
- Assigned by: mitre

## Description

An issue was discovered in the portaudio-rs crate through 0.3.1 for Rust. There is a use-after-free with resultant arbitrary code execution because of a lack of unwind safety in stream_callback and stream_finished_callback.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- portaudio-rs (crates.io): before 0.3.2; from 0.0.0-0 before 0.3.2-0
- portaudio-rs_project portaudio-rs: up to 0.3.1

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- RustSec Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2019-0022.html> (exploit, advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-16881> (advisory)
- <https://github.com/mvdnes/portaudio-rs/issues/20> (report, web)
- <https://github.com/mvdnes/portaudio-rs/commit/7466df019f6739732fd91401017942c22364ef61> (web)
- <https://github.com/mvdnes/portaudio-rs> (package)
- <https://crates.io/crates/portaudio-rs> (package)

## Sources

- CVE List: [CVE-2019-16881](https://www.cve.org/CVERecord?id=CVE-2019-16881), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-qpjr-ch72-2qq4](https://github.com/advisories/GHSA-qpjr-ch72-2qq4), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2019-0022](https://rustsec.org/advisories/RUSTSEC-2019-0022.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2019-16881](https://nvd.nist.gov/vuln/detail/CVE-2019-16881), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-16881 · Whole record: https://cve.day/CVE-2019-16881.json · Rebuilt by cve.day 2026-11-25T22:57:47.107Z
