CVE-2021-28681: Medium severity webrtc vulnerability

Published Mar 18, 2021
·
Updated

Impact Data channel communication was incorrectly allowed with users who have failed DTLS certificate verification.

This attack requires Attacker knows the ICE password. Only take place during PeerConnection handshake.

This attack can be detected by monitoring PeerConnectionState in all versions of Pion WebRTC.

Patches Users should upgrade to v3.0.15.

The exact patch is https://github.com/pion/webrtc/commit/545613dcdeb5dedb01cce94175f40bcbe045df2e

Workarounds Users should listen for when PeerConnectionState changes to PeerConnectionStateFailed. When it enters this state users should not continue using the PeerConnection.

For more information If you have any questions or comments about this advisory: Open an issue in https://github.com/pion/webrtc Email us at team@pion.ly

Thank you to https://github.com/Gaukas for discovering this.

Other sources

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.)

Affected Software

2 affected componentsFixes available
go/github.com/pion/webrtc/v3<3.0.15
3.0.15
Webrtc Project Webrtc<3.0.15

Event History

Mar 18, 2021
CVE Published
via MITRE·03:20 AM
Data Sourced
via MITRE·03:20 AM
Description
May 25, 2021
Advisory Published
06:42 PM

Frequently Asked Questions

1

What is the severity of CVE-2021-28681?

The severity of CVE-2021-28681 is medium with a severity value of 5.3.

2

What is the impact of CVE-2021-28681?

The impact of CVE-2021-28681 is that data channel communication was incorrectly allowed with users who have failed DTLS certificate verification.

3

How can CVE-2021-28681 be detected?

CVE-2021-28681 can be detected by monitoring the PeerConnectionState in the application.

4

What is the affected software of CVE-2021-28681?

The affected software of CVE-2021-28681 is Pion WebRTC before version 3.0.15.

5

How can I fix CVE-2021-28681?

To fix CVE-2021-28681, update Pion WebRTC to version 3.0.15 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203