VDB

SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070

SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070 PUBLISHED CVSS 6.900000095367432 MEDIUM

Record from snyk · Published September 26, 2025

github.com/nyaruka/phonenumbers is fixed in 1.2.2 (Go Modules)

## 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)

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/nyaruka/phonenumbersGo Modules1.2.2

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

Timeline

  • Nov 23, 2023 CVE Updated
  • Sep 26, 2025 CVE Published

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070
vulnetix vdb fixes SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›