GHSA-49fq-pw77-6qxj

Suggest an improvement
Source
https://github.com/advisories/GHSA-49fq-pw77-6qxj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-49fq-pw77-6qxj/GHSA-49fq-pw77-6qxj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-49fq-pw77-6qxj
Aliases
Published
2021-08-25T20:44:15Z
Modified
2023-11-08T04:01:22.202134Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-416"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:23:01Z"
}
References

Affected packages

crates.io / string-interner

Package

Name
string-interner
View open source insights on deps.dev
Purl
pkg:cargo/string-interner

Affected ranges

Type
SEMVER
Events
Introduced
0.7.0
Fixed
0.7.1

crates.io / string-interner

Package

Name
string-interner
View open source insights on deps.dev
Purl
pkg:cargo/string-interner

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.6.4