CVE-2021-21382
Homebrew vulnerability analysis and mitigation

Overview

CVE-2021-21382 affects Restund, an open source NAT traversal server. The vulnerability was discovered in versions prior to 0.4.15 and patched in version 0.4.15. The issue allows attackers to relay traffic to loopback addresses, potentially exposing private services running on localhost (Wire Docs, GitHub Advisory).

Technical details

The vulnerability exists in the TURN server functionality where the server can be instructed to open a relay to the loopback address range. An attacker could contact the status interface and issue administrative commands by setting XOR-PEER-ADDRESS to 127.0.0.1:{{restundudpstatus_port}} when opening a TURN channel. The CVSS score is 9.6 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N) (NVD).

Impact

The vulnerability allows attackers to reach any service running on localhost which might be considered private. In the default configuration, the status interface of restund is enabled and listening on 127.0.0.1, allowing attackers to issue administrative commands to restund like listing open relays or draining connections (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in version 0.4.15 by explicitly disallowing relaying to loopback addresses, 'any' addresses, link local addresses, and the broadcast address. As workarounds, users can: 1) Disable the status module in restund configuration, 2) Disable the turn module (though restund will still perform STUN), 3) Set up firewall rules to prevent relaying to unwanted addresses. TURN servers should ideally be deployed in an isolated fashion where they can only reach what they need for NAT traversal (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-58360CRITICAL9.8
  • JavaJava
  • org.geoserver.web:gs-web-app
NoYesNov 25, 2025
CVE-2025-65085HIGH8.4
  • NixOSNixOS
  • cobalt
NoNoNov 25, 2025
CVE-2025-65084HIGH8.4
  • NixOSNixOS
  • argon
NoNoNov 25, 2025
CVE-2025-59789HIGH7.5
  • HomebrewHomebrew
  • brpc
NoYesDec 01, 2025
CVE-2025-64761HIGH7.5
  • WolfiWolfi
  • openbao
NoYesNov 25, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management