{"id":"CVE-2021-34558","published":"2021-07-15T13:47:36Z","modified":"2024-08-04T00:12:50Z","title":"The crypto/tls package of Go through 1.16.5 does not properly assert that the type of public key in an X.509…","vendor":null,"product":null,"tier":"tail","description":{"text":"The crypto/tls package of Go through 1.16.5 does not properly assert that the type of public key in an X.509 certificate matches the expected type when doing a RSA based key exchange, allowing a malicious TLS server to cause a TLS client to panic.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.07032,"percentile":0.94327,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/g/golang-announce","tags":["x_refsource_MISC"]},{"url":"https://golang.org/doc/devel/release#go1.16.minor","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D7FRFM7WWR2JCT6NORQ7AO6B453OMI3I/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3BA7MFVXRBEKRTLSLYDICTYCGEMK2HZ7/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JYIUSR4YP52PWG7YE7AA3DZ5OSURNFJB/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WXJ2MVMAHOIGRH37ZSFYC4EVWLJFL2EQ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBMLUQMN6XRKPVOI5XFFBP4XSR7RNTYR/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3XBQUFVI5TMV4KMKI7GKA223LHGPQISE/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BTC3JQUASFN5U2XA4UZIGAPZQBD5JSS/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITRXPCHUCJGXCX2CUEPKZRRTB27GG4ZB/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLOGBB7XBBRB3J5FDPW5KWHSH7IRF64W/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://groups.google.com/g/golang-announce/c/n9FxMelZGAQ","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210813-0005/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/202208-02","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.87},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2021-07-13","earliestUrl":"https://github.com/alexzorin/cve-2021-34558","repos":[{"name":"alexzorin/cve-2021-34558","url":"https://github.com/alexzorin/cve-2021-34558","stars":45,"created":"2021-07-13"}]},"first":{"date":"2021-07-13","source":"PoC-in-GitHub","url":"https://github.com/alexzorin/cve-2021-34558"},"provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.15.14",">=1.16.0-0, <1.16.6"],"patched":["1.15.14","1.16.6"],"from":["GO-2021-0243"],"provenance":"source"}],"summary":{"text":"The crypto/tls package in Go, through version 1.16.5, fails to verify that the public key type in an X.509 certificate matches the expected type during RSA-based key exchange. An attacker operating a malicious TLS server can trigger a panic in any TLS client that connects to it, provided the client performs an RSA key exchange.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:07Z"},"euvd":{"id":"EUVD-2021-21208","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-33196","published":"2021-08-02","fixed":"1.16.5","kev":false},{"cve":"CVE-2021-33197","published":"2021-08-02","fixed":"1.16.5","kev":false},{"cve":"CVE-2021-33198","published":"2021-08-02","fixed":"1.16.5","kev":false},{"cve":"CVE-2021-34558","published":"2021-07-15","fixed":"1.16.6","kev":false},{"cve":"CVE-2021-36221","published":"2021-08-08","fixed":"1.16.7","kev":false,"link":{"from":"CVE-2021-34558","to":"CVE-2021-36221","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.15.14","toFixed":"1.15.15","daysApart":24}]}},{"cve":"CVE-2021-39293","published":"2022-01-24","fixed":"1.17.1","kev":false},{"cve":"CVE-2021-41771","published":"2021-11-08","fixed":"1.17.3","kev":false}],"package":"Go:stdlib"}}