Vulnerability · Published Dec 30, 2025 · Assigned by GitHub_M

CVE-2025-69217Coturn has unsafe nonce and relay port randomization due to weak random number generation.

High 7.7

In plain English

A high-severity security flaw in coturn from coturn. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities).

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)0.4%top 64.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Ubuntu:22.04:LTScoturnno fix listedUBUNTU-CVE-2025-69217
Ubuntu:24.04:LTScoturnno fix listedUBUNTU-CVE-2025-69217
Ubuntu:25.10coturnno fix listedUBUNTU-CVE-2025-69217
Ubuntu:26.04:LTScoturnno fix listedUBUNTU-CVE-2025-69217
Ubuntu:26.10coturnno fix listedUBUNTU-CVE-2025-69217

Affected products (as reported)

VendorProductVersions
coturn coturn >= 4.6.2r5, <= 4.7.0-r4

Weakness: CWE-338 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H

References