CVE-2025-10954: Improper Validation of Syntactic Correctness of Input in github.com/nyaruka/phonenumbers
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".
AI Analysis
Technical Summary
CVE-2025-10954 is a medium-severity vulnerability affecting versions of the Go package github.com/nyaruka/phonenumbers prior to 1.2.2. The vulnerability arises from improper validation of the syntactic correctness of input in the phonenumbers.Parse() function. Specifically, when the function processes crafted input, it can trigger a runtime panic due to a "slice bounds out of range" error. This indicates that the function does not adequately check input boundaries before accessing slices, leading to a runtime exception. The vulnerability is classified under CWE-1286, which relates to improper validation of input that can cause unexpected behavior or crashes. The CVSS 4.0 base score is 6.9, reflecting a medium severity level, with the vector indicating network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), and limited impact on availability (VA:L), with no impact on confidentiality or integrity. Exploitation does not require authentication or user interaction, and the vulnerability can be triggered remotely by sending crafted input to the vulnerable function. Although no known exploits are currently reported in the wild, the vulnerability could be leveraged to cause denial-of-service conditions in applications relying on this library for phone number parsing, potentially disrupting services that depend on phone number validation or processing. Since the package is a widely used library for phone number parsing in Go applications, any software or service that integrates this package and uses vulnerable versions is at risk of unexpected crashes or service interruptions when processing maliciously crafted phone number inputs.
Potential Impact
For European organizations, the impact of this vulnerability primarily involves potential denial-of-service (DoS) conditions in applications that use the vulnerable phonenumbers package. This could affect telecommunications companies, customer relationship management (CRM) systems, financial services, and any enterprise software that validates or processes phone numbers using this library. Disruptions could lead to degraded service availability, impacting customer experience and operational continuity. While the vulnerability does not directly compromise confidentiality or integrity, repeated or targeted exploitation could cause system instability or outages, which may have regulatory and reputational consequences under European data protection and operational resilience frameworks such as GDPR and NIS Directive. Organizations relying on automated phone number validation in critical workflows may face operational delays or failures, especially if input validation is not supplemented by additional safeguards. The lack of required authentication or user interaction for exploitation increases the risk surface, as attackers can remotely trigger the vulnerability without prior access or user involvement.
Mitigation Recommendations
European organizations should promptly update the github.com/nyaruka/phonenumbers package to version 1.2.2 or later, where this vulnerability has been addressed. If immediate upgrading is not feasible, implement input validation controls at the application level to sanitize and verify phone number inputs before passing them to the phonenumbers.Parse() function, ensuring inputs conform to expected formats and length constraints. Employ runtime monitoring and error handling to gracefully manage unexpected panics or exceptions arising from input parsing. Incorporate fuzz testing and static code analysis in the development lifecycle to detect similar input validation issues proactively. Additionally, deploy Web Application Firewalls (WAFs) or input filtering mechanisms to detect and block suspicious or malformed phone number inputs at network boundaries. Maintain an inventory of all internal and third-party applications using this package to ensure comprehensive patching. Finally, establish incident response procedures to quickly identify and mitigate any exploitation attempts causing service disruptions.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Sweden
CVE-2025-10954: Improper Validation of Syntactic Correctness of Input in github.com/nyaruka/phonenumbers
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".
AI-Powered Analysis
Technical Analysis
CVE-2025-10954 is a medium-severity vulnerability affecting versions of the Go package github.com/nyaruka/phonenumbers prior to 1.2.2. The vulnerability arises from improper validation of the syntactic correctness of input in the phonenumbers.Parse() function. Specifically, when the function processes crafted input, it can trigger a runtime panic due to a "slice bounds out of range" error. This indicates that the function does not adequately check input boundaries before accessing slices, leading to a runtime exception. The vulnerability is classified under CWE-1286, which relates to improper validation of input that can cause unexpected behavior or crashes. The CVSS 4.0 base score is 6.9, reflecting a medium severity level, with the vector indicating network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), and limited impact on availability (VA:L), with no impact on confidentiality or integrity. Exploitation does not require authentication or user interaction, and the vulnerability can be triggered remotely by sending crafted input to the vulnerable function. Although no known exploits are currently reported in the wild, the vulnerability could be leveraged to cause denial-of-service conditions in applications relying on this library for phone number parsing, potentially disrupting services that depend on phone number validation or processing. Since the package is a widely used library for phone number parsing in Go applications, any software or service that integrates this package and uses vulnerable versions is at risk of unexpected crashes or service interruptions when processing maliciously crafted phone number inputs.
Potential Impact
For European organizations, the impact of this vulnerability primarily involves potential denial-of-service (DoS) conditions in applications that use the vulnerable phonenumbers package. This could affect telecommunications companies, customer relationship management (CRM) systems, financial services, and any enterprise software that validates or processes phone numbers using this library. Disruptions could lead to degraded service availability, impacting customer experience and operational continuity. While the vulnerability does not directly compromise confidentiality or integrity, repeated or targeted exploitation could cause system instability or outages, which may have regulatory and reputational consequences under European data protection and operational resilience frameworks such as GDPR and NIS Directive. Organizations relying on automated phone number validation in critical workflows may face operational delays or failures, especially if input validation is not supplemented by additional safeguards. The lack of required authentication or user interaction for exploitation increases the risk surface, as attackers can remotely trigger the vulnerability without prior access or user involvement.
Mitigation Recommendations
European organizations should promptly update the github.com/nyaruka/phonenumbers package to version 1.2.2 or later, where this vulnerability has been addressed. If immediate upgrading is not feasible, implement input validation controls at the application level to sanitize and verify phone number inputs before passing them to the phonenumbers.Parse() function, ensuring inputs conform to expected formats and length constraints. Employ runtime monitoring and error handling to gracefully manage unexpected panics or exceptions arising from input parsing. Incorporate fuzz testing and static code analysis in the development lifecycle to detect similar input validation issues proactively. Additionally, deploy Web Application Firewalls (WAFs) or input filtering mechanisms to detect and block suspicious or malformed phone number inputs at network boundaries. Maintain an inventory of all internal and third-party applications using this package to ensure comprehensive patching. Finally, establish incident response procedures to quickly identify and mitigate any exploitation attempts causing service disruptions.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- snyk
- Date Reserved
- 2025-09-25T07:30:18.158Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 68d87cd25d6228f86ddc92b6
Added to database: 9/28/2025, 12:09:54 AM
Last enriched: 10/5/2025, 1:00:46 AM
Last updated: 11/10/2025, 12:49:11 PM
Views: 85
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-12938: SQL Injection in projectworlds Online Admission System
MediumNearly 30 Alleged Victims of Oracle EBS Hack Named on Cl0p Ransomware Site
MediumAustralia Sanctions Hackers Supporting North Korea’s Weapons Program
MediumCVE-2025-12405: CWE-269: Improper Privilege Management in Google Cloud Looker Studio
HighCVE-2025-41107: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in QDOCS Smart Schoo
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.