RUSTSEC-2024-0369

Source
https://rustsec.org/advisories/RUSTSEC-2024-0369
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0369.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2024-0369
Aliases
Published
2024-07-07T12:00:00Z
Modified
2024-09-05T13:57:23.822708Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H CVSS Calculator
Summary
phonenumber: panic on parsing crafted phonenumber inputs
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / phonenumber

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.3.3
Fixed
0.3.6

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "phonenumber::parse"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H",
    "informational": null,
    "categories": [
        "denial-of-service"
    ]
}