VDB

SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070

SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070 PUBLISHED CVSS 6.900000095367432 MEDIUM

## Overview Affected versions of this package are vulnerable to Improper Validation of Syntactic Correctness of Input in the `phonenumbers.Parse()` function. An attacker can cause a panic by providing crafted input causing a "runtime error: slice bounds out of range". ## PoC ```go import ( "fmt" "github.com/nyaruka/phonenumbers" ) func main() { crash := "0;phone-context=+00000;" num, err := phonenumbers.Parse(crash, "US") if err != nil { fmt.Println(err) } fmt.Println(num) } ``` ## Details Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users. Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime. One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines. When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries. Two common types of DoS vulnerabilities: * High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, [commons-fileupload:commons-fileupload](https://security.snyk.io/vuln/SNYK-JAVA-COMMONSFILEUPLOAD-30082). * Crash - An attacker sending crafted requests that could cause the system to crash. For Example, [npm `ws` package](https://snyk.io/vuln/npm:ws:20171108) ## Remediation Upgrade `github.com/nyaruka/phonenumbers` to version 1.2.2 or higher. ## References - [GitHub Commit](https://github.com/nyaruka/phonenumbers/commit/0479e35488e8a002a261cdb515ef8a7f80ca37fe) - [GitHub Issue](https://github.com/nyaruka/phonenumbers/issues/148)

Risk Scores

CVSS 3.1
6.900000095367432
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P

Affected Products

VendorProductVersions
0, 0

Timeline

  • Nov 23, 2023 CVE Updated
  • Sep 26, 2025 CVE Published
Open in Interactive Console →
$ Console Community · 100/wk Open console ›