Skip to content
Heist/ feed
Back to feed
Medium

CVE-2021-34558 affecting package golang 1.26.7-1

Type: advisorySources: OSV

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.

Products
golang
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-34558
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:03 UTC · Revision 1

Source evidence

CVE-2021-34558 affecting package golang 1.26.7-1

core-osv · Original source

Published 15 Jul 2021, 14:15 UTC

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.

osv:AZL-105164

golang

Fixed versions: Not specified

Complete source record
{
  "id": "a3dc65778205b661bc10a56e16ebbeafd6a4314de8c9e7ace5d0b9fb84fea544",
  "url": "https://osv.dev/vulnerability/AZL-105164",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-34558 affecting package golang 1.26.7-1",
    "summary": "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.",
    "evidence": "osv:AZL-105164",
    "products": [
      {
        "name": {
          "value": "golang",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "AZL-105164",
      "aliases": [
        "AZL-105164"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "1.26.7-1"
                }
              ]
            }
          ],
          "package": {
            "name": "golang",
            "purl": "pkg:rpm/azure-linux/golang",
            "ecosystem": "Azure Linux:3"
          },
          "database_specific": {
            "source": "https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-105164.json"
          }
        }
      ],
      "modified": "2026-10-15T05:37:09Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-34558"
      ],
      "references": [
        "https://nvd.nist.gov/vuln/detail/CVE-2021-34558"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-34558",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 321271,
  "published_at": "2021-07-15T14:15:19+00:00"
}