Incorrect Type Conversion or Cast Affecting coturn package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
1.12% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-COTURN-18496007
  • published1 Aug 2026
  • disclosed21 Apr 2026

Introduced: 21 Apr 2026

CVE-2026-40613  (opens in a new tab)
CWE-704  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest coturn.

NVD Description

Note: Versions mentioned in the description apply only to the upstream coturn package and not the coturn package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.