CVE-2021-21432 Reject unauthorized access with GitHub PATs
Attackers can bypass authentication to access secrets via injected credentials in the netrc file within the Vela CI/CD server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-21432?
CVE-2021-21432 is a high-severity missing authorization vulnerability in go-vela server, published on 9 Apr 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Vela is a Pipeline Automation (CI/CD) framework built on Linux container technology written in Golang. An authentication mechanism added in version 0.7.0 enables some malicious user to obtain secrets utilizing the injected credentials within the `~/.netrc` file. Refer to the referenced GitHub Security Advisory for complete details. This is fixed in version 0.7.5.
Which versions are affected by CVE-2021-21432?
3 open source packages ship an affected version, including github.com/go-vela/server. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-vela/server Go | From 0.7.0 | 0.7.5 |
github.com/go-vela/server Go | From 0.7.0 | 0.7.5 |
github.com/go-vela/server Go | From 0.7.0 | 0.7.5 |
Products include Go-Vela Vela.
How do I fix CVE-2021-21432?
Upgrade github.com/go-vela/server to 0.7.5 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2021-21432 being exploited?
There is no known exploitation of CVE-2021-21432 in the wild and no public exploit code.
Sources
Also known as GHSA-8j3f-mhq8-gmh4, GO-2022-0812.