{"id":"CVE-2024-41122","published":"2024-07-19T19:58:41Z","modified":"2024-08-02T04:46:52Z","title":"Custom environment variables allow to alter execution flow of plugins in Woodpecker","vendor":"woodpecker-ci","product":"woodpecker","tier":"tail","description":{"text":"Woodpecker is a simple yet powerful CI/CD engine with great extensibility. The server allow to create any user who can trigger a pipeline run malicious workflows: 1. Those workflows can either lead to a host takeover that runs the agent executing the workflow. 2. Or allow to extract the secrets who would be normally provided to the plugins who's entrypoint are overwritten. This issue has been addressed in release version 2.7.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00618,"percentile":0.50571,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-3wf2-2pq4-4rvc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/woodpecker-ci/woodpecker-security/issues/10","tags":["x_refsource_MISC"]},{"url":"https://github.com/woodpecker-ci/woodpecker/issues/3929","tags":["x_refsource_MISC"]},{"url":"https://github.com/woodpecker-ci/woodpecker/pull/3909","tags":["x_refsource_MISC"]},{"url":"https://github.com/woodpecker-ci/woodpecker/pull/3934","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.11},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"woodpecker-ci","affectedVersions":[{"vendor":"woodpecker-ci","product":"woodpecker","versions":["< 2.7.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-07-22T17:39:33.315211Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker/v2","vulnerableRanges":["<2.7.0"],"patched":["2.7.0"],"from":["GHSA-3wf2-2pq4-4rvc","GO-2024-2998"],"provenance":"source"},{"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker","vulnerableRanges":["<2.7.0","all versions"],"patched":["2.7.0"],"from":["GHSA-3wf2-2pq4-4rvc","GO-2024-2998"],"provenance":"source"}],"summary":{"text":"The flaw lies in Woodpecker, a CI/CD engine, where custom environment variables can alter the execution flow of plugins. An attacker with a low-privilege account that can trigger pipeline runs, reachable over the network, can submit malicious workflows that either take over the host running the agent or extract secrets intended for plugins whose entrypoints have been overridden, though exploiting this requires a non-trivial attack complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:22Z"},"euvd":{"id":"EUVD-2024-2240","exploited":false,"provenance":"source"}}