CVE-2024-39697

phonenumber panics on parsing crafted phonenumber inputs

Published Jul 9, 2024 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2383 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.
Github GHSA Github GHSA GHSA-mjw4-jj88-v687 panic on parsing crafted phonenumber inputs
History

No history.

Subscriptions

No data.

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input

  • CWE-284

    Improper Access Control

  • CWE-392

    Missing Report of Error Condition

  • CWE-617

    Reachable Assertion

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 2, 2024, 4:26 AM
Reserved
Jun 27, 2024, 6:44 PM
Status
Deferred
Published
Jul 9, 2024, 3:15 PM
Modified
Jun 17, 2026, 7:42 AM