Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2GHSA-hxp2-xqf3-v83h
MEDIUMFix: pion/dtls@7a14903GHSA-hxp2-xqf3-v83h 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
When attempting to unmarshal a Server Hello request we could attempt to unmarshal into a buffer that was too small. This could result in a panic leading the program to crash.
This issue could be abused to cause a denial of service.
Workaround
None
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-hxp2-xqf3-v83h; 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-hxp2-xqf3-v83h in your dependencies?
Find it across Go, including transitive dependencies.