Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted STUN Binding-response via network
-
DeliveryEmbed zero-length XOR-MAPPED-ADDRESS attribute
-
ExploitLibrary calls GetFromAs on malformed value
-
ExecutionBounds check occurs too late, index panics
-
PersistGo runtime panic crashes process
-
ImpactDenial of service achieved
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | The vulnerable code path is triggered during parsing of STUN Binding responses, specifically when the XOR-MAPPED-ADDRESS attribute (type 0x0020) has a value shorter than the minimum expected length. The attacker must be able to deliver a malformed STUN Binding-response packet to any network listener that calls XORMappedAddress.GetFrom or XORMappedAddress.GetFromAs on untrusted input - typical in ICE connectivity checks in WebRTC, STUN relay servers, or any service performing STUN attribute parsing. The CVSS vector PR:N and AV:N confirm no authentication is required and no special configuration is needed beyond the application simply using the library for STUN parsing. Exploitation is limited to services actively parsing incoming STUN Binding-response messages; services that only send STUN requests and never parse responses from untrusted sources would not be reachable via this path. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N places this at maximum exploitability - any network-reachable host running software that uses pion/stun to parse STUN Binding responses is exposed without any authentication barrier. The NVD-assigned score of 5.3 (Medium) reflects A:L (partial availability), but this appears understated: an unrecovered Go panic terminates the entire process, which in practice is a complete availability loss for the affected service. The independent assessment here raises this to A:H. EPSS data is absent from the input, so probability-of-exploitation scoring cannot be confirmed. KEV status is not set and no standalone POC tool is known, though the patch's test case in xoraddr_test.go provides a precise byte-for-byte reproduction of the triggering packet, significantly lowering the barrier for exploit development. The v2 and v1 module lines (github.com/pion/stun/v2 and github.com/pion/stun) have no fix available, representing a permanently vulnerable surface for projects that cannot migrate to the v3 module. Risk is elevated for any internet-facing WebRTC or ICE service using these unpatched module paths. |
| Exploit ScenarioDerived | An attacker targeting a WebRTC signaling service or TURN/STUN relay built on pion/stun sends a single UDP or TCP packet crafted as a STUN Binding success response (type 0x0101) containing a zero-length XOR-MAPPED-ADDRESS attribute (0x0020, length 0x0000). When the application calls XORMappedAddress.GetFrom on this message, GetFromAs attempts to read value[1] on a zero-length slice, triggering an unrecovered Go runtime panic that crashes the process. The exact triggering packet structure is publicly disclosed in the test case added by PR #278, making reproduction trivial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 31, 2026
Panic-triggered remote denial of service in pion/stun (Go STUN library) versions through 3.1.4 (v3), 2.0.0 (v2), and 1.23.1 (v1) allows an unauthenticated network attacker to crash any application embedding this library by sending a single malformed STUN or ICE Binding-response packet containing a zero-length XOR-MAPPED-ADDRESS attribute. The root cause is a misplaced bounds check in XORMappedAddress.GetFromAs that attempts to index into the value slice before validating minimum length, causing an unrecovered Go runtime panic that terminates the process. No public exploit identified at time of analysis, though the patch PR and test case publicly detail the exact malformed packet structure.
RemediationAI
For projects using github.com/pion/stun/v3, upgrade to v3.1.5 or later as directed by the GHSA advisory (https://github.com/pion/stun/security/advisories/GHSA-34rh-wp3j-6cxc); the GHSA explicitly states v3.1.5 contains the fix via PR #278. Note that the CVE description references v3.1.3 as the fix but the GHSA package metadata marks v3.1.4 as still vulnerable - treat v3.1.5 as the authoritative minimum safe version until the discrepancy is resolved with the maintainer. For projects using github.com/pion/stun/v2 or the original github.com/pion/stun module, no fix has been released; the only remediation is migration to the v3 module line. No workaround is available per the GHSA advisory. As a compensating control for teams unable to upgrade immediately, placing a network-layer filter or rate limiter in front of STUN endpoints to drop packets with malformed attribute lengths can reduce exposure, though this requires protocol-aware inspection. The patch commit is fa9f074a33a8059c76c960b1fbee39f308002423.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pion/stun (CPE: cpe:2.3:a:pion:stun:*:*:*:*:*:*:*:*) is a widely used Go implementation of RFC 5389 STUN, commonly embedded in WebRTC and ICE stacks including the broader pion ecosystem. The XOR-MAPPED-ADDRESS attribute (type 0x0020) carries the reflexive transport address in STUN Binding responses; parsing is handled by XORMappedAddress.GetFromAs in xoraddr.go. CWE-20 (Improper Input Validation) is the root cause: the original code attempted to read value[1] (the address family byte) before the len(value) <= 4 guard, so a zero-length attribute payload causes an index-out-of-bounds Go panic. The patch (PR #278, commit fa9f074) moves that bounds check to the top of the function, before any slice indexing. Because Go panics propagate up the call stack and terminate the goroutine (and the whole process if uncaught), this is a hard crash rather than a graceful error return.
Know when Stun gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Network-reachable with no auth; single malformed packet causes unrecovered Go panic, terminating the process - complete availability loss, not partial.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
pion/stun is a Go implementation of STUN. Prior to 3.1.3, XORMappedAddress.GetFromAs can panic while parsing a malformed short XOR-MAPPED-ADDRESS attribute in STUN or ICE Binding-response parsing paths, allowing remote denial of service. This issue is fixed in version 3.1.3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Same weakness CWE-20 – Improper Input Validation
View allSame technique Denial Of Service
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
EUVD-2026-51666
GHSA-34rh-wp3j-6cxc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB