Vulnerability HighRUSTSEC-2023-0082 · phonenumber
RUSTSEC-2023-0082: phonenumber: panic on parsing crafted RF3966 phonenumber inputs
Short answerA security vulnerability in the phonenumber crate: phonenumber: panic on parsing crafted RF3966 phonenumber inputs. High severity (CVSS 8.6). Fixed in 0.2.5, 0.3.3: update to a fixed version.
| Crate | phonenumber |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.2.5; from 0.3.0 before 0.3.3. |
| Fixed in | 0.2.5, 0.3.3 |
| Severity | High, CVSS 8.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H |
| Published | 2023-09-19 |
| Last changed | 2026-10-13 |
| Also known as | CVE-2023-42444, GHSA-whhr-7f2w-qqj2 |
| Affected functions | phonenumber::parse |
What to do
- See which version you have:
cargo tree -i phonenumber(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p phonenumber. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplephonenumber = "0.3.3") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
Impact
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 over the network, specifically the string .;phone-context=.
Patches
Patches will be published as version 0.3.3+8.13.9 and backported as 0.2.5+8.11.3.
References
- Package: crates.io/crates/phonenumber
- Advisory: rustsec.org/advisories/RUSTSEC-2023-0082.html
- Web: github.com/whisperfish/rust-phonenumber/commit/2dd44be94539c051b4dee55d1d9d349bd7bedde6
- Web: cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-42444
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for phonenumber
Up next
Same cratephonenumber: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?