Advisory

RUSTSEC-2023-0082

Also known as: CVE-2023-42444, GHSA-whhr-7f2w-qqj2

Summary

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.

Severity

High Basis: CVSS v3 score 8.6, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H

Dates

Published
2023-09-19 12:00 UTC
Modified
2026-10-13 15:15 UTC

Affected packages and fixes

phonenumber

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.2.5, introduced 0.3.0, fixed 0.3.3 (semver)

Fixed versions

0.2.5, 0.3.3

Fix

  • Fixed version 0.2.5
    cargo update -p phonenumber --precise 0.2.5
  • 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: RustSec Advisory Database · CC0-1.0

Sources & licences