CVE-2025-10954: Github.com/nyaruka/phonenumbers Github.com/nyaruka/phonenumbers Vulnerable To Improper Validation Vulnerability

MODERATE
Advisory Identifier: GHSA-fmjh-f678-cv3x
CVSS 5.3
CWE-1286
Published
Advisory Summary

CVE-2025-10954 is a MODERATE (CVSS 5.3) github.com/nyaruka/phonenumbers vulnerable to improper validation vulnerability (CWE-1286: Improper Validation of Syntactic Correctness of Input) affecting Github.com/nyaruka/phonenumbers libraries in the Go ecosystem. The issue involves github.com/nyaruka/phonenumbers vulnerable to improper validation of syntactic correctness of input. Remediation is available by upgrading affected packages to version 1.2.2.

CVE-2025-10954 at a Glance

CVE Identifier CVE-2025-10954
GHSA Identifier GHSA-fmjh-f678-cv3x
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-1286: Improper Validation of Syntactic Correctness of Input
Affected Product Github.com/nyaruka/phonenumbers
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2025-10954

To remediate this vulnerability, upgrade all affected Github.com/nyaruka/phonenumbers dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/nyaruka/phonenumbers fixed: 1.2.2
Upgrade github.com/nyaruka/phonenumbers to 1.2.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/nyaruka/phonenumbers

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-10954, inspect your project dependencies for Github.com/nyaruka/phonenumbers:

inspect dependencies for github.com/nyaruka/phonenumbers

Analyze the terminal output to locate any version of Github.com/nyaruka/phonenumbers in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1286: Improper Validation of Syntactic Correctness of Input, where the product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax. In Github.com/nyaruka/phonenumbers, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of the package github.com/nyaruka/phonenumbers before 1.2.2 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".

CVE-2025-10954 Affected Github.com/nyaruka/phonenumbers Versions

1 component(s)
Fixed Versions:
1.2.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/nyaruka/phonenumbers
Go
< 1.2.2
1.2.2

References

Frequently Asked Questions

What is CVE-2025-10954?
CVE-2025-10954 is a security vulnerability in Github.com/nyaruka/phonenumbers involving github.com/nyaruka/phonenumbers Vulnerable to Improper Validation of Syntactic Correctness of Input under CWE-1286: Improper Validation of Syntactic Correctness of Input.
Which Github.com/nyaruka/phonenumbers versions are affected?
Affected versions include releases prior to 1.2.2 across affected packages: github.com/nyaruka/phonenumbers.
What version fixes CVE-2025-10954?
Upgrading to 1.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/nyaruka/phonenumbers affected?
Yes, github.com/nyaruka/phonenumbers is affected in releases prior to 1.2.2. Upgrade your dependency to 1.2.2 or later.
What is the CVSS score of CVE-2025-10954?
CVE-2025-10954 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-10954?
CVE-2025-10954 is classified under CWE-1286: Improper Validation of Syntactic Correctness of Input (The product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax.).
How can I check Go dependencies for CVE-2025-10954?
Run the dependency tree command: 'inspect dependencies for github.com/nyaruka/phonenumbers'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fmjh-f678-cv3x",
  "modified" : "2025-09-29T16:29:27Z",
  "published" : "2025-09-27T06:30:52Z",
  "aliases" : [ "CVE-2025-10954" ],
  "summary" : "github.com/nyaruka/phonenumbers Vulnerable to Improper Validation of Syntactic Correctness of Input",
  "details" : "Versions of the package github.com/nyaruka/phonenumbers before 1.2.2 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\".",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nyaruka/phonenumbers"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-10954"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nyaruka/phonenumbers/issues/148"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nyaruka/phonenumbers/commit/0479e35488e8a002a261cdb515ef8a7f80ca37fe"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nyaruka/phonenumbers"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1286" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-29T16:29:27Z",
    "nvd_published_at" : "2025-09-27T05:15:29Z"
  }
}