CVE-2019-20786: Github.com/pion/dtls Improper Authenication Vulnerability
CRITICALCVE-2019-20786 is a CRITICAL (CVSS 9.8) improper authenication vulnerability (CWE-287: Improper Authentication) affecting Github.com/pion/dtls libraries in the Go ecosystem. The issue involves improper authenication in pion dtls. Remediation is available by upgrading affected packages to version 1.5.2.
CVE-2019-20786 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-20786
To remediate this vulnerability, upgrade all affected Github.com/pion/dtls dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/pion/dtls to 1.5.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/pion/dtls
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-20786, inspect your project dependencies for Github.com/pion/dtls:
inspect dependencies for github.com/pion/dtls
Analyze the terminal output to locate any version of Github.com/pion/dtls in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/pion/dtls, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-20786 Affected Github.com/pion/dtls Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pion/dtls
|
Go |
< 1.5.2
|
1.5.2
|
References
Frequently Asked Questions
What is CVE-2019-20786?
Which Github.com/pion/dtls versions are affected?
What version fixes CVE-2019-20786?
Is github.com/pion/dtls affected?
What is the CVSS score of CVE-2019-20786?
What CWE is associated with CVE-2019-20786?
How can I check Go dependencies for CVE-2019-20786?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7gfg-6934-mqq2",
"modified" : "2023-02-14T00:18:06Z",
"published" : "2021-06-29T21:34:57Z",
"aliases" : [ "CVE-2019-20786" ],
"summary" : "Improper Authenication in Pion DTLS",
"details" : "handleIncomingPacket in conn.go in Pion DTLS before 1.5.2 lacks a check for application data with epoch 0, which allows remote attackers to inject arbitrary unencrypted data after handshake completion.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/dtls"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.5.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-20786"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/dtls/pull/128"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/dtls/commit/fd73a5df2ff0e1fb6ae6a51e2777d7a16cc4f4e0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pion/dtls"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/dtls/compare/v1.5.1...v1.5.2"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2020-0038"
}, {
"type" : "WEB",
"url" : "https://www.usenix.org/conference/usenixsecurity20/presentation/fiterau-brostean"
}, {
"type" : "WEB",
"url" : "https://www.usenix.org/system/files/sec20fall_fiterau-brostean_prepub.pdf"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-25T19:54:18Z",
"nvd_published_at" : null
}
}