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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.05%). Schedule for your next planned update.

Does your project use an affected phonenumber version?

Paste your Cargo.lock to check it for CVE-2024-39697 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

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 (870 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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
phonenumber crates.io · Affected: 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. It has a 1.1% probability of exploitation within 30 days (EPSS score). 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

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.05%
EPSS percentile: 63.7

This is an above-median EPSS score — 63.7% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

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

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock