GHSA-h746-rm5q-8mgq

Suggest an improvement
Source
https://github.com/advisories/GHSA-h746-rm5q-8mgq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-h746-rm5q-8mgq/GHSA-h746-rm5q-8mgq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-h746-rm5q-8mgq
Aliases
Related
Published
2021-05-21T14:31:11Z
Modified
2023-11-08T04:05:23.449430Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Legacy Node API Allows Impersonation in github.com/spiffe/spire/pkg/server/endpoints/node
Details

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 (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.

What are the changes introduced by the patched versions?

The 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.

The patched version also includes a back-ported change that improves the handling of file descriptors related to workload attestation in SPIRE Agent.

There are no changes in the expected behavior of SPIRE.

Should I upgrade SPIRE?

All SPIRE users running affected versions are advised to upgrade to the corresponding patched version.

Workarounds

No workarounds have been identified for this vulnerability.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-284",
        "CWE-295"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-21T14:28:38Z"
}
References

Affected packages

Go / github.com/spiffe/spire

Package

Name
github.com/spiffe/spire
View open source insights on deps.dev
Purl
pkg:golang/github.com/spiffe/spire

Affected ranges

Type
SEMVER
Events
Introduced
0.8.1
Fixed
0.8.5

Go / github.com/spiffe/spire

Package

Name
github.com/spiffe/spire
View open source insights on deps.dev
Purl
pkg:golang/github.com/spiffe/spire

Affected ranges

Type
SEMVER
Events
Introduced
0.9.0
Fixed
0.9.4

Go / github.com/spiffe/spire

Package

Name
github.com/spiffe/spire
View open source insights on deps.dev
Purl
pkg:golang/github.com/spiffe/spire

Affected ranges

Type
SEMVER
Events
Introduced
0.10.0
Fixed
0.10.2

Go / github.com/spiffe/spire

Package

Name
github.com/spiffe/spire
View open source insights on deps.dev
Purl
pkg:golang/github.com/spiffe/spire

Affected ranges

Type
SEMVER
Events
Introduced
0.11.0
Fixed
0.11.3

Go / github.com/spiffe/spire

Package

Name
github.com/spiffe/spire
View open source insights on deps.dev
Purl
pkg:golang/github.com/spiffe/spire

Affected ranges

Type
SEMVER
Events
Introduced
0.12.0
Fixed
0.12.1