NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2024-41121: Woodpecker's custom workspace allow to overwrite plugin entrypoint executable

highCVSS 4.0 8.7 · 3.1 8.8GHSA-xw35-rrcp-g7xm

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.

Published Jul 19, 2024 · Updated Aug 7, 2024

Affected packages

go.woodpecker-ci.org/woodpecker/v2

Ecosystem
Go
Affected
< 2.7.0
Fixed in
2.7.0
Check
go list -m go.woodpecker-ci.org/woodpecker/v2

go.woodpecker-ci.org/woodpecker

Ecosystem
Go
Affected
< 2.7.0
Fixed in
2.7.0
Check
go list -m go.woodpecker-ci.org/woodpecker

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries