Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2GHSA-4xgv-j62q-h3rj
MEDIUMFix: pion/dtls@a50d26cGHSA-4xgv-j62q-h3rj is a medium-severity (CVSS 5.9) vulnerability in github.com/pion/dtls. A fix is available for github.com/pion/dtls — see the affected versions and patch details below.
Real-World Exposure
github.com/pion/dtls🐹github.com/pion/dtls/v2Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Impact
During the unmarshalling of a hello verify request we could try to unmarshal into too small a buffer. is could result in a panic leading the program to crash.
This issue could be abused to cause a denial of service.
Workaround
None, upgrade to 2.2.4
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/pion/dtls | all versions | No fix |
| 🐹Go | github.com/pion/dtls/v2 | all versions | 2.2.4go get github.com/pion/dtls/v2@v2.2.4 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/pion/dtls, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
A fix is available for GHSA-4xgv-j62q-h3rj; check the affected-versions list above or the advisory for the patched release of github.com/pion/dtls, then make sure no transitive dependency still pins the vulnerable range.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is GHSA-4xgv-j62q-h3rj in your dependencies?
Find it across Go, including transitive dependencies.