{"id":"CVE-2021-28681","aliases":["CVE-2021-28681","GHSA-74xm-qj29-cq8p","GO-2021-0104"],"related":[],"kind":"vulnerability","state":"published","title":"In github.com/pion/webrtc, failed DTLS certificate verification doesn't stop data channel communication","summary":"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.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.)","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Due to improper error handling, DTLS connections were not killed when certificate verification failed, causing users who did not check the connection state to continue to use the connection. This could allow allow an attacker which holds the ICE password, but not a valid certificate, to bypass this restriction.","format":"markdown","source":"go"},{"lang":"es","text":"Pion WebRTC versiones anteriores a 3.0.15, no eliminó apropiadamente la conexión DTLS cuando falló una comprobación del certificado.&#xa0;El PeerConnectionState se configuró para un fallo, pero un usuario podría ignorarlo y continuar usando PeerConnection.&#xa0;(Una implementación de WebRTC no debería permitir al usuario continuar si la comprobación ha fallado)","source":"nvd"}],"published":"2021-03-18T03:20:06.000Z","modified":"2026-07-08T06:28:01.869Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.15"}],"ecosystem":"Go","package":"github.com/pion/webrtc/v3","purl":"pkg:golang/github.com/pion/webrtc/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.15"}],"ecosystem":"Go","package":"github.com/pion/webrtc/v3","purl":"pkg:golang/github.com/pion/webrtc/v3","source":"go"},{"ranges":[{"status":"affected","fixed":"3.0.15"}],"vendor":"webrtc_project","product":"webrtc","cpe":"cpe:2.3:a:webrtc_project:webrtc:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/pion/webrtc/issues/1708","tags":["exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/pion/webrtc/security/advisories/GHSA-74xm-qj29-cq8p","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28681","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pion/webrtc/pull/1709","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/pion/webrtc/commit/545613dcdeb5dedb01cce94175f40bcbe045df2e","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/pion/webrtc","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0104","tags":["web"],"sources":["ghsa"]}],"credits":["Gaukas Wang (@Gaukas)"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28681","url":"https://www.cve.org/CVERecord?id=CVE-2021-28681","licence":"CVE Terms of Use","modified":"2024-08-03T21:47:33.209Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-74xm-qj29-cq8p","url":"https://github.com/advisories/GHSA-74xm-qj29-cq8p","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:01.869Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0104","url":"https://pkg.go.dev/vuln/GO-2021-0104","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28681","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28681","licence":"Public domain","modified":"2026-06-17T03:46:47.087Z"}],"updatedAt":"2026-11-25T22:58:00.317Z","epss":{"score":0.00677,"percentile":0.53547,"date":"2026-12-01T12:00:22.000Z"}}