# CVE-2021-28681: In github.com/pion/webrtc, failed DTLS certificate verification doesn't stop data channel communication

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-18T03:20:06.000Z
- Modified: 2026-07-08T06:28:01.869Z
- Also known as: GHSA-74xm-qj29-cq8p, GO-2021-0104
- Weaknesses: CWE-863
- Assigned by: mitre

## Description

Pion WebRTC before 3.0.15 didn't properly tear down the DTLS Connection when certificate verification failed. The PeerConnectionState was set to failed, but a user could ignore that and continue to use the PeerConnection. )A WebRTC implementation shouldn't allow the user to continue if verification has failed.)

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/pion/webrtc/v3 (Go): before 3.0.15
- webrtc_project webrtc: before 3.0.15

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/pion/webrtc/issues/1708> (exploit, patch, third-party-advisory, web)
- <https://github.com/pion/webrtc/security/advisories/GHSA-74xm-qj29-cq8p> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28681> (advisory)
- <https://github.com/pion/webrtc/pull/1709> (fix, web)
- <https://github.com/pion/webrtc/commit/545613dcdeb5dedb01cce94175f40bcbe045df2e> (fix, web)
- <https://github.com/pion/webrtc> (package)
- <https://pkg.go.dev/vuln/GO-2021-0104> (web)

## Sources

- CVE List: [CVE-2021-28681](https://www.cve.org/CVERecord?id=CVE-2021-28681), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-74xm-qj29-cq8p](https://github.com/advisories/GHSA-74xm-qj29-cq8p), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2021-0104](https://pkg.go.dev/vuln/GO-2021-0104), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-28681](https://nvd.nist.gov/vuln/detail/CVE-2021-28681), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-28681 · Whole record: https://cve.day/CVE-2021-28681.json · Rebuilt by cve.day 2026-11-25T22:58:00.317Z
