# Woodpecker's custom environment variables allow to alter execution flow of plugins

Advisory record · `GHSA-3wf2-2pq4-4rvc`

- **Identifiers:** `GHSA-3wf2-2pq4-4rvc` · `CVE-2024-41122` · `GO-2024-2998`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-74](https://cwe.mitre.org/data/definitions/74.html)
- **Tags:** [Other injection](https://agentprime.io/advisories/tag/injection.md)
- **Published:** 19 Jul 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 19 Jul 2024, 19:59 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `go.woodpecker-ci.org/woodpecker/v2` (Go): affected `<2.7.0`; fixed in `2.7.0`
- `go.woodpecker-ci.org/woodpecker` (Go): affected `<2.7.0`; fixed in `2.7.0`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Woodpecker CI versions before 2.7.0 (both the go.woodpecker-ci.org/woodpecker/v2 and go.woodpecker-ci.org/woodpecker modules) allow a user who can trigger pipeline runs to create malicious workflows through custom environment variables. Such a user could take over the host running the agent that executes the workflow, or extract secrets intended for plugins whose entrypoints were overwritten. Upgrade to version 2.7.0 or later. As a workaround, enable the "gated" repo feature and review each change before its pipeline runs.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0062, the 50th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:15 UTC: First seen by agentprime
- 31 Oct 2026, 14:15 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-3wf2-2pq4-4rvc)

## Sources

- [GitHub Advisory Database: GHSA-3wf2-2pq4-4rvc](https://github.com/advisories/GHSA-3wf2-2pq4-4rvc)
- [OSV: GHSA-3wf2-2pq4-4rvc](https://osv.dev/vulnerability/GHSA-3wf2-2pq4-4rvc)
- <https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-3wf2-2pq4-4rvc>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41122>
- <https://github.com/woodpecker-ci/woodpecker-security/issues/10>
- <https://github.com/woodpecker-ci/woodpecker/issues/3929>
- <https://github.com/woodpecker-ci/woodpecker/pull/3909>
- <https://github.com/woodpecker-ci/woodpecker/pull/3934>
- <https://github.com/woodpecker-ci/woodpecker/commit/8aa3e5ec82c92eca3279e4be68625111eeedf1c4>
- <https://github.com/woodpecker-ci/woodpecker>
- <https://pkg.go.dev/vuln/GO-2024-2998>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-3wf2-2pq4-4rvc>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3wf2-2pq4-4rvc/>. Everything for agents: <https://agentprime.io/llms.txt>.
