VDB
Sign up
MEDIUM5.3

GHSA-fmjh-f678-cv3x

github.com/nyaruka/phonenumbers Vulnerable to Improper Validation of Syntactic Correctness of Input

Quick fix

GHSA-fmjh-f678-cv3x — github.com/nyaruka/phonenumbers: upgrade to the fixed version with the command below.

go get github.com/nyaruka/phonenumbers@v1.2.2

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

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/nyaruka/phonenumbers
Introduced in: 0Fixed in: 1.2.2
Fixgo get github.com/nyaruka/phonenumbers@v1.2.2

References