# CVE-2022-29222: GO-2022-0462 - Improper validation of client certificates in github.com/pion/dtls/v2

Source: https://junglewise.ai/threats/cve-2022-29222-pion-dlts-accepts-client-certificates-without-certificateverify  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-07-01  
License: CC BY 4.0 with a link back

CVE-2022-29222 · Severity: low · CVSS 3.1 · Published 2022-07-01

Improper validation of client certificates in github.com/pion/dtls/v2

Technologies: [github.com/pion/dtls (Go)](https://junglewise.ai/threats/technologies/github-com-pion-dtls), [github.com/pion/dtls/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-pion-dtls-v2). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-29222 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-29222 being exploited in the wild.

**How severe is CVE-2022-29222?** Low severity, with a CVSS score of 3.1, published 1 July 2022.

**Which products and versions are affected?** github.com/pion/dtls (Go) SEMVER:introduced=0,fixed=2.1.5; github.com/pion/dtls/v2 (Go) SEMVER:introduced=0,fixed=2.1.5.

**Is there a fix for CVE-2022-29222?** Yes. github.com/pion/dtls (Go): upgrade to 2.1.5 or later; github.com/pion/dtls/v2 (Go): upgrade to 2.1.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-29222?** Check whether you run github.com/pion/dtls (Go) or github.com/pion/dtls/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/pion/dtls (Go): upgrade to 2.1.5 or later

  ```sh
  go get github.com/pion/dtls@v2.1.5
  ```

- github.com/pion/dtls/v2 (Go): upgrade to 2.1.5 or later

  ```sh
  go get github.com/pion/dtls/v2@v2.1.5
  ```


## Affected products

- github.com/pion/dtls (Go) SEMVER:introduced=0,fixed=2.1.5
- github.com/pion/dtls/v2 (Go) SEMVER:introduced=0,fixed=2.1.5

## Identifiers

- CVE-2022-29222
- GHSA-w45j-f832-hxvh
- GO-2022-0462

## Related threats

- [GO-2026-4479 - Usage of random nonce generation with AES GCM ciphers risks leaking the authentication key in github.com/pion/dtls](https://junglewise.ai/threats/cve-2026-26014-pion-dtls-s-usage-of-random-nonce-generation-with-aes-gcm-ciphers)
- [GO-2023-1535 - Panic during unmarshal of Server Hello in github.com/pion/dtls/v2](https://junglewise.ai/threats/go-2023-1535-panic-during-unmarshal-of-server-hello-in-github-com-pion-59d59d2d)
- [GO-2023-1534 - Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2](https://junglewise.ai/threats/go-2023-1534-panic-during-unmarshal-of-hello-verify-request-in-github-2da81b22)
- [Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2](https://junglewise.ai/threats/panic-during-unmarshal-of-hello-verify-request-in-github-com-pion-dtls-c23b7d58)
- [Panic during unmarshal of Hello Verify Request in github.com/pion/dtls/v2](https://junglewise.ai/threats/panic-during-unmarshal-of-hello-verify-request-in-github-com-pion-dtls-20a8f61b)
