{"id":"CVE-2022-29222","aliases":["CVE-2022-29222","GHSA-w45j-f832-hxvh","GO-2022-0462"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Certificate Validation in Pion DTLS","summary":"Pion DTLS is a Go implementation of Datagram Transport Layer Security. Prior to version 2.1.5, a DTLS Client could provide a Certificate that it doesn't posses the private key for and Pion DTLS wouldn't reject it. This 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 version 2.1.5. Users should upgrade to version 2.1.5 to receive a patch. There are currently no known workarounds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Pion DTLS is a Go implementation of Datagram Transport Layer Security. Prior to version 2.1.5, a DTLS Client could provide a Certificate that it doesn't posses the private key for and Pion DTLS wouldn't reject it. This 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 version 2.1.5. Users should upgrade to version 2.1.5 to receive a patch. There are currently no known workarounds.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Client-provided certificates are not correctly validated, and must not be trusted.\n\nDTLS client certificates must be accompanied by proof that the client possesses the private key for the certificate. The Pion DTLS server accepted client certificates unaccompanied by this proof, permitting an attacker to present any certificate and have it accepted as valid.","format":"markdown","source":"go"},{"lang":"es","text":"Pion DTLS es una implementación Go de la Seguridad de la Capa de Transporte de Datagramas. En versiones anteriores a 2.1.5, un cliente DTLS podía proporcionar un certificado para el que no poseía la clave privada y Pion DTLS no lo rechazaba. Este problema afecta a usuarios que usan sólo certificados de cliente. La conexión en sí sigue siendo segura. El certificado proporcionado por los clientes no es confiable cuando es usado un servidor DTLS de Pion versiones anteriores a 2.1.5. Los usuarios deben actualizar a versión 2.1.5 para recibir un parche. Actualmente no se presentan mitigaciones conocidas","source":"nvd"}],"published":"2022-05-21T00:00:15.000Z","modified":"2026-06-17T04:39:51.763Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"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:H/A:N","score":7.5,"rating":"HIGH"},{"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-295"],"affected":[{"ranges":[{"version":"< 2.1.5","status":"affected"}],"vendor":"pion","product":"dtls","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.5"}],"ecosystem":"Go","package":"github.com/pion/dtls","purl":"pkg:golang/github.com/pion/dtls","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.5"}],"ecosystem":"Go","package":"github.com/pion/dtls/v2","purl":"pkg:golang/github.com/pion/dtls/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.5"}],"ecosystem":"Go","package":"github.com/pion/dtls/v2","purl":"pkg:golang/github.com/pion/dtls/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.1.5"}],"vendor":"pion","product":"dtls","cpe":"cpe:2.3:a:pion:dtls:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/pion/dtls/security/advisories/GHSA-w45j-f832-hxvh","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pion/dtls/commit/d2f797183a9f044ce976e6df6f362662ca722412","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/pion/dtls/releases/tag/v2.1.5","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29222","tags":["advisory"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0462","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:06:54.695Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-29222","url":"https://www.cve.org/CVERecord?id=CVE-2022-29222","licence":"CVE Terms of Use","modified":"2025-04-23T18:23:10.716Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w45j-f832-hxvh","url":"https://github.com/advisories/GHSA-w45j-f832-hxvh","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:11.243Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0462","url":"https://pkg.go.dev/vuln/GO-2022-0462","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-29222","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29222","licence":"Public domain","modified":"2026-06-17T04:39:51.763Z"}],"updatedAt":"2026-11-25T22:58:11.885Z","epss":{"score":0.0077,"percentile":0.56853,"date":"2026-12-01T12:00:22.000Z"}}