Loading...
Skip to main content

CVE-2024-39697 — Vulnerability in phonenumber — CVE Details

CRITICAL

panic on parsing crafted phonenumber inputs

Published July 9, 2024Updated September 10, 2026Source: osv

Summary

### Impact The phonenumber parsing code may panic due to a reachable `assert!` guard 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. Since f69abee1/0.3.4/#52. 0.2.x series is not affected. ### Patches Upgrade to 0.3.6 or higher. ### Workarounds n/a ### References Whereas https://github.com/whisperfish/rust-phonenumber/issues/69 did not provide an example code path, property testing found a few: `+dwPAA;phone-context=AA`.

Advisory Timeline

  • First published July 9, 2024 (825 days ago).
  • Last revised September 10, 2026 — 793 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update phonenumber to 0.3.6 or later
cargo update -p phonenumber --precise 0.3.6

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageEcosystemAffectedFixed In
phonenumber
crates.io
All versions0.3.6

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2024-39697?
panic on parsing crafted phonenumber inputs This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.6/10).
How do I check if my project is affected by CVE-2024-39697?
CVE-2024-39697 affects phonenumber. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-39697 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.6

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-mjw4-jj88-v687
RUSTSEC-2024-0369

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies