{"answers":{"affected":"3 open source packages ship an affected version, including github.com/pion/dtls. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-20786 in the wild and no public exploit code.","fix":"Upgrade github.com/pion/dtls to 1.5.2 or later.","what":"CVE-2019-20786 is a critical vulnerability in n/a, published on 19 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-20786 and fix it if it is affected.\n\nWhat it is: CVE-2019-20786 is a critical vulnerability in n/a, published on 19 Apr 2020. 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-2019-20786 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/pion/dtls (Go): affected all versions; fixed in 1.5.2\n- github.com/pion/dtls (Go): affected all versions; fixed in 1.5.2\n- github.com/pion/dtls (Go): affected all versions; fixed in 1.5.2\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-2019-20786/ (Markdown: https://insights.sbomify.com/CVE-2019-20786/index.md)","id":"CVE-2019-20786","markdown":"https://insights.sbomify.com/CVE-2019-20786/index.md","name":"CVE-2019-20786","record":{"aliases":["GHSA-7gfg-6934-mqq2","GO-2020-0038"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go DTLS library","requires_auth":"none","summary":"Attackers can inject unencrypted data after handshake completion in Pion DTLS due to missing epoch checks, bypassing encryption guarantees.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"dtls","vendor":"pion"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"description":"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.","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 Authenication in Pion DTLS","id":"CVE-2019-20786","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2019"},"n_packages":3,"n_references":4,"next":{"headline":"Teeworlds before 0.7.4 has an integer overflow when computing a tilemap size.","id":"CVE-2019-20787"},"packages":[{"ecosystem":"Go","fixed":["1.5.2"],"introduced":["0"],"last_affected":[],"package":"github.com/pion/dtls","purl":null,"source":"GHSA-7gfg-6934-mqq2"},{"ecosystem":"Go","fixed":["1.5.2"],"introduced":["0"],"last_affected":[],"package":"github.com/pion/dtls","purl":"pkg:golang/github.com/pion/dtls","source":"GHSA-7gfg-6934-mqq2"},{"ecosystem":"Go","fixed":["1.5.2"],"introduced":["0"],"last_affected":[],"package":"github.com/pion/dtls","purl":"pkg:golang/github.com/pion/dtls","source":"GO-2020-0038"}],"prev":{"headline":"Null dereference in n/a","id":"CVE-2019-20785"},"products":["n/a"],"published":"2020-04-19","related":[{"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.9,"headline":"Improper Certificate Validation in Pion DTLS","id":"CVE-2022-29222","kev_date_added":null,"published":"2022-05-21"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can inject unencrypted data after handshake completion in Pion DTLS due to missing epoch checks, bypassing encryption guarantees.","url":"https://insights.sbomify.com/CVE-2019-20786/"}