{"id":"CVE-2021-27098","aliases":["CVE-2021-27098","GHSA-h746-rm5q-8mgq"],"related":[],"kind":"vulnerability","state":"published","title":"Legacy Node API Allows Impersonation in github.com/spiffe/spire/pkg/server/endpoints/node","summary":"In 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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In 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 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.","source":"cvelist"},{"lang":"en","text":"#### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"En SPIRE versiones 0.8.1 hasta 0.8.4 y versiones anteriores a 0.9.4, 0.10.2, 0.11.3 y 0.12.1, unas peticiones especialmente diseñadas para FetchX509SVID RPC de la API del Legacy Node de SPIRE Server, pueden resultar en una posible emisión de un Certificado X.509 con un URI SAN para un ID de SPIFFE que el agente no está autorizado a distribuir.&#xa0;Se presentan controles apropiados para requerir que la persona que llama presente un certificado de agente válido que ya esté autorizado para emitir al menos un ID de SPIFFE, y que el ID de SPIFFE pedido pertenezca al mismo dominio confiable, antes de poder desencadenar esta vulnerabilidad.&#xa0;Este problema ha sido corregido en versiones 0.8.5, 0.9.4, 0.10.2, 0.11.3 y 0.12.1 de SPIRE","source":"nvd"}],"published":"2021-03-05T16:59:06.000Z","modified":"2026-07-08T06:27:37.241Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-284","CWE-295"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.8.1","status":"affected","fixed":"0.8.5"}],"ecosystem":"Go","package":"github.com/spiffe/spire","purl":"pkg:golang/github.com/spiffe/spire","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.9.0","status":"affected","fixed":"0.9.4"}],"ecosystem":"Go","package":"github.com/spiffe/spire","purl":"pkg:golang/github.com/spiffe/spire","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.10.0","status":"affected","fixed":"0.10.2"}],"ecosystem":"Go","package":"github.com/spiffe/spire","purl":"pkg:golang/github.com/spiffe/spire","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.11.0","status":"affected","fixed":"0.11.3"}],"ecosystem":"Go","package":"github.com/spiffe/spire","purl":"pkg:golang/github.com/spiffe/spire","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.12.0","status":"affected","fixed":"0.12.1"}],"ecosystem":"Go","package":"github.com/spiffe/spire","purl":"pkg:golang/github.com/spiffe/spire","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.8.1","lastAffected":"0.8.4"},{"status":"affected","introduced":"0.9.0","fixed":"0.9.4"},{"status":"affected","introduced":"0.10.0","fixed":"0.10.2"},{"status":"affected","introduced":"0.11.0","fixed":"0.11.3"},{"status":"affected","introduced":"0.12.0","fixed":"0.12.1"}],"vendor":"cncf","product":"spire","cpe":"cpe:2.3:a:cncf:spire:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/spiffe/spire/security/advisories/GHSA-h746-rm5q-8mgq","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27098","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spiffe/spire/commit/3c5115b57afc20a0a2c2b1b9dd60dd1fd9082e13","tags":["web"],"sources":["ghsa"]},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27098","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-27098","url":"https://www.cve.org/CVERecord?id=CVE-2021-27098","licence":"CVE Terms of Use","modified":"2024-08-03T20:40:47.187Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h746-rm5q-8mgq","url":"https://github.com/advisories/GHSA-h746-rm5q-8mgq","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:37.241Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-27098","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27098","licence":"Public domain","modified":"2026-06-17T03:44:17.403Z"}],"updatedAt":"2026-11-25T22:58:00.162Z","epss":{"score":0.00565,"percentile":0.48286,"date":"2026-12-01T12:00:22.000Z"}}