Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. go.woodpecker-ci.org/woodpecker/v2
  4. ›
  5. CVE-2024-41122

CVE-2024-41122: Woodpecker's custom environment variables allow to alter execution flow of plugins

July 19, 2024 (updated November 18, 2024)

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.

References

  • github.com/advisories/GHSA-3wf2-2pq4-4rvc
  • github.com/woodpecker-ci/woodpecker
  • github.com/woodpecker-ci/woodpecker-security/issues/10
  • github.com/woodpecker-ci/woodpecker/commit/8aa3e5ec82c92eca3279e4be68625111eeedf1c4
  • github.com/woodpecker-ci/woodpecker/issues/3929
  • github.com/woodpecker-ci/woodpecker/pull/3909
  • github.com/woodpecker-ci/woodpecker/pull/3934
  • github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-3wf2-2pq4-4rvc
  • nvd.nist.gov/vuln/detail/CVE-2024-41122
  • pkg.go.dev/vuln/GO-2024-2998

Code Behaviors & Features

Detect and mitigate CVE-2024-41122 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.7.0

Fixed versions

  • 2.7.0

Solution

Upgrade to version 2.7.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

go/go.woodpecker-ci.org/woodpecker/v2/CVE-2024-41122.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:31 +0000.