{"answers":{"affected":"5 open source packages ship an affected version, including github.com/pion/dtls/v2 and github.com/pion/dtls. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-29222 in the wild and no public exploit code.","fix":"Upgrade github.com/pion/dtls/v2 to 2.1.5 or later.","what":"CVE-2022-29222 is a medium-severity vulnerability in pion dtls, published on 21 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-29222 and fix it if it is affected.\n\nWhat it is: CVE-2022-29222 is a medium-severity vulnerability in pion dtls, published on 21 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-29222 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/pion/dtls/v2 (Go): affected all versions; fixed in 2.1.5\n- github.com/pion/dtls/v2 (Go): affected all versions; fixed in 2.1.5\n- github.com/pion/dtls/v2 (Go): affected all versions; fixed in 2.1.5\n- github.com/pion/dtls (Go): affected all versions; fixed in 2.1.5\n- github.com/pion/dtls (Go): affected all versions; fixed in 2.1.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-29222/ (Markdown: https://insights.sbomify.com/CVE-2022-29222/index.md)","id":"CVE-2022-29222","markdown":"https://insights.sbomify.com/CVE-2022-29222/index.md","name":"CVE-2022-29222","record":{"aliases":["DEBIAN-CVE-2022-29222","GHSA-w45j-f832-hxvh","GO-2022-0462","UBUNTU-CVE-2022-29222"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Go DTLS library","requires_auth":"none","summary":"Attackers can bypass client certificate validation in Pion DTLS by providing certificates without private keys, affecting applications using client certificates.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dtls","vendor":"pion"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-295","name":"Improper Certificate Validation"}],"description":"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Improper Certificate Validation in Pion DTLS","id":"CVE-2022-29222","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2022"},"n_packages":5,"n_references":3,"next":{"headline":"Buffer overflow on HUB descriptor in Azure RTOS USBX","id":"CVE-2022-29223"},"packages":[{"ecosystem":"Go","fixed":["2.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/pion/dtls","purl":null,"source":"GHSA-w45j-f832-hxvh"},{"ecosystem":"Go","fixed":["2.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/pion/dtls","purl":"pkg:golang/github.com/pion/dtls","source":"GHSA-w45j-f832-hxvh"},{"ecosystem":"Go","fixed":["2.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/pion/dtls/v2","purl":null,"source":"GHSA-w45j-f832-hxvh"},{"ecosystem":"Go","fixed":["2.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/pion/dtls/v2","purl":"pkg:golang/github.com/pion/dtls/v2","source":"GHSA-w45j-f832-hxvh"},{"ecosystem":"Go","fixed":["2.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/pion/dtls/v2","purl":"pkg:golang/github.com/pion/dtls/v2","source":"GO-2022-0462"}],"prev":{"headline":"PHP Code Injection by malicious block or filename in Smarty","id":"CVE-2022-29221"},"products":["dtls"],"published":"2022-05-21","related":[{"cvss_score":9.8,"headline":"Improper Authenication in Pion DTLS","id":"CVE-2019-20786","kev_date_added":null,"published":"2020-04-19"},{"cvss_score":7.5,"headline":"Header reconstruction method can be thrown into an infinite loop in Pion DTLS","id":"CVE-2022-29190","kev_date_added":null,"published":"2022-05-20"},{"cvss_score":5.9,"headline":"Pion DTLS uses random nonce generation with AES GCM ciphers risks leaking the authentication key","id":"CVE-2026-26014","kev_date_added":null,"published":"2026-02-11"},{"cvss_score":5.3,"headline":"Buffer for inbound DTLS fragments has no limit","id":"CVE-2022-29189","kev_date_added":null,"published":"2022-05-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["pion"]},"summary":"Attackers can bypass client certificate validation in Pion DTLS by providing certificates without private keys, affecting applications using client certificates.","url":"https://insights.sbomify.com/CVE-2022-29222/"}