Skip to content
OpenAdvisories
High · 8.6 CVE-2024-39697 EUVD-2024-2383GHSA-mjw4-jj88-v687RUSTSEC-2024-0369

phonenumber panics on parsing crafted phonenumber inputs

Published Jul 9, 2024 · Updated Aug 2, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
whisperfish rust-phonenumber >= 0.3.4, < 0.3.6 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io phonenumber >= 0.3.4, < 0.3.6 0.3.6 GHSA-mjw4-jj88-v687
crates.io phonenumber >= 0.3.3, < 0.3.6 0.3.6 RUSTSEC-2024-0369

References