server: Improper Privilege Management
CVE-2022-39395 is a critical-severity improper privilege management vulnerability in server from Go-vela, with a CVSS 3.1 base score of 9.9 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. Affected server versions: < 0.16.0; < 0.17.0. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 1.44% chance of exploitation within 30 days, higher than 74% of scored CVEs.
Critical severity: a successful attack would have severe impact.
What to do
- Update UI to 0.17.0 or a later version.
- Update Worker to 0.16.0 or a later version.
- Read the advisory on github.com for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Go-vela | server | < 0.16.0; < 0.17.0 | Not stated |
| Go-vela | UI | before 0.17.0 | 0.17.0 |
| Go-vela | Worker | before 0.16.0 | 0.16.0 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.6 | Critical | CNA (github.com) |
| CVSS 3.1 | 9.9 | Critical | NVD |
Official description
Vela is a Pipeline Automation (CI/CD) framework built on Linux container technology written in Golang. In Vela Server and Vela Worker prior to version 0.16.0 and Vela UI prior to version 0.17.0, some default configurations for Vela allow exploitation and container breakouts. Users should upgrade to Server 0.16.0, Worker 0.16.0, and UI 0.17.0 to fix the issue. After upgrading, Vela administrators will need to explicitly change the default settings to configure Vela as desired. Some of the fixes will interrupt existing workflows and will require Vela administrators to modify default settings. However, not applying the patch (or workarounds) will continue existing risk exposure. Some workarounds are available. Vela administrators can adjust the worker's `VELA_RUNTIME_PRIVILEGED_IMAGES` setting to be explicitly empty, leverage the `VELA_REPO_ALLOWLIST` setting on the server component to restrict access to a list of repositories that are allowed to be enabled, and/or audit enabled repositories and disable pull_requests if they are not needed.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Privilege Management
The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
How developers prevent this class of flaw
- Very carefully manage the setting, management, and handling of privileges. Explicitly manage trust zones in the software.
- Follow the principle of least privilege when assigning access rights to entities in a software system.
- Consider following the principle of separation of privilege. Require multiple conditions to be met before permitting access to a system resource.
More Improper Privilege Management vulnerabilities (CWE-269)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/go-vela/server/security/advisories/GHSA-5m7g-pj8w-7593Third Party Advisory
- github.com/go-vela/ui/security/advisories/GHSA-xf39-98m2-889vThird Party Advisory
- github.com/go-vela/worker/security/advisories/GHSA-2w78-ffv6-p46wThird Party Advisory
- go-vela.github.io/docs/installation/server/reference/#vela_repo_allowlist
- go-vela.github.io/docs/installation/worker/reference/#vela_runtime_privileged_images
Patches and release notes
- github.com/go-vela/server/commit/05558ee99d70f7d6f83bed7c8f78ac0b35fa26f4Third Party Advisory
- github.com/go-vela/server/releases/tag/v0.16.0Release Notes, Third Party Advisory
- github.com/go-vela/ui/releases/tag/v0.17.0Release Notes, Third Party Advisory
- github.com/go-vela/worker/releases/tag/v0.16.0Release Notes, Third Party Advisory
Third-party and government advisories
- docs.docker.com/engine/security/#docker-daemon-attack-surfaceTechnical Description, Third Party Advisory
Other vulnerabilities in server
- 8.5 High severity
Recent Improper Privilege Management vulnerabilities
- 9.8 Critical severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 8.8 High severity
Spotted an error? Tell us.