CVE-2023-42444: Phonenumber Phonenumber Panics On Parsing Crafted Vulnerability
HIGHCVE-2023-42444 is a HIGH (CVSS 7.5) phonenumber panics on parsing crafted vulnerability (CWE-392: Missing Report of Error Condition) affecting Phonenumber libraries in the crates.io ecosystem. The issue involves phonenumber panics on parsing crafted rfc3966 inputs. Remediation is available by upgrading affected packages to version 0.2.5, 0.3.3.
CVE-2023-42444 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2023-42444
To remediate this vulnerability, upgrade all affected Phonenumber dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade phonenumber to 0.2.5
Upgrade phonenumber to 0.3.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for phonenumber
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-42444, inspect your project dependencies for Phonenumber:
inspect dependencies for phonenumber
Analyze the terminal output to locate any version of Phonenumber in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-392: Missing Report of Error Condition, where the product encounters an error but does not provide a status code or return value to indicate that an error has occurred. In Phonenumber, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-42444 Affected Phonenumber Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
phonenumber
|
crates.io |
< 0.2.5
|
0.2.5
|
|
phonenumber
|
crates.io |
≥ 0.3.0
< 0.3.3
|
0.3.3
|
References
Frequently Asked Questions
What is CVE-2023-42444?
Which Phonenumber versions are affected?
What version fixes CVE-2023-42444?
Is phonenumber affected?
What is the CVSS score of CVE-2023-42444?
What CWE is associated with CVE-2023-42444?
How can I check crates.io dependencies for CVE-2023-42444?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-whhr-7f2w-qqj2",
"modified" : "2026-03-11T20:35:22Z",
"published" : "2023-09-21T17:10:57Z",
"aliases" : [ "CVE-2023-42444" ],
"summary" : "phonenumber panics on parsing crafted RFC3966 inputs",
"details" : "### Impact\nThe phonenumber parsing code may panic due to a panic-guarded out-of-bounds access on the phonenumber string.\n\nIn a typical deployment of `rust-phonenumber`, this may get triggered by feeding a maliciously crafted phonenumber over the network, specifically the string `.;phone-context=`.\n\n### Patches\nPatches will be published as version `0.3.3+8.13.9` and backported as `0.2.5+8.11.3`.\n\n### Workarounds\nn.a.\n\n### References\nn.a.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "phonenumber"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "crates.io",
"name" : "phonenumber"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.3.0"
}, {
"fixed" : "0.3.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-whhr-7f2w-qqj2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-42444"
}, {
"type" : "WEB",
"url" : "https://github.com/whisperfish/rust-phonenumber/commit/2dd44be94539c051b4dee55d1d9d349bd7bedde6"
}, {
"type" : "WEB",
"url" : "https://github.com/whisperfish/rust-phonenumber/commit/bea8e732b9cada617ede5cf51663dba183747f71"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/whisperfish/rust-phonenumber"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2023-0082.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1284", "CWE-248", "CWE-392" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-21T17:10:57Z",
"nvd_published_at" : "2023-09-19T15:15:56Z"
}
}