Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTQ5ZnEtcHc3Ny02cXhq
Use after free in string-interner
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.
Permalink: https://github.com/advisories/GHSA-49fq-pw77-6qxjJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTQ5ZnEtcHc3Ny02cXhq
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: 11 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Identifiers: GHSA-49fq-pw77-6qxj, CVE-2019-16882
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-16882
- https://github.com/Robbepop/string-interner/issues/9
- https://rustsec.org/advisories/RUSTSEC-2019-0023.html
- https://github.com/Robbepop/string-interner/commit/d91dac0cfe42512526879cdfaac0b81beff54089
- https://github.com/Robbepop/string-interner/pull/10
- https://github.com/advisories/GHSA-49fq-pw77-6qxj
Blast Radius: 15.8
Affected Packages
cargo:string-interner
Dependent packages: 32Dependent repositories: 127
Downloads: 2,841,108 total
Affected Version Ranges: < 0.6.4, >= 0.7.0, < 0.7.1
Fixed in: 0.6.4, 0.7.1
All affected versions: 0.1.0, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7.0
All unaffected versions: 0.6.4, 0.7.1, 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0, 0.12.1, 0.12.2, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0