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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.01% (percentile 62, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-4gcf-5m39-98mc, GO-2023-2014
- **Published:** 2023-08-16T20:48:03.087Z
- **Modified:** 2026-09-10T03:49:57.379Z

## Who should check

- Projects that depend on Go package github.com/woodpecker-ci/woodpecker (\>= 1.0.0, \< 1.0.2)
- Anyone running woodpecker-ci woodpecker \>= 1.0.0, \< 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.

## Affected and fixed versions

- Go `github.com/woodpecker-ci/woodpecker`: affected \>= 1.0.0, \< 1.0.2; fixed 1.0.2 (osv)
- woodpecker-ci woodpecker: \>= 1.0.0, \< 1.0.2 (cvelist)

## Mitigation

- Upgrade github.com/woodpecker-ci/woodpecker to 1.0.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-40034. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-40034.md
Affected: github.com/woodpecker-ci/woodpecker >= 1.0.0, < 1.0.2
Fixed in: 1.0.2

Steps:
1. Search this machine and project for github.com/woodpecker-ci/woodpecker (Go), woodpecker-ci woodpecker: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-40034 being exploited?

There is no confirmed exploitation: CVE-2023-40034 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.01% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-40034?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-40034?

github.com/woodpecker-ci/woodpecker \>= 1.0.0, \< 1.0.2.

### Is there a fix for CVE-2023-40034?

Yes. Fixed in 1.0.2. Upgrade github.com/woodpecker-ci/woodpecker to 1.0.2 or later.

### How do I check if I'm affected by CVE-2023-40034?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-4gcf-5m39-98mc>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-40034>
- patch: <https://github.com/woodpecker-ci/woodpecker/pull/2221>
- patch: <https://github.com/woodpecker-ci/woodpecker/pull/2222>
- patch: <https://github.com/woodpecker-ci/woodpecker/commit/6e4c2f84cc84661d58cf1c0e5c421a46070bb105>
- other: <https://github.com/woodpecker-ci/woodpecker>
- other: <https://github.com/woodpecker-ci/woodpecker/releases/tag/v1.0.2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-40034>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4gcf-5m39-98mc> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-2014> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-40034> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-40034>
