{"id":"CVE-2024-41122","aliases":["GHSA-3wf2-2pq4-4rvc","GO-2024-2998"],"url":"https://o3.security/vulnerability/CVE-2024-41122","summary":"Custom environment variables allow to alter execution flow of plugins in Woodpecker","details":"### 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)","published":"2024-07-19T19:58:41.180Z","modified":"2026-08-12T03:51:40.647672107Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"go.woodpecker-ci.org/woodpecker/v2","fixedVersion":"2.7.0"},{"ecosystem":"Go","name":"go.woodpecker-ci.org/woodpecker","fixedVersion":"2.7.0"}],"fix":{"url":"https://github.com/woodpecker-ci/woodpecker/pull/3909","label":"woodpecker-ci/woodpecker#3909"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41122.json"},{"type":"ADVISORY","url":"https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-3wf2-2pq4-4rvc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41122"},{"type":"REPORT","url":"https://github.com/woodpecker-ci/woodpecker-security/issues/10"},{"type":"REPORT","url":"https://github.com/woodpecker-ci/woodpecker/issues/3929"},{"type":"FIX","url":"https://github.com/woodpecker-ci/woodpecker/pull/3909"},{"type":"FIX","url":"https://github.com/woodpecker-ci/woodpecker/pull/3934"},{"type":"WEB","url":"https://github.com/woodpecker-ci/woodpecker/commit/8aa3e5ec82c92eca3279e4be68625111eeedf1c4"},{"type":"PACKAGE","url":"https://github.com/woodpecker-ci/woodpecker"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-2998"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:40.647672107Z"}}