CVE-2024-39697
phonenumber panics on parsing crafted phonenumber inputs
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H |
| NVDNVD · Deferred | 3.1 | High8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.71% · top 46% of all CVEs (5 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.6.
Weakness
- CWE-284: Improper Access Control (opens in a new tab)All about CWE-284 and its CVEs
- CWE-392: Missing Report of Error Condition (opens in a new tab)All about CWE-392 and its CVEs
- CWE-1284: Improper Validation of Specified Quantity in Input (opens in a new tab)All about CWE-1284 and its CVEs
- CWE-617: Reachable Assertion (opens in a new tab)All about CWE-617 and its CVEs
Affected products
whisperfish · rust-phonenumber
- affected >= 0.3.4, < 0.3.6
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- crates.iophonenumberGHSA-mjw4-jj88-v687 (opens in a new tab)
References (5)
- https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/whisperfish/rust-phonenumber/issues/69 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/whisperfish/rust-phonenumber/pull/52 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mjw4-jj88-v687 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-39697)Record last updated .