Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. string-interner
  4. ›
  5. CVE-2019-16882

CVE-2019-16882: Use after free in string-interner

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate did not clone contained strings when an interner is cloned. Interners have raw pointers to the contained strings, and they keep pointing the strings which the old interner owns, after the interner is cloned. If a new cloned interner is alive and the old original interner is dead, the new interner has dangling pointers to the old interner’s storage, which is already dropped.

This allows an attacker to read the already freed memory. The dangling pointers are used by the interners to check a string is already interned. An attacker can do brute force attack to get the data pointed by the dangling pointer.

References

  • github.com/Robbepop/string-interner
  • github.com/Robbepop/string-interner/commit/d91dac0cfe42512526879cdfaac0b81beff54089
  • github.com/Robbepop/string-interner/issues/9
  • github.com/Robbepop/string-interner/pull/10
  • github.com/advisories/GHSA-49fq-pw77-6qxj
  • nvd.nist.gov/vuln/detail/CVE-2019-16882
  • rustsec.org/advisories/RUSTSEC-2019-0023.html

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.4, all versions starting from 0.7.0 before 0.7.1

Fixed versions

  • 0.7.1
  • 0.6.4

Solution

Upgrade to versions 0.6.4, 0.7.1 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-416: Use After Free

Source file

cargo/string-interner/CVE-2019-16882.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:10 +0000.