CVE-2024-39697 — Vulnerability in phonenumber — CVE Details
panic on parsing crafted phonenumber inputs
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.05%). Schedule for your next planned update.
Does your project use an affected phonenumber version?
Paste your Cargo.lock to check it for CVE-2024-39697 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
The phonenumber parsing code may panic due to a reachable assert! guard 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.
Since f69abee1/0.3.4/#52.
0.2.x series is not affected.
Patches
Upgrade to 0.3.6 or higher.
Workarounds
n/a
References
Whereas https://github.com/whisperfish/rust-phonenumber/issues/69 did not provide an example code path, property testing found a few: +dwPAA;phone-context=AA.
Advisory Timeline
- First published July 9, 2024 (870 days ago).
- Last revised September 10, 2026 — 793 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p phonenumber --precise 0.3.6
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| phonenumber crates.io · Affected: All versions | 0.3.6 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1284
- CWE-248
- CWE-392
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
References
- https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-39697ADVISORY
- https://github.com/whisperfish/rust-phonenumber/issues/69WEB
- https://github.com/whisperfish/rust-phonenumber/pull/52WEB
- https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203WEB
- https://github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407WEB
- https://github.com/whisperfish/rust-phonenumberPACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0369.htmlWEB
Frequently Asked Questions
- What is CVE-2024-39697?
- panic on parsing crafted phonenumber inputs. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2024-39697?
- CVE-2024-39697 affects phonenumber. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-39697 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 63.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- RUSTSEC-2026-0501CRITICAL
Shamir backup recovery accepts a share at x = 0, so a supplied share can substitute the recovered private key
- CVE-2026-69157CRITICAL
Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive
- CVE-2023-42444HIGH
phonenumber: panic on parsing crafted RF3966 phonenumber inputs
- CVE-2023-42444HIGH
phonenumber panics on parsing crafted RFC3966 inputs