Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. phonenumber
  4. ›
  5. CVE-2023-42444

CVE-2023-42444: phonenumber panics on parsing crafted RFC3966 inputs

September 21, 2023 (updated October 6, 2023)

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=.

References

  • github.com/advisories/GHSA-whhr-7f2w-qqj2
  • github.com/whisperfish/rust-phonenumber
  • github.com/whisperfish/rust-phonenumber/commit/2dd44be94539c051b4dee55d1d9d349bd7bedde6
  • github.com/whisperfish/rust-phonenumber/commit/bea8e732b9cada617ede5cf51663dba183747f71
  • github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-whhr-7f2w-qqj2
  • nvd.nist.gov/vuln/detail/CVE-2023-42444

Code Behaviors & Features

Detect and mitigate CVE-2023-42444 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.2.5, all versions starting from 0.3.0 before 0.3.3

Fixed versions

  • 0.2.5
  • 0.3.3

Solution

Upgrade to versions 0.2.5, 0.3.3 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

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

Source file

cargo/phonenumber/CVE-2023-42444.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:31 +0000.