Woodpecker: Privilege escalation via unrestricted serviceAccountName in the Kubernetes backend
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| woodpecker-ci | woodpecker | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Woodpecker-ci | Woodpecker |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-qf34-295c-26v8 | Woodpecker: Privilege escalation via unrestricted serviceAccountName in the Kubernetes backend |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.278% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Woodpecker-ci
Woodpecker-ci woodpecker |
|
| Vendors & Products |
Woodpecker-ci
Woodpecker-ci woodpecker |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Woodpecker is a CI/CD engine. From 1.0.0 until 3.16.0, pipeline/backend/kubernetes/backend_options.go defines backend_options.kubernetes.serviceAccountName, and the Kubernetes backend in pipeline/backend/kubernetes/pod.go copies that pipeline-step value directly into the pod specification without administrator authorization. Any user with Push permission on a connected repository can therefore run pipeline pods under an arbitrary ServiceAccount in the pipeline namespace and inherit that account's RBAC permissions. When a privileged ServiceAccount is reachable, the attacker can exfiltrate secrets such as database credentials, API keys, and TLS certificates and may take over the cluster. This issue is fixed in version 3.16.0. | |
| Title | Woodpecker: Privilege escalation via unrestricted serviceAccountName in the Kubernetes backend | |
| Weaknesses | CWE-269 CWE-862 |
|
| References |
|
|
| Metrics |
cvssV4_0
|