{"id":"GHSA-mjw4-jj88-v687","revision":"637c4e15379e429eb9b5ea44888df9f2","records":[{"revision":"637c4e15379e429eb9b5ea44888df9f2","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-mjw4-jj88-v687","aliases":["CVE-2024-39697","RUSTSEC-2024-0369"],"title":"panic on parsing crafted phonenumber inputs","description":"### 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","state":0,"publishedAt":"2024-07-09T14:13:48+00:00","modifiedAt":"2026-09-10T03:49:18.7386084+00:00","affected":[{"ecosystem":"crates.io","name":"phonenumber","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.3.4"},{"kind":"fixed","version":"0.3.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687","https://nvd.nist.gov/vuln/detail/CVE-2024-39697","https://github.com/whisperfish/rust-phonenumber/issues/69","https://github.com/whisperfish/rust-phonenumber/pull/52","https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203","https://github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407","https://github.com/whisperfish/rust-phonenumber","https://rustsec.org/advisories/RUSTSEC-2024-0369.html"],"sourceUrl":"https://github.com/advisories/GHSA-mjw4-jj88-v687","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mjw4-jj88-v687","identifiers":["GHSA-mjw4-jj88-v687","CVE-2024-39697","RUSTSEC-2024-0369"]},"retained":false,"historicalAffected":[]}],"coverage":[]}