Skip to main content
← All vulnerabilities
CVE-2024-39697RUSTSEC-2024-0369GHSA-MJW4-JJ88-V687

phonenumber panics on parsing crafted phonenumber inputs

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • whisperfish rust-phonenumber

    From 0.3.4 · fixed in 0.3.6

  • phonenumbercrates.io

    From 0.3.3 · fixed in 0.3.6

  • phonenumbercrates.io

    From 0.3.4 · fixed in 0.3.6

References 5

GitHub · whisperfish/rust-phonenumber