Vulnerability · Published Jul 19, 2024 · Assigned by GitHub_M
CVE-2024-41121Custom workspace allow to overwrite plugin entrypoint executable in Woodpecker
High 8.8
In plain English
A high-severity injection in woodpecker from woodpecker-ci. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | go.woodpecker-ci.org/woodpecker | 2.7.0 | GHSA-xw35-rrcp-g7xm |
| Go | go.woodpecker-ci.org/woodpecker | no fix listed | GO-2024-2999 |
| Go | go.woodpecker-ci.org/woodpecker/v2 | 2.7.0 | GHSA-xw35-rrcp-g7xm |
| Go | go.woodpecker-ci.org/woodpecker/v2 | 2.7.0 | GO-2024-2999 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| woodpecker-ci | woodpecker | < 2.7.0 |
Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-xw35-rrcp-g7xm x_refsource_CONFIRM
- https://github.com/woodpecker-ci/woodpecker-security/issues/8 x_refsource_MISC
- https://github.com/woodpecker-ci/woodpecker-security/issues/9 x_refsource_MISC
- https://github.com/woodpecker-ci/woodpecker/issues/3924 x_refsource_MISC
- https://github.com/woodpecker-ci/woodpecker-security/pull/11 x_refsource_MISC
- https://github.com/woodpecker-ci/woodpecker/pull/3933 x_refsource_MISC