Advisory

GHSA-49fq-pw77-6qxj

Also known as: CVE-2019-16882, RUSTSEC-2019-0023

Summary

Use after free in string-interner

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:44 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

string-interner

crates.io · All systems

Affected

  • introduced 0.7.0, fixed 0.7.1 (semver)

Fixed versions

0.7.1

Fix

  • Fixed version 0.7.1
    cargo update -p string-interner --precise 0.7.1

string-interner

crates.io · All systems

Affected

  • introduced 0, fixed 0.6.4 (semver)

Fixed versions

0.6.4

Fix

  • Fixed version 0.6.4
    cargo update -p string-interner --precise 0.6.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences