
Cloud Vulnerability DB
A community-led vulnerabilities database
In aiortc 1.17.1 and earlier, a WebRTC peer could make an RTCRtpSender retransmit thousands of RTP packets in response to a single RTCP NACK, using up the upload bandwidth and event loop time of the whole process.
A generic NACK lists lost packets as entries of a packet ID and a 16-bit bitmask, each entry naming up to 17 packets (RFC 4585 section 6.2.1). RTCRtpSender retransmitted every packet named in the NACK, once per mention, as long as it was still in its 128-packet history. Nothing limited how many times the same packet could be named, either in one NACK or across NACKs. RFC 4588 section 7 counts retransmissions towards the acceptable packet rate and bitrate of the stream, and aiortc applied no such limit.
The retransmissions were sent from the DTLS transport's receive path, on the asyncio event loop, so the loop could not handle packets of other connections until the whole NACK was handled. The NACK has to be authenticated by SRTCP, so it has to come from the peer of the DTLS association, and the retransmissions are sent back to that peer.
The reporter found the issue by reviewing the code. A 1200-byte generic NACK with 297 entries, each naming a recently sent packet with every bit of its bitmask set, made aiortc 1.17.1 send 5049 retransmissions. With typical 1200-byte video packets this is about 6 MB sent for each NACK received.
Network amplification of about 5000 to 1 from the peer to the aiortc process (CWE-406). The upload bandwidth and event loop time it uses up are shared by every connection of the process. The process recovers once the NACKs stop. Any peer which completes the DTLS handshake can trigger it, which in most applications means anyone able to start a WebRTC connection. Applications acting as a client are affected in the same way by a malicious remote peer.
Fixed in aiortc 1.17.2 (c5f80d93c8af71cbd35ea1383b6ac6b48767b0ab). Each RTP packet sent now allows one retransmission, up to the size of the retransmission history, and NACKs beyond that are ignored, so retransmissions can no longer outnumber the packets sent.
None. Upgrade to aiortc 1.17.2 or later.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."