Advisory

GHSA-whhr-7f2w-qqj2

Also known as: CVE-2023-42444, RUSTSEC-2023-0082

Summary

phonenumber panics on parsing crafted RFC3966 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.

Workarounds
n.a.

References
n.a.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-09-21 17:10 UTC
Modified
2026-03-13 10:47 UTC

Affected packages and fixes

phonenumber

crates.io · All systems

Affected

  • introduced 0, fixed 0.2.5 (semver)

Fixed versions

0.2.5

Fix

  • Fixed version 0.2.5
    cargo update -p phonenumber --precise 0.2.5

phonenumber

crates.io · All systems

Affected

  • introduced 0.3.0, fixed 0.3.3 (semver)

Fixed versions

0.3.3

Fix

  • Fixed version 0.3.3
    cargo update -p phonenumber --precise 0.3.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences