# CVE-2024-39697: phonenumber panics on parsing crafted phonenumber inputs

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-02)
- Published: 2024-07-07T12:00:00.000Z
- Modified: 2026-10-13T15:19:21.218Z
- Also known as: GHSA-mjw4-jj88-v687, RUSTSEC-2024-0369
- Weaknesses: CWE-248, CWE-284, CWE-392, CWE-617, CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- whisperfish rust-phonenumber: >= 0.3.4, < 0.3.6
- whisperfish phonenumber: from 0.3.4 before 0.3.6
- phonenumber (crates.io): from 0.3.4 before 0.3.6; from 0.3.3 before 0.3.6

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H`
- GitHub: CVSS:3.1 8.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H`
- RustSec Advisory Database: CVSS:3.1 8.6 High `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-v687> (web)
- <https://github.com/whisperfish/rust-phonenumber/issues/69> (report, web)
- <https://github.com/whisperfish/rust-phonenumber/pull/52> (web)
- <https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203> (web)
- <https://github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39697> (advisory)
- <https://github.com/whisperfish/rust-phonenumber> (package)
- <https://rustsec.org/advisories/RUSTSEC-2024-0369.html> (advisory, web)
- <https://crates.io/crates/phonenumber> (package)
- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39697> (web)

## Sources

- CVE List: [CVE-2024-39697](https://www.cve.org/CVERecord?id=CVE-2024-39697), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-mjw4-jj88-v687](https://github.com/advisories/GHSA-mjw4-jj88-v687), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2024-0369](https://rustsec.org/advisories/RUSTSEC-2024-0369.html), CC0-1.0, modified 2026-10-13
- NVD: [CVE-2024-39697](https://nvd.nist.gov/vuln/detail/CVE-2024-39697), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39697 · Whole record: https://cve.day/CVE-2024-39697.json · Rebuilt by cve.day 2026-11-25T22:58:42.619Z
