CVE-2022-29222: Github.com/pion/dtls Pion/DLTS Accepts Client Certificates Without Vulnerability
MODERATECVE-2022-29222 is a MODERATE (CVSS 5.9) pion/dlts accepts client certificates without vulnerability (CWE-295: Improper Certificate Validation) affecting Github.com/pion/dtls libraries in the Go ecosystem. The issue involves pion/dlts accepts client certificates without certificateverify. Remediation is available by upgrading affected packages to version 2.1.5.
CVE-2022-29222 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2022-29222
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 2.1.5
Upgrade github.com/pion/dtls/v2 to 2.1.5
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-2022-29222, 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 2.1.5), 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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. 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-2022-29222 Affected Github.com/pion/dtls Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/pion/dtls
|
Go |
< 2.1.5
|
2.1.5
|
|
github.com/pion/dtls/v2
|
Go |
< 2.1.5
|
2.1.5
|
References
Frequently Asked Questions
What is CVE-2022-29222?
Which Github.com/pion/dtls versions are affected?
What version fixes CVE-2022-29222?
Is github.com/pion/dtls affected?
Is github.com/pion/dtls/v2 affected?
What is the CVSS score of CVE-2022-29222?
What CWE is associated with CVE-2022-29222?
How can I check Go dependencies for CVE-2022-29222?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w45j-f832-hxvh",
"modified" : "2023-08-29T23:28:42Z",
"published" : "2022-05-25T19:26:09Z",
"aliases" : [ "CVE-2022-29222" ],
"summary" : "Pion/DLTS Accepts Client Certificates Without CertificateVerify",
"details" : "### Impact\nA DTLS Client could provide a Certificate that it doesn't posses the private key for and Pion DTLS wouldn't reject it. \n\nThis issue affects users that are using Client certificates only. The connection itself is still secure. The Certificate provided by clients can't be trusted when using a Pion DTLS server prior to v2.1.5\n\n### Patches\nUpgrade to Pion DTLS v2.1.5\n\n### Workarounds\nNo workarounds available, upgrade to Pion DTLS v2.1.5\n\n### References\nThank you to [Juho Nurminen](https://github.com/jupenur) and the Mattermost team for discovering and reporting this. \n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Pion DTLS](http://github.com/pion/dtls)\n* Email us at [team@pion.ly](mailto:team@pion.ly)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/dtls"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/pion/dtls/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.1.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/pion/dtls/security/advisories/GHSA-w45j-f832-hxvh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-29222"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/dtls/commit/d2f797183a9f044ce976e6df6f362662ca722412"
}, {
"type" : "WEB",
"url" : "https://github.com/pion/dtls/releases/tag/v2.1.5"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2022-0462"
}, {
"type" : "PACKAGE",
"url" : "github.com/pion/dtls"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-295" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-05-25T19:26:09Z",
"nvd_published_at" : "2022-05-21T00:15:00Z"
}
}