GHSA-49fq-pw77-6qxj

    Dashboard / Vulnerabilities / GHSA-49fq-pw77-6qxj

    GHSA-49fq-pw77-6qxj

    Published: 25 Aug 2021Last Modified: 8 Nov 2023

    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.

    Affected packages

    Package

    Name: string-interner

    Purl: pkg:cargo/string-interner

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.7.0
    Fixed -0.7.1

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High