Email me

Rust advisories / phonenumber

Vulnerability HighRUSTSEC-2024-0369 · phonenumber

RUSTSEC-2024-0369: phonenumber: panic on parsing crafted phonenumber inputs

Short answerA security vulnerability in the phonenumber crate: phonenumber: panic on parsing crafted phonenumber inputs. High severity (CVSS 8.6). Fixed in 0.3.6: update to a fixed version.

Cratephonenumber
TypeVulnerability (denial-of-service)
Affected versionsFrom 0.3.3 before 0.3.6.
Fixed in0.3.6
SeverityHigh, CVSS 8.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
Published2024-07-07
Last changed2026-10-13
Also known asCVE-2024-39697, GHSA-mjw4-jj88-v687
Affected functionsphonenumber::parse

What to do

  1. See which version you have: cargo tree -i phonenumber (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p phonenumber. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example phonenumber = "0.3.6") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

Impact

The phonenumber parsing code may panic due to a reachable assert! guard 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.

Since f69abee1/0.3.4/#52.

0.2.x series is not affected.

Patches

Patches have been published as version 0.3.6+8.13.36.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for phonenumber

Full security history of phonenumber

Up next

Same cratephonenumber: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ