CVE-2022-29189: Pion/DTLS contains buffer for inbound DTLS fragments with no limit
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.746%
CWE
Published
5/24/2022
Updated
8/29/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/pion/dtls | go | < 2.1.4 | 2.1.4 |
| github.com/pion/dtls/v2 | go | < 2.1.4 | 2.1.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from uncontrolled buffering of inbound DTLS fragments. The commit a6397ff added critical size checks to fragmentBuffer.push() and introduced fragmentBuffer.size(), indicating this was the vulnerable area. The CWE-120 classification matches unbounded buffer growth in network input handling. The patch specifically modifies the push method to enforce a 2MB limit, confirming this function's role in the vulnerability. The associated test in fragment_buffer_test.go validates the overflow protection, further confirming the function's central role.