Skip to content

Commit

Permalink
rust-phonenumber: panic-on-parse (#2009)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos authored Sep 5, 2024
1 parent 341f80f commit a9c7f51
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions crates/phonenumber/RUSTSEC-0000-0000.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"

package = "phonenumber"
date = "2024-07-07"
url = "https://github.com/whisperfish/rust-phonenumber/security/advisories/GHSA-mjw4-jj88-v687"
references = ["https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39697"]
categories = ["denial-of-service"]
cvss = "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
keywords = ["panic", "untrusted input", "parsing"]
aliases = ["CVE-2024-39697", "GHSA-mjw4-jj88-v687"]

[affected]
functions = { "phonenumber::parse" = ["*"] }

[versions]
patched = [">=0.3.6"]
unaffected = ["< 0.3.3"]
```

# phonenumber: panic on parsing crafted phonenumber inputs

### 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`.

0 comments on commit a9c7f51

Please sign in to comment.