CVE-2021-34558Golang Go
Medium 6.5 No auth needed
Follow: this CVE · Golang · Golang Go We alert you by email or Slack (account required).
- Priority
- 55
- CVSS 3.1
- 6.5
- EPSS
- 7.0% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Jul 15, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-295
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Go.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | stdlib |
< 1.15.14 |
1.15.14 |
go get stdlib@v1.15.14 |
| Go | stdlib |
≥ 1.16.0-0 < 1.16.6 |
1.16.6 |
go get stdlib@v1.16.6 |
Per OSV / GitHub Advisories (GO-2021-0243). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | go | < 1.15.14 |
| golang | go | ≥ 1.16.0 < 1.16.6 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
| netapp | cloud_insights_telegraf | all |
| netapp | storagegrid | all |
| netapp | trident | all |
| oracle | timesten_in-memory_database | < 21.1.1.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- golang.org Release Notes Vendor Advisory
- groups.google.com Mailing List Third Party Advisory
- groups.google.com Mailing List Release Notes Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory