{"id":"CVE-2021-27098","aliases":["GHSA-h746-rm5q-8mgq"],"title":"Legacy Node API Allows Impersonation in github.com/spiffe/spire/pkg/server/endpoints/node","summary":"Legacy Node API Allows Impersonation in github.com/spiffe/spire/pkg/server/endpoints/node","severity":"high","cvss":8.1,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","vendor":"spiffe","product":"github.com/spiffe/spire","ecosystem":"go","affected":["github.com/spiffe/spire >= 0.8.1, < 0.8.5","github.com/spiffe/spire >= 0.9.0, < 0.9.4","github.com/spiffe/spire >= 0.10.0, < 0.10.2","github.com/spiffe/spire >= 0.11.0, < 0.11.3","github.com/spiffe/spire >= 0.12.0, < 0.12.1"],"patched":["github.com/spiffe/spire 0.8.5","github.com/spiffe/spire 0.9.4","github.com/spiffe/spire 0.10.2","github.com/spiffe/spire 0.11.3","github.com/spiffe/spire 0.12.1"],"published":"2021-05-21","updated":"2026-07-08","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-h746-rm5q-8mgq","references":[{"url":"https://github.com/spiffe/spire/security/advisories/GHSA-h746-rm5q-8mgq"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27098"},{"url":"https://github.com/spiffe/spire/commit/3c5115b57afc20a0a2c2b1b9dd60dd1fd9082e13"},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27098"}],"tags":["osv","go"],"epss":0.00558,"epssPercentile":0.44082,"ingestedAt":"2026-07-09T18:56:36.556Z","slug":"CVE-2021-27098","body":"## Overview\n\n#### Summary\nIn SPIRE 0.8.1 through 0.8.4 and before versions 0.9.4, 0.10.2, 0.11.3 and 0.12.1, specially crafted requests to the FetchX509SVID RPC of SPIRE Server’s Legacy Node API (github.com/spiffe/spire/pkg/server/endpoints/node) can result in the possible issuance of an X.509 certificate with a URI SAN for a SPIFFE ID that the agent is not authorized to distribute. Proper controls are in place to require that the caller presents a valid agent certificate that is already authorized to issue at least one SPIFFE ID, and the requested SPIFFE ID belongs to the same trust domain, prior to being able to trigger this vulnerability. This issue has been fixed in SPIRE versions 0.8.5, 0.9.4, 0.10.2, 0.11.3 and 0.12.1.\n\n#### What are the changes introduced by the patched versions?\nThe changes introduced to address this issue are related to enforcing that the FetchX509SVID RPC of SPIRE Server’s Legacy Node API only issues X.509 certificates with SPIFFE IDs that the agent is authorized to distribute.\n\nThe patched version also includes a back-ported change that improves the handling of file descriptors related to workload attestation in SPIRE Agent.\n\nThere are no changes in the expected behavior of SPIRE.\n\n#### Should I upgrade SPIRE?\nAll SPIRE users running affected versions are advised to upgrade to the corresponding patched version.\n\n#### Workarounds\nNo workarounds have been identified for this vulnerability.\n\n## Affected packages\n\n- `github.com/spiffe/spire >= 0.8.1, < 0.8.5`\n- `github.com/spiffe/spire >= 0.9.0, < 0.9.4`\n- `github.com/spiffe/spire >= 0.10.0, < 0.10.2`\n- `github.com/spiffe/spire >= 0.11.0, < 0.11.3`\n- `github.com/spiffe/spire >= 0.12.0, < 0.12.1`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/spiffe/spire 0.8.5`\n- `github.com/spiffe/spire 0.9.4`\n- `github.com/spiffe/spire 0.10.2`\n- `github.com/spiffe/spire 0.11.3`\n- `github.com/spiffe/spire 0.12.1`","depth":"twilight","depthScore":45,"depthScoreParts":{"impact":44.6,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}