{"id":"CVE-2026-61549","published":"2026-09-15T14:53:57Z","modified":"2026-09-16T03:56:27Z","title":"Woodpecker: Privilege escalation via unrestricted serviceAccountName in the Kubernetes backend","vendor":"woodpecker-ci","product":"woodpecker","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00278,"percentile":0.20702,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-qf34-295c-26v8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/woodpecker-ci/woodpecker/pull/6792","tags":["x_refsource_MISC"]},{"url":"https://github.com/woodpecker-ci/woodpecker/commit/5df9d52260626c074c6caafb2dc83d3bc6b53be1","tags":["x_refsource_MISC"]},{"url":"https://github.com/woodpecker-ci/woodpecker/commit/609ba481b5e912f59aaae8ca7bc22b44523c5e37","tags":["x_refsource_MISC"]},{"url":"https://github.com/woodpecker-ci/woodpecker/releases/tag/v3.16.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":4.14},{"name":"CVSS severity","points":6.3}]},"vendorSlug":"woodpecker-ci","affectedVersions":[{"vendor":"woodpecker-ci","product":"woodpecker","versions":[">= 1.0.0, < 3.16.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-15T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker/v3","vulnerableRanges":["<3.16.0"],"patched":["3.16.0"],"from":["GHSA-qf34-295c-26v8","GO-2026-5992"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/woodpecker-ci/woodpecker","vulnerableRanges":[">=1.0.0, <=1.0.4",">=1.0.0"],"patched":[],"from":["GHSA-qf34-295c-26v8","GO-2026-5992"],"provenance":"source"},{"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker/v2","vulnerableRanges":["<=2.8.3","all versions"],"patched":[],"from":["GHSA-qf34-295c-26v8","GO-2026-5992"],"provenance":"source"},{"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5992"],"provenance":"source"}],"summary":{"text":"Woodpecker CI/CD engine versions 1.0.0 through 3.16.0 have a flaw in the Kubernetes backend, where the pipeline-step setting backend_options.kubernetes.serviceAccountName is copied into the pod specification without any administrator authorization check. A user with Push permission on a connected repository, requiring only low-privilege network access to the service and no user interaction, can run pipeline pods under any ServiceAccount in the pipeline namespace and inherit its RBAC permissions, which can enable secret theft and cluster takeover when a privileged account is reachable.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:20Z"},"euvd":{"id":"EUVD-2026-78774","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-woodpecker-ci-woodpecker-cve-2024-41121","parents":[{"from":"CVE-2024-41121","to":"CVE-2026-61549","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pipeline/frontend/yaml/compiler/convert.go"],"commits":["https://github.com/woodpecker-ci/woodpecker/commit/764329ed1dbc47c4a517ccc749e3feb34059fac8","https://github.com/woodpecker-ci/woodpecker/commit/5df9d52260626c074c6caafb2dc83d3bc6b53be1","https://github.com/woodpecker-ci/woodpecker/commit/609ba481b5e912f59aaae8ca7bc22b44523c5e37"],"basis":"shared function","functions":["createProcess"]}]}],"packageHistory":[{"cve":"CVE-2026-50141","published":"2026-06-18","fixed":"3.14.1","kev":false,"link":{"from":"CVE-2026-50141","to":"CVE-2026-61549","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:go.woodpecker-ci.org/woodpecker/v3","fromFixed":"3.14.1","toFixed":"3.16.0","daysApart":89}]}},{"cve":"CVE-2026-61549","published":"2026-09-15","fixed":"3.16.0","kev":false}],"package":"Go:go.woodpecker-ci.org/woodpecker/v3"}}