Vulnerability · Published Jul 19, 2024 · Assigned by GitHub_M
CVE-2024-41122Custom environment variables allow to alter execution flow of plugins in Woodpecker
High 7.5
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.6% (higher than 50% 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-3wf2-2pq4-4rvc |
| Go | go.woodpecker-ci.org/woodpecker | no fix listed | GO-2024-2998 |
| Go | go.woodpecker-ci.org/woodpecker/v2 | 2.7.0 | GHSA-3wf2-2pq4-4rvc |
| Go | go.woodpecker-ci.org/woodpecker/v2 | 2.7.0 | GO-2024-2998 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| woodpecker-ci | woodpecker | < 2.7.0 |
Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-3wf2-2pq4-4rvc x_refsource_CONFIRM
- https://github.com/woodpecker-ci/woodpecker-security/issues/10 x_refsource_MISC
- https://github.com/woodpecker-ci/woodpecker/issues/3929 x_refsource_MISC
- https://github.com/woodpecker-ci/woodpecker/pull/3909 x_refsource_MISC
- https://github.com/woodpecker-ci/woodpecker/pull/3934 x_refsource_MISC