# CVE-2025-10954: github.com/nyaruka/phonenumbers Vulnerable to Improper Validation of Syntactic Correctness of Input

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; Exploit maturity: Proof of concept
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.83% (percentile 55, 2026-11-26)
- **CWE:** CWE-1286
- **Aliases:** GHSA-fmjh-f678-cv3x, GO-2025-3987
- **Published:** 2025-09-27T05:00:00.966Z
- **Modified:** 2026-10-19T16:10:00.260Z

## Who should check

- Projects that depend on Go package github.com/nyaruka/phonenumbers (\< 1.2.2)
- Anyone running github.com/nyaruka/phonenumbers \< 1.2.2

## Description

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".

## Affected and fixed versions

- Go `github.com/nyaruka/phonenumbers`: affected \< 1.2.2; fixed 1.2.2 (osv)
- github.com/nyaruka/phonenumbers: \< 1.2.2 (cvelist)

## Mitigation

- Upgrade github.com/nyaruka/phonenumbers to 1.2.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-10954. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-10954.md
Affected: github.com/nyaruka/phonenumbers < 1.2.2
Fixed in: 1.2.2

Steps:
1. Search this machine and project for github.com/nyaruka/phonenumbers (Go), github.com/nyaruka/phonenumbers: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-10954 being exploited?

There is no confirmed exploitation: CVE-2025-10954 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.83% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-10954?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-10954?

github.com/nyaruka/phonenumbers \< 1.2.2.

### Is there a fix for CVE-2025-10954?

Yes. Fixed in 1.2.2. Upgrade github.com/nyaruka/phonenumbers to 1.2.2 or later.

### How do I check if I'm affected by CVE-2025-10954?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-10954>
- vendor: <https://github.com/advisories/GHSA-fmjh-f678-cv3x>
- patch: <https://github.com/nyaruka/phonenumbers/commit/0479e35488e8a002a261cdb515ef8a7f80ca37fe>
- exploit: <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMNYARUKAPHONENUMBERS-6084070>
- exploit: <https://github.com/nyaruka/phonenumbers/issues/148>
- other: <https://github.com/nyaruka/phonenumbers>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-10954>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-fmjh-f678-cv3x> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-3987> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-10954> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-10954>
