Advisory

GHSA-xw35-rrcp-g7xm

Also known as: CVE-2024-41121, GO-2024-2999

Summary

Woodpecker's custom workspace allow to overwrite plugin entrypoint executable

Details

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/3933

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

References

  • https://github.com/woodpecker-ci/woodpecker/pull/3933
  • https://github.com/woodpecker-ci/woodpecker-security/pull/11
  • https://github.com/woodpecker-ci/woodpecker-security/issues/8 (info will be published later at https://github.com/woodpecker-ci/woodpecker/issues/3924)
  • https://github.com/woodpecker-ci/woodpecker-security/issues/9 (info will be published later at https://github.com/woodpecker-ci/woodpecker/issues/3924)
  • https://github.com/woodpecker-ci/woodpecker/issues/3924 (info will be published later once we got adoption of the update)

Credits

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-07-19 19:59 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

go.woodpecker-ci.org/woodpecker/v2

Go · All systems

Affected

  • introduced 0, fixed 2.7.0 (semver)

Fixed versions

2.7.0

Fix

go.woodpecker-ci.org/woodpecker

Go · All systems

Affected

  • introduced 0, fixed 2.7.0 (semver)

Fixed versions

2.7.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences