Cyber Resilience

CVE-2021-21382

HighPublic PoC

Published: 11 June 2021

Published
11 June 2021
Modified
21 November 2024
KEV Added
Patch
CVSS Score v3.1 8.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS Score 0.0046 64.3th percentile
Risk Priority 17 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2021-21382 is a high-severity Exposure of Resource to Wrong Sphere (CWE-668) vulnerability in Wire Restund. Its CVSS base score is 8.6 (High).

Operationally, ranked in the top 35.7% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

EU & UK References

Vulnerability details

Restund is an open source NAT traversal server. The restund TURN server can be instructed to open a relay to the loopback address range. This allows you to reach any other service running on localhost which you might consider private.…

more

In the configuration that we ship (https://github.com/wireapp/ansible-restund/blob/master/templates/restund.conf.j2#L40-L43) the `status` interface of restund is enabled and is listening on `127.0.0.1`.The `status` interface allows users to issue administrative commands to `restund` like listing open relays or draining connections. It would be possible for an attacker to contact the status interface and issue administrative commands by setting `XOR-PEER-ADDRESS` to `127.0.0.1:{{restund_udp_status_port}}` when opening a TURN channel. We now explicitly disallow relaying to loopback addresses, 'any' addresses, link local addresses, and the broadcast address. As a workaround disable the `status` module in your restund configuration. However there might still be other services running on `127.0.0.0/8` that you do not want to have exposed. The `turn` module can be disabled. Restund will still perform STUN and this might already be enough for initiating calls in your environments. TURN is only used as a last resort when other NAT traversal options do not work. One should also make sure that the TURN server is set up with firewall rules so that it cannot relay to other addresses that you don't want the TURN server to relay to. For example other services in the same VPC where the TURN server is running. Ideally TURN servers should be deployed in an isolated fashion where they can only reach what they need to reach to perform their task of assisting NAT-traversal.

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

wire
restund
≤ 0.4.15

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-862 CWE-668

Mandates authorization checks before permitting access or data processing via external systems.

addresses: CWE-862 CWE-668

The control provides a mechanism for authorized users to determine authorization matches, preventing sharing without proper authorization verification.

addresses: CWE-668 CWE-862

Restricts information flows to ensure resources are not exposed to incorrect or unauthorized spheres.

addresses: CWE-862 CWE-668

Requiring explicit authorization for each internal connection prevents missing authorization.

addresses: CWE-668 CWE-862

Asset tracking reveals resources that have inadvertently entered an unintended security sphere, permitting corrective isolation.

addresses: CWE-668 CWE-862

Enforces separation so resources are not placed in a public sphere without explicit protection.

addresses: CWE-668 CWE-862

The control ensures resources are not exposed outside their intended security domain by filtering transfers at the domain boundary.

addresses: CWE-668 CWE-862

Internal resources are kept in separate network spheres from externally accessible components.

References