ADVISORIES

Go Vulnerability Database

GO-2026-6163

Panic on malformed XOR-MAPPED-ADDRESS attribute in github.com/pion/stun/v3

Details

In github.com/pion/stun/v3 before 3.1.5, XORMappedAddress.GetFromAs reads the address family header from an XOR-MAPPED-ADDRESS attribute before validating the attribute length. Parsing a malformed STUN message carrying a zero-length XOR-MAPPED-ADDRESS attribute from a tightly sized buffer causes a slice bounds out of range panic, resulting in a denial of service.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/pion/stun/v3
All versions before 3.1.5 (fixed in 3.1.5)

References