Skip to content

phonenumber panics on parsing crafted RFC3966 inputs

High severity GitHub Reviewed Published Sep 19, 2023 in whisperfish/rust-phonenumber • Updated Nov 10, 2023

Package

cargo phonenumber (Rust)

Affected versions

< 0.2.5
>= 0.3.0, < 0.3.3

Patched versions

0.2.5
0.3.3

Description

Impact

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 over the network, specifically the string .;phone-context=.

Patches

Patches will be published as version 0.3.3+8.13.9 and backported as 0.2.5+8.11.3.

Workarounds

n.a.

References

n.a.

References

@rubdos rubdos published to whisperfish/rust-phonenumber Sep 19, 2023
Published by the National Vulnerability Database Sep 19, 2023
Published to the GitHub Advisory Database Sep 21, 2023
Reviewed Sep 21, 2023
Last updated Nov 10, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2023-42444

GHSA ID

GHSA-whhr-7f2w-qqj2

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.