{"id":"CVE-2021-28681","aliases":["GHSA-74xm-qj29-cq8p","GO-2021-0104"],"url":"https://o3.security/vulnerability/CVE-2021-28681","summary":"In github.com/pion/webrtc, failed DTLS certificate verification doesn't stop data channel communication","details":"### Impact\nData channel communication was incorrectly allowed with users who have failed DTLS certificate verification.\n\nThis attack requires \n* Attacker knows the ICE password. \n* Only take place during PeerConnection handshake.\n\nThis attack can be detected by monitoring `PeerConnectionState` in all versions of Pion WebRTC.\n\n### Patches\nUsers should upgrade to v3.0.15. \n\nThe exact patch is https://github.com/pion/webrtc/commit/545613dcdeb5dedb01cce94175f40bcbe045df2e\n\n### Workarounds\nUsers should listen for when `PeerConnectionState` changes to `PeerConnectionStateFailed`. When it enters this state users should not continue using the PeerConnection.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/pion/webrtc\n* Email us at [team@pion.ly](mailto:team@pion.ly)\n\nThank you to https://github.com/Gaukas for discovering this.","published":"2021-03-18T04:15:14.617Z","modified":"2026-07-09T11:23:57.013147Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Go","name":"github.com/pion/webrtc/v3","fixedVersion":"3.0.15"}],"fix":{"url":"https://github.com/pion/webrtc/pull/1709","label":"pion/webrtc#1709"},"references":[{"type":"ADVISORY","url":"https://github.com/pion/webrtc/security/advisories/GHSA-74xm-qj29-cq8p"},{"type":"FIX","url":"https://github.com/pion/webrtc/issues/1708"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28681"},{"type":"WEB","url":"https://github.com/pion/webrtc/pull/1709"},{"type":"WEB","url":"https://github.com/pion/webrtc/commit/545613dcdeb5dedb01cce94175f40bcbe045df2e"},{"type":"PACKAGE","url":"https://github.com/pion/webrtc"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2021-0104"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T11:23:57.013147Z"}}