CVE-2019-20786: Improper Authentication in Pion DTLS

github.com/pion/dtls Updated 02 Oct 2025

Summary

14/04/2021
Yes i
Critical
9.8

CVE-2019-20786: Improper authentication in github.com/pion/dtls. Affects github.com/pion/dtls versions < 1.5.2. Fixed in 1.5.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Pion DTLS is a Go library that provides Datagram Transport Layer Security (DTLS) functionality. It is used for securing communication channels that transmit data over UDP. DTLS is a variant of the Transport Layer Security (TLS) protocol specifically designed for unreliable datagram protocols. Pion DTLS allows developers to implement DTLS in their Go applications.

Vulnerability Detail

The vulnerability identified as CVE-2019-20786 in Pion DTLS before version 1.5.2 is an improper authentication issue. The handleIncomingPacket function in conn.go does not check for application data with epoch 0, allowing remote attackers to inject arbitrary unencrypted data after the handshake is completed. This vulnerability can be exploited to tamper with the integrity and confidentiality of the communication, potentially leading to unauthorized access or data manipulation.

How To Fix

Latest published version: v1.5.4 as of 23 Oct 2026

go get github.com/pion/dtls@v1.5.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.2

This is the first release that contains the fix.

go get github.com/pion/dtls@v1.5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The vulnerability identified as CVE-2019-20786 in Pion DTLS before version 1.5.2 allows remote attackers to inject arbitrary unencrypted data after the handshake is completed. To mitigate this vulnerability, it is crucial to update the Pion DTLS package to version 1.5.2 or later. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for github.com/pion/dtls →

Share this vulnerability

FAQ

Pion DTLS is a Go library that provides Datagram Transport Layer Security (DTLS) functionality. It allows developers to implement DTLS in their Go applications for securing communication channels that transmit data over UDP.

The vulnerability allows remote attackers to inject arbitrary unencrypted data after the handshake is completed. This can lead to tampering with the integrity and confidentiality of the communication, potentially resulting in unauthorized access or data manipulation.

To fix this vulnerability, update the Pion DTLS package to version 1.5.2 or later. This version includes the necessary check for application data with epoch 0, preventing the injection of arbitrary unencrypted data.

No specific workarounds have been provided for this vulnerability. It is recommended to update to the patched version of Pion DTLS.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/pion/dtls.

How To Fix

Latest published version: v1.5.4 as of 23 Oct 2026

go get github.com/pion/dtls@v1.5.4

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.2

This is the first release that contains the fix.

go get github.com/pion/dtls@v1.5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback