{"id":"CVE-2024-39697","published":"2024-07-09T14:16:38Z","modified":"2024-08-02T04:26:16Z","title":"phonenumber panics on parsing crafted phonenumber inputs","vendor":"whisperfish","product":"rust-phonenumber","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00711,"percentile":0.54453,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"},{"id":"CWE-392","name":"Missing Report of Error Condition"},{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input"},{"id":"CWE-617","name":"Reachable Assertion"}],"references":[{"url":"https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/whisperfish/rust-phonenumber/issues/69","tags":["x_refsource_MISC"]},{"url":"https://github.com/whisperfish/rust-phonenumber/pull/52","tags":["x_refsource_MISC"]},{"url":"https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203","tags":["x_refsource_MISC"]},{"url":"https://github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":10.89},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"whisperfish","affectedVersions":[{"vendor":"whisperfish","product":"rust-phonenumber","versions":[">= 0.3.4, < 0.3.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-15T21:32:25.872927Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"phonenumber","vulnerableRanges":[">=0.3.4, <0.3.6",">=0.3.3, <0.3.6"],"patched":["0.3.6"],"from":["GHSA-mjw4-jj88-v687","RUSTSEC-2024-0369"],"provenance":"source"}],"summary":{"text":"The rust-phonenumber library, a Rust package from Whisperfish for parsing, formatting and validating international phone numbers, contains a flaw in its parsing code (present since 0.3.4) where a panic-guarded out-of-bounds access on the phone number string causes the parser to panic. An attacker who can submit a crafted phone number string, such as one of the form +dwPAA;phone-context=AA whose number part parses to a value above 2^56, can trigger the panic remotely over the network in a typical deployment, without needing credentials or user interaction, and this results in denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:50Z"},"euvd":{"id":"EUVD-2024-2383","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-whisperfish-rust-phonenumber-cve-2023-42444","parents":[{"from":"CVE-2023-42444","to":"CVE-2024-39697","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:phonenumber","fromFixed":"0.3.3","toFixed":"0.3.6","daysApart":294},{"kind":"same-code","provenance":"machine","files":["src/parser/mod.rs"],"commits":["https://github.com/whisperfish/rust-phonenumber/commit/2dd44be94539c051b4dee55d1d9d349bd7bedde6","https://github.com/whisperfish/rust-phonenumber/commit/bea8e732b9cada617ede5cf51663dba183747f71","https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203","https://github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.88,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2023-42444","published":"2023-09-19","fixed":"0.3.3","kev":false},{"cve":"CVE-2024-39697","published":"2024-07-09","fixed":"0.3.6","kev":false}],"package":"crates.io:phonenumber"}}