-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust-phonenumber: panic-on-parse (#2009)
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |