Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. portaudio-rs
  4. ›
  5. CVE-2019-16881

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

August 25, 2021 (updated June 13, 2023)

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 .

References

  • github.com/advisories/GHSA-qpjr-ch72-2qq4
  • github.com/mvdnes/portaudio-rs
  • github.com/mvdnes/portaudio-rs/commit/7466df019f6739732fd91401017942c22364ef61
  • github.com/mvdnes/portaudio-rs/issues/20
  • nvd.nist.gov/vuln/detail/CVE-2019-16881
  • rustsec.org/advisories/RUSTSEC-2019-0022.html

Code Behaviors & Features

Detect and mitigate CVE-2019-16881 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.3.2

Fixed versions

  • 0.3.2

Solution

Upgrade to version 0.3.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-416: Use After Free

Source file

cargo/portaudio-rs/CVE-2019-16881.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:22 +0000.