{"id":"CVE-2024-41122","aliases":["CVE-2024-41122","GHSA-3wf2-2pq4-4rvc","GO-2024-2998"],"related":[],"kind":"vulnerability","state":"published","title":"Custom environment variables allow to alter execution flow of plugins in Woodpecker","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe server allow to create any user who can trigger a pipeline run malicious workflows:\n- Those workflows can either lead to a host takeover that runs the agent executing the workflow.\n- Or allow to extract the secrets who would be normally provided to the plugins who's entrypoint are overwritten.\n\n### Patches\nhttps://github.com/woodpecker-ci/woodpecker/pull/3909\nhttps://github.com/woodpecker-ci/woodpecker/pull/3934\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n**Enable the \"gated\" repo feature and review each change upfront of running**\n\n### References\n- https://github.com/woodpecker-ci/woodpecker/pull/3909\n- https://github.com/woodpecker-ci/woodpecker/pull/3934\n- https://github.com/woodpecker-ci/woodpecker-security/issues/10 (info will be published later at https://github.com/woodpecker-ci/woodpecker/issues/3929)\n- https://github.com/woodpecker-ci/woodpecker/issues/3929 (info will be published later once we got adoption of the update)\n\n### Credits\n\n- Daniel Kilimnik [@D_K_Dev](https://x.com/D_K_Dev) (Neodyme AG)\n- Felipe Custodio Romero [@_localo_](https://x.com/_localo_) (Neodyme AG)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Woodpecker's custom environment variables allow to alter execution flow of plugins in go.woodpecker-ci.org/woodpecker","format":"markdown","source":"go"},{"lang":"es","text":"Woodpecker es un motor CI/CD simple pero potente con gran extensibilidad. El servidor permite crear cualquier usuario que pueda desencadenar una canalización que ejecute workflows maliciosos: 1. Esos workflows pueden conducir a una toma de control del host que ejecuta el agente que ejecuta el workflow. 2. O permitir extraer los secretos que normalmente se proporcionarían a los complementos cuyo punto de entrada se sobrescribe. Este problema se solucionó en la versión 2.7.0. Se recomienda a los usuarios que actualicen. No se conocen soluciones para esta vulnerabilidad.","source":"nvd"}],"published":"2024-07-19T19:58:41.180Z","modified":"2026-09-10T03:50:16.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"< 2.7.0","status":"affected"}],"vendor":"woodpecker-ci","product":"woodpecker","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.7.0","status":"affected"}],"vendor":"woodpecker-ci","product":"woodpecker","cpe":"cpe:2.3:a:woodpecker-ci:woodpecker:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.7.0"}],"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker/v2","purl":"pkg:golang/go.woodpecker-ci.org/woodpecker/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.7.0"}],"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker","purl":"pkg:golang/go.woodpecker-ci.org/woodpecker","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker","purl":"pkg:golang/go.woodpecker-ci.org/woodpecker","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.7.0"}],"ecosystem":"Go","package":"go.woodpecker-ci.org/woodpecker/v2","purl":"pkg:golang/go.woodpecker-ci.org/woodpecker/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.7.0"}],"vendor":"woodpecker-ci","product":"woodpecker","cpe":"cpe:2.3:a:woodpecker-ci:woodpecker:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-3wf2-2pq4-4rvc","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/woodpecker-ci/woodpecker-security/issues/10","tags":["broken-link","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/woodpecker-ci/woodpecker/issues/3929","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/woodpecker-ci/woodpecker/pull/3909","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/woodpecker-ci/woodpecker/pull/3934","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41122","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/woodpecker-ci/woodpecker/commit/8aa3e5ec82c92eca3279e4be68625111eeedf1c4","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/woodpecker-ci/woodpecker","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2998","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-22T17:39:33.315Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41122","url":"https://www.cve.org/CVERecord?id=CVE-2024-41122","licence":"CVE Terms of Use","modified":"2024-08-02T04:46:52.559Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3wf2-2pq4-4rvc","url":"https://github.com/advisories/GHSA-3wf2-2pq4-4rvc","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.190Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2998","url":"https://pkg.go.dev/vuln/GO-2024-2998","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:34.405Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41122","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41122","licence":"Public domain","modified":"2026-06-17T07:47:19.223Z"}],"updatedAt":"2026-11-25T22:58:43.067Z","epss":{"score":0.00733,"percentile":0.55607,"date":"2026-12-01T12:00:22.000Z"}}