Visit the Wiz Whimzical Shop at AWS re:Invent
Vulnerability DatabaseGHSA-2vwr-58qv-f67x

GHSA-2vwr-58qv-f67x: 
Python vulnerability analysis and mitigation

Summary

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.

Details

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.

Proof of concept

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.

Impact

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.

Patches

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.

Workarounds

None. Upgrade to aiortc 1.17.2 or later.


Source: NVD

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2vwr-58qv-f67xMEDIUM6.5
  • Python logoPython
  • aiortc
NoYesDec 02, 2026
GHSA-hvx6-xjcv-pww2MEDIUM6.5
  • Python logoPython
  • pika
NoYesDec 02, 2026
CVE-2026-141556MEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 02, 2026
CVE-2026-141555MEDIUM4.7
  • Python logoPython
  • lxml-html-clean
NoYesDec 02, 2026
GHSA-xhqj-2fcc-8vf7LOW3.1
  • Python logoPython
  • ag2
NoYesDec 02, 2026

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

Additional Wiz resources

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