Incorrect Type Conversion or Cast Affecting coturn package, versions <4.10.0-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.19% (41st 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-ALPINE323-COTURN-16344696
  • published2 May 2026
  • disclosed21 Apr 2026

Introduced: 21 Apr 2026

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

How to fix?

Upgrade Alpine:3.23 coturn to version 4.10.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream coturn package and not the coturn package as distributed by Alpine. See How to fix? for Alpine:3.23 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.