High severity · published Dec 30, 2025
CVE-2025-69217
Coturn has unsafe nonce and relay port randomization due to weak random number generation.
7.7
CVSS
0.4%
EPSS
No
On KEV
Description
coturn is a free open source implementation of TURN and STUN Server. Versions 4.6.2r5 through 4.7.0-r4 have a bad random number generator for nonces and port randomization after refactoring. Additionally, random numbers aren't generated with openssl's RAND_bytes but libc's random() (if it's not running on Windows). When fetching about 50 sequential nonces (i.e., through sending 50 unauthenticated allocations requests) it is possible to completely reconstruct the current state of the random number generator, thereby predicting the next nonce. This allows authentication while spoofing IPs. An attacker can send authenticated messages without ever receiving the responses, including the nonce (requires knowledge of the credentials, which is e.g., often the case in IoT settings). Since the port randomization is deterministic given the pseudorandom seed, an attacker can exactly reconstruct the ports and, hence predict the randomization of the ports. If an attacker allocates a relay port, they know the current port, and they are able to predict the next relay port (at least if it is not used before). Commit 11fc465f4bba70bb0ad8aae17d6c4a63a29917d9 contains a fix.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 35% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
coturn · coturn
>= 4.6.2r5, <= 4.7.0-r4 · source: vendor
Affected product
CO
coturn
coturn
More from coturn
9.8
CVE-2026-43994
Coturn: Stack buffer overflow in decode_oauth_token_gcm()
8.2
CVE-2026-73214
coturn allocates a full per-peer SSL/session before verifying the DTLS cookie, enabling source-spoofing/botnet state-exhaustion DoS
8.2
CVE-2026-62959
Coturn: Pre-authentication heap memory disclosure in ACME redirect (`try_acme_redirect`)
7.5
CVE-2026-40613
Coturn: Misaligned Memory Access in coturn STUN Attribute Parser (Remote DoS on ARM64)
7.4
CVE-2026-53450
Coturn: IPv4-mapped 127.0.0.1 bypasses default loopback peer protection