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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 50.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogo.woodpecker-ci.org/woodpecker2.7.0GHSA-3wf2-2pq4-4rvc
Gogo.woodpecker-ci.org/woodpeckerno fix listedGO-2024-2998
Gogo.woodpecker-ci.org/woodpecker/v22.7.0GHSA-3wf2-2pq4-4rvc
Gogo.woodpecker-ci.org/woodpecker/v22.7.0GO-2024-2998

Affected products (as reported)

VendorProductVersions
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