CVE Intelligence

Vulnerabilidades do Coturn Coturn

🔔 Criar alerta RSS Verificador de versão

CVEs publicadas que afetam Coturn Coturn: 6 registro(s), com versões afetadas e correções.

CVE-2026-104074 Média · 5.3 CWE-908 07/10/2026
Coturn 4.10.0 Uninitialized Stack Memory Disclosure via ERROR-CODE
Coturn 4.10.0 contains an uninitialized memory disclosure vulnerability that allows remote unauthenticated attackers to leak stack memory contents by sending a TURN Allocate request without credentials. Attackers can exploit the stun_init_error_response_common_str() function in src/client/ns_turn_msg.c, which fails to zero-initialize the avalue buffer before computing its length with strlen() and copying leaked stack bytes into the ERROR-CODE reason phrase, exposing pointer fragments that weaken ASLR and enable precise version fingerprinting.
CVE-2026-43994 Crítica · 9.8 CWE-120 18/06/2026
Estouro de buffer na pilha em tokens OAuth do Coturn em decode_oauth_token_gcm() (CVE-2026-43994)
Coturn é uma implementação livre e de código aberto de servidor TURN e STUN. Versões anteriores à 4.10.0 contêm um estouro de buffer na pilha em decode_oauth_token_gcm(). Um campo uint16_t nonce_len lido de um token de acesso OAuth fornecido pelo atacante (0-65535) é passado diretamente ao memcpy() como tamanho da cópia para um buffer de pilha de 256 bytes (oauth_encrypted_block.nonce[256]) sem verificação de limites. O estouro ocorre antes de a autenticação AES-GCM ser verificada; o atacante não precisa conhecer a chave OAuth nem produzir um token AES-GCM válido. Até 735 bytes de dados controlados pelo atacante são gravados além do buffer, podendo corromper dados adjacentes da pilha, incluindo dados de fluxo de controle, dependendo do compilador, da ABI e das mitigações. Requer o modo --oauth (não padrão). Isso pode fornecer uma primitiva plausível de RCE, dependendo das mitigações contra exploração; como o coturn é amplamente implantado para TURN/STUN em WebRTC e o --oauth é comumente recomendado, o impacto pode ser amplo. Este problema foi corrigido na versão 4.10.0.
CVE-2026-43915 Média · 5.4 CWE-79 18/06/2026
Coturn: Stored Cross-Site Scripting (XSS) in web-admin interface via TURN username
Coturn is a free open source implementation of TURN and STUN Server. Versions prior to 4.11.0 contain a stored cross-site scripting (XSS) vulnerability in the web-admin HTTPS interface. An attacker who can create a TURN allocation with a crafted USERNAME value can inject HTML/JavaScript that executes when an authenticated web-admin user views the TURN session list. In configurations using anonymous TURN access (--no-auth), this may be exploitable without TURN credentials. In authenticated deployments, exploitation requires valid TURN credentials or control over a provisioned username. This issue has been fixed in version 4.11.0.
CVE-2026-40613 Alta · 7.5 CWE-704 21/04/2026
Coturn: Misaligned Memory Access in coturn STUN Attribute Parser (Remote DoS on ARM64)
Coturn is a free open source implementation of TURN and STUN Server. Prior to 4.10.0, the STUN/TURN attribute parsing functions in coturn perform unsafe pointer casts from uint8_t * to uint16_t * without alignment checks. When processing a crafted STUN message with odd-aligned attribute boundaries, this results in misaligned memory reads at ns_turn_msg.c. On ARM64 architectures (AArch64) with strict alignment enforcement, this causes a SIGBUS signal that immediately kills the turnserver process. An unauthenticated remote attacker can crash any ARM64 coturn deployment by sending a single crafted UDP packet. This vulnerability is fixed in 4.10.0.
CVE-2026-27624 Média · 6.5 CWE-284 25/02/2026
Coturn: IPv4-mapped IPv6 (::ffff:0:0/96) bypasses denied-peer-ip ACL
Coturn is a free open source implementation of TURN and STUN Server. Coturn is commonly configured to block loopback and internal ranges using "denied-peer-ip" and/or default loopback restrictions. CVE-2020-26262 addressed bypasses involving "0.0.0.0", "[::1]" and "[::]", but IPv4-mapped IPv6 is not covered. When sending a "CreatePermission" or "ChannelBind" request with the "XOR-PEER-ADDRESS" value of "::ffff:127.0.0.1", a successful response is received, even though "127.0.0.0/8" is blocked via "denied-peer-ip". The root cause is that, prior to the updated fix implemented in version 4.9.0, three functions in "src/client/ns_turn_ioaddr.c" do not check "IN6_IS_ADDR_V4MAPPED". "ioa_addr_is_loopback()" checks "127.x.x.x" (AF_INET) and "::1" (AF_INET6), but not "::ffff:127.0.0.1." "ioa_addr_is_zero()" checks "0.0.0.0" and "::", but not "::ffff:0.0.0.0." "addr_less_eq()" used by "ioa_addr_in_range()" for "denied-peer-ip" matching: when the range is AF_INET and the peer is AF_INET6, the comparison returns 0 without extracting the embedded IPv4. Version 4.9.0 contains an updated fix to address the bypass of the fix for CVE-2020-26262.
CVE-2025-69217 Alta · 7.7 CWE-338 29/12/2025
Coturn has unsafe nonce and relay port randomization due to weak random number generation.
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.