{"id":"CVE-2024-39697","aliases":["CVE-2024-39697","GHSA-mjw4-jj88-v687","RUSTSEC-2024-0369"],"related":[],"kind":"vulnerability","state":"published","title":"phonenumber panics on parsing crafted phonenumber inputs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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`.","format":"markdown","source":"ghsa"},{"lang":"en","text":"### Impact\n\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\nPatches have been published as version `0.3.6+8.13.36`.","format":"markdown","source":"rustsec"},{"lang":"es","text":"phonenumber es una librería para analizar, formatear y validar números de teléfono internacionales. Desde 0.3.4, el código de análisis del número de teléfono puede entrar en pánico debido a un acceso fuera de los límites protegido contra pánico en la cadena del número de teléfono. En una implementación típica de Rust-phonenumber, esto puede desencadenarse al alimentar un número de teléfono creado con fines malintencionados, por ejemplo, a través de la red, específicamente cadenas del formato `+dwPAA;phone-context=AA`, donde la parte \"number\" potencialmente se analiza como un número mayor que 2^56. Esta vulnerabilidad se solucionó en 0.3.6.","source":"nvd"}],"published":"2024-07-07T12:00:00.000Z","modified":"2026-10-13T15:19:21.218Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","score":8.6,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"CRITICAL"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H","score":8.6,"rating":"HIGH"}],"cwes":["CWE-248","CWE-284","CWE-392","CWE-617","CWE-1284"],"affected":[{"ranges":[{"version":">= 0.3.4, < 0.3.6","status":"affected"}],"vendor":"whisperfish","product":"rust-phonenumber","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.3.4","fixed":"0.3.6","status":"affected"}],"vendor":"whisperfish","product":"phonenumber","cpe":"cpe:2.3:a:whisperfish:phonenumber:*:*:*:*:*:rust:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.4","status":"affected","fixed":"0.3.6"}],"ecosystem":"crates.io","package":"phonenumber","purl":"pkg:cargo/phonenumber","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.3","status":"affected","fixed":"0.3.6"}],"ecosystem":"crates.io","package":"phonenumber","purl":"pkg:cargo/phonenumber","source":"rustsec"}],"references":[{"url":"https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/whisperfish/rust-phonenumber/issues/69","tags":["report","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/whisperfish/rust-phonenumber/pull/52","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/whisperfish/rust-phonenumber/commit/b792151b17fc90231c232a23935830c2266f3203","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/whisperfish/rust-phonenumber/commit/f69abee1481fac0d6d531407bae90020e39c6407","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39697","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/whisperfish/rust-phonenumber","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0369.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/phonenumber","tags":["package"],"sources":["rustsec"]},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39697","tags":["web"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-07-15T21:32:25.872Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39697","url":"https://www.cve.org/CVERecord?id=CVE-2024-39697","licence":"CVE Terms of Use","modified":"2024-08-02T04:26:16.016Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mjw4-jj88-v687","url":"https://github.com/advisories/GHSA-mjw4-jj88-v687","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:18.738Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2024-0369","url":"https://rustsec.org/advisories/RUSTSEC-2024-0369.html","licence":"CC0-1.0","modified":"2026-10-13T15:19:21.218Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39697","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39697","licence":"Public domain","modified":"2026-06-17T07:42:29.523Z"}],"updatedAt":"2026-11-25T22:58:42.619Z","epss":{"score":0.00711,"percentile":0.54801,"date":"2026-12-02T12:00:21.000Z"}}