CVE-2025-69217

Source
https://cve.org/CVERecord?id=CVE-2025-69217
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-69217.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-69217
Aliases
  • GHSA-fvj6-9jhg-9j84
Downstream
Published
2025-12-30T00:41:18.792Z
Modified
2026-01-03T05:44:50.807929Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H CVSS Calculator
Summary
Coturn has unsafe nonce and relay port randomization due to weak random number generation.
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-338"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/69xxx/CVE-2025-69217.json"
}
References

Affected packages

Git / github.com/coturn/coturn

Affected ranges

Type
GIT
Repo
https://github.com/coturn/coturn
Events

Affected versions

docker/4.*
docker/4.6.2-r5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-69217.json"
vanir_signatures
[
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/coturn/coturn/commit/88ced471385869d7e7fbbc4766e78ef521b36af6",
        "digest": {
            "line_hashes": [
                "124562052418420888273531982775292552718",
                "295400061807953491963515747255077448092",
                "315526809118164184311428419309590872811"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-69217-aca2fa22",
        "deprecated": false,
        "target": {
            "file": "src/apps/common/apputils.c"
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/coturn/coturn/commit/88ced471385869d7e7fbbc4766e78ef521b36af6",
        "digest": {
            "line_hashes": [
                "171168467351387330034862871571840790855",
                "234293457968104866971047287507401899792",
                "83309533431716281004534515185526810120",
                "338937642917069689562483624553428822244"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-69217-cd26beb1",
        "deprecated": false,
        "target": {
            "file": "src/apps/common/apputils.h"
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/coturn/coturn/commit/88ced471385869d7e7fbbc4766e78ef521b36af6",
        "digest": {
            "line_hashes": [
                "336081140188136859565830823105347541871",
                "306081338385208892449308502081286907798",
                "79347713568250576621131741683341929890",
                "40442301216843665869506273905242065809",
                "254620906810336504689604429224446783688",
                "68269438216846796205634393727853113847",
                "165784601807992691691066019188262819321",
                "289853299660589367914647309890780530303",
                "196360899207579120872126949430182346016",
                "139528864009996402087312097028221071403",
                "332809219518469564621985914804222800144",
                "321873281657054203134782490752857048310",
                "301428455994323779934666875087306203816",
                "334926946518697225392136245709138138787",
                "296598193358587958462784296136237251210",
                "317780756060313052059029753211645415451"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-69217-ea55fe2d",
        "deprecated": false,
        "target": {
            "file": "src/client/ns_turn_msg.c"
        }
    }
]