{"id":"CVE-2024-39697","aliases":["GHSA-mjw4-jj88-v687","RUSTSEC-2024-0369"],"url":"https://o3.security/vulnerability/CVE-2024-39697","summary":"phonenumber panics on parsing crafted phonenumber inputs","details":"### Impact\nThe phonenumber parsing code may panic due to a reachable `assert!` guard on the phonenumber string.\n\nIn 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.\n\nSince f69abee1/0.3.4/#52.\n\n0.2.x series is not affected.\n\n### Patches\nUpgrade to 0.3.6 or higher.\n\n### Workarounds\nn/a\n\n### References\nWhereas https://github.com/whisperfish/rust-phonenumber/issues/69 did not provide an example code path, property testing found a few: `+dwPAA;phone-context=AA`.\n","published":"2024-07-09T14:16:38.493Z","modified":"2026-08-12T03:51:39.176513104Z","cvss":{"score":8.6,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"phonenumber","fixedVersion":"0.3.6"}],"fix":{"url":"https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203","label":"whisperfish/rust-phonenumber@b792151"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39697.json"},{"type":"ADVISORY","url":"https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39697"},{"type":"REPORT","url":"https://github.com/whisperfish/rust-phonenumber/issues/69"},{"type":"FIX","url":"https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203"},{"type":"FIX","url":"https://github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407"},{"type":"FIX","url":"https://github.com/whisperfish/rust-phonenumber/pull/52"},{"type":"PACKAGE","url":"https://github.com/whisperfish/rust-phonenumber"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2024-0369.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:39.176513104Z"}}