CVE-2019-16881 json
Use after free in portaudio-rs
published 2019-09-14 7 y ago modified 2026-06-17 4 mo ago also GHSA-qpjr-ch72-2qq4 , RUSTSEC-2019-0022 , EUVD-2021-1848
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
2.51% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2019-0022.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | portaudio-rs | <0.3.2 >=0.0.0-0, <0.3.2-0 |
0.3.2 0.3.2-0 |
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/mvdnes/portaudio-rs/commit/7466df019f6739732fd91401017942c22364ef61
web
-
rustsec.org
/advisories/RUSTSEC-2019-0022.html
web, exploit, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-16881
advisory
-
github.com
/mvdnes/portaudio-rs/issues/20
web, report
-
github.com
/mvdnes/portaudio-rs
package
-
crates.io
/crates/portaudio-rs
package
Sources
- CVE List CVE-2019-16881
- GitHub Advisory GHSA-qpjr-ch72-2qq4
- NVD CVE-2019-16881
- OSV RUSTSEC-2019-0022
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.