CVE-2025-69217 Details
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.
A vulnerability exists in Coturn versions 4.6.2r5 prior to 4.7.0-r4, due to a weak random number generator for nonces and port randomization. This issue arose after a refactoring that changed the source of random number generation from OpenSSL's secure RAND_bytes to libc's random(), which is a reversible Linear Congruential Generator (LCG) and unsafe for cryptographic purposes. The vulnerability allows an attacker to predict nonces and relay ports, potentially spoofing IP addresses and manipulating TURN server behaviors, especially in IoT contexts where credentials may be known.
Users can update to Coturn version 4.7.0-r4, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 30, 2025CISA-ADP
Assessed Dec 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/coturn/coturn/commit/11fc465f4bba70bb0ad8aae17d6c4a63a29917d9 | [email protected] | Source CodeVendor |
| https://github.com/coturn/coturn/commit/88ced471385869d7e7fbbc4766e78ef521b36af6 | [email protected] | Source CodeVendor |
| https://github.com/coturn/coturn/security/advisories/GHSA-fvj6-9jhg-9j84 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| coturn | >= 4.6.2r5, <= 4.7.0-r4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 30, 2025 | New CVE Received | [email protected] |
Volerion