Skip to content
OpenAdvisories
High · 8.6 CVE-2023-42444 EUVD-2023-2608GHSA-whhr-7f2w-qqj2RUSTSEC-2023-0082

phonenumber panics on parsing crafted RF3966 inputs

Published Sep 19, 2023 · Updated Sep 24, 2024 · Assigned by GitHub_M

Description

phonenumber is a library for parsing, formatting and validating international phone numbers. Prior to versions `0.3.3+8.13.9` and `0.2.5+8.11.3`, 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=`. Versions `0.3.3+8.13.9` and `0.2.5+8.11.3` contain a patch for this issue. There are no known workarounds.

Affected products

VendorProductAffectedFixed
whisperfish rust-phonenumber < 0.2.5+8.11.3, >= 0.3.0, < 0.3.3+8.3.19 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io phonenumber < 0.2.5 0.2.5 GHSA-whhr-7f2w-qqj2
crates.io phonenumber >= 0.3.0, < 0.3.3 0.3.3 GHSA-whhr-7f2w-qqj2
crates.io phonenumber >= 0.0.0-0, < 0.2.5 · >= 0.3.0, < 0.3.3 0.2.5, 0.3.3 RUSTSEC-2023-0082

References