High severity8.6OSV Advisory· Published Jul 9, 2024· Updated Apr 15, 2026
CVE-2024-39697
CVE-2024-39697
Description
phonenumber is a library for parsing, formatting and validating international phone numbers. Since 0.3.4, the phonenumber parsing code may panic due to a panic-guarded out-of-bounds access on the phonenumber string. In a typical deployment of rust-phonenumber, this may get triggered by feeding a maliciously crafted phonenumber, e.g. over the network, specifically strings of the form +dwPAA;phone-context=AA, where the "number" part potentially parses as a number larger than 2^56. This vulnerability is fixed in 0.3.6.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
phonenumbercrates.io | >= 0.3.4, < 0.3.6 | 0.3.6 |
Affected products
2- Range: v0.1.0, v0.3.3+8.13.9, v0.3.4+8.13.34, …
Patches
Vulnerability mechanics
References
8- github.com/advisories/GHSA-mjw4-jj88-v687ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2024-39697ghsaADVISORY
- github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203nvdWEB
- github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407nvdWEB
- github.com/whisperfish/rust-phonenumber/issues/69nvdWEB
- github.com/whisperfish/rust-phonenumber/pull/52nvdWEB
- github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687nvdWEB
- rustsec.org/advisories/RUSTSEC-2024-0369.htmlghsaWEB
News mentions
0No linked articles in our index yet.