Email me

Rust advisories / string-interner

Vulnerability HighRUSTSEC-2019-0023 · string-interner

RUSTSEC-2019-0023: Cloned interners may read already dropped strings

Short answerA security vulnerability in the string-interner crate: Cloned interners may read already dropped strings. High severity (CVSS 7.5). Fixed in 0.6.4, 0.7.1: update to a fixed version.

Cratestring-interner
TypeVulnerability
Affected versionsBefore 0.6.4; from 0.7.0 before 0.7.1.
Fixed in0.6.4, 0.7.1
SeverityHigh, CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2019-08-24
Last changed2023-11-08
Also known asCVE-2019-16882, GHSA-49fq-pw77-6qxj

What to do

  1. See which version you have: cargo tree -i string-interner (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p string-interner. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example string-interner = "0.7.1") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

The flaw was corrected by <https://github.com/Robbepop/string-interner/pull/10>. This patch implements Clone manually to the interner type, so that the internal raw pointers always point the strings owned by the same interner.

PR #10 was also backported to the 0.6 release line in <https://github.com/Robbepop/string-interner/pull/14> and was released in 0.6.4.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ