CVE-2024-39697

phonenumber panics on parsing crafted phonenumber inputs

State
Published
Severity
8.6 High
Published
Jul 9, 2024
Updated
Aug 2, 2024
Reserved
Jun 27, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-284 Improper Access Control
  • CWE-392 Missing Report of Error Condition
  • CWE-1284 Improper Validation of Specified Quantity in Input
  • CWE-617 Reachable Assertion

Affected Products

ProductVersions
rust-phonenumberwhisperfish
  • >= 0.3.4, < 0.3.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.