All reports
Medium

Woodpecker's custom environment variables allow to alter execution flow of plugins

Affected versions

Version ranges need review.

Affected versions
< 2.7.0
Fixed version
2.7.0
Affected versions
<2.7.0
Fixed version
2.7.0
Affected versions
*
Fixed version
Not reported
Affected versions
< 2.7.0
Fixed version
2.7.0

Exploitation

CVE-2024-41122

Probability of exploitation in the next 30 days: 0.62%

FIRST EPSS · 2026-11-20

Description

Impact

The server allow to create any user who can trigger a pipeline run malicious workflows:

  • Those workflows can either lead to a host takeover that runs the agent executing the workflow.

  • Or allow to extract the secrets who would be normally provided to the plugins who's entrypoint are overwritten.

Patches

https://github.com/woodpecker-ci/woodpecker/pull/3909 https://github.com/woodpecker-ci/woodpecker/pull/3934

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading? Enable the "gated" repo feature and review each change upfront of running

References
Credits
  • Daniel Kilimnik @D_K_Dev (Neodyme AG)

  • Felipe Custodio Romero @localo (Neodyme AG)

Links