RustSec Advisory Database
RUSTSEC-2023-0082
phonenumber: panic on parsing crafted RF3966 phonenumber inputs
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | phonenumber | From 0.0.0-0 before 0.2.5 (fixed in 0.2.5) From 0.3.0 before 0.3.3 (fixed in 0.3.3) |