CVE-2026-43994: Coturn: Stack buffer overflow in decode_oauth_token_gcm()
Coturn is a free open source implementation of TURN and STUN Server. Versions prior to 4.10.0 contain a stack buffer overflow in decodeoauthtokengcm(). A uint16t noncelen field read from an attacker-supplied OAuth access token (0-65535) is passed directly to memcpy() as the copy length into a 256-byte stack buffer (oauthencryptedblock.nonce[256]) without bounds checking. The overflow occurs before AES-GCM authentication is verified, the attacker does not need to know the OAuth key or produce a valid AES-GCM token. Up to 735 bytes of attacker-controlled data are written past the buffer, may corrupt adjacent stack data, including control-flow data depending on compiler, ABI, and mitigations. Requires --oauth mode (non-default). This may provide a plausible RCE primitive depending on exploit mitigations; because coturn is widely deployed for WebRTC TURN/STUN and --oauth is commonly recommended, impact can be broad. This issue has been fixed in version 4.10.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
coturnto a version that resolves this vulnerability.Fixed in 4.10.0 - Configuration
If not required, run coturn without the --oauth mode to avoid the vulnerable code path (decode_oauth_token_gcm()).
coturn --oauth mode = disable - Compensating control
If --oauth must be used, restrict access to coturn’s authentication/oauth processing endpoints so only trusted clients/networks can submit OAuth access tokens.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-43994?
The severity of CVE-2026-43994 is rated as high with a score of 8.1.
What is affected by CVE-2026-43994?
CVE-2026-43994 affects Coturn versions prior to 4.10.0.
How do I fix CVE-2026-43994?
To fix CVE-2026-43994, upgrade to Coturn version 4.10.0 or later.
What kind of vulnerability is CVE-2026-43994?
CVE-2026-43994 is a stack buffer overflow vulnerability in the decode_oauth_token_gcm() function.
How can CVE-2026-43994 be exploited?
CVE-2026-43994 can be exploited by supplying an attacker-controlled OAuth access token that leads to a buffer overflow.