GitHub Advisoryadvisory · crates.io

GHSA-whhr-7f2w-qqj2 phonenumber panics on parsing crafted RFC3966 inputs

HIGH Published 2023-09-21 Modified 2026-03-11 Official page ↗
Aliases
CVE-2023-42444
Ecosystem
crates.io
Packages
phonenumber
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-1284, CWE-248, CWE-392
Reviewed
2023-09-21

Affected packages

• crates.io phonenumber: < 0.2.5 → fixed in 0.2.5 • crates.io phonenumber: >= 0.3.0, < 0.3.3 → fixed in 0.3.3

Description

Impact 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 over the network, specifically the string `.;phone-context=`. Patches Patches will be published as version `0.3.3+8.13.9` and backported as `0.2.5+8.11.3`. Workarounds n.a. References n.a.

Related

Alias · CVE (1)

  • CVE-2023-42444 phonenumber is a library for parsing, formatting and validating international phone numbers. vulnerability

Weakness · CWE (3)

  • CWE-1284 Improper Validation of Specified Quantity in Input weakness
  • CWE-248 Uncaught Exception weakness
  • CWE-392 Missing Report of Error Condition weakness

References