CVE-2023-40034
JSON

8.1high

Repositoty takeover in woodpecker-ci

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.88% (higher than 60% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-4gcf-5m39-98mcGO-2023-2014

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

Product or packageVersionsReported by
woodpecker-ci woodpecker>= 1.0.0, < 1.0.2, from 1.0.0 before 1.0.2CVE List, NVD
github.com/woodpecker-ci/woodpecker (Go)from 1.0.0 before 1.0.2GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-20

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

An attacker can post malformed webhook data which leads to an update of the repository data that can e.g. allow the takeover of a repository. This is only critical if the CI is configured for public usage and connected to a forge witch is also in public usage.

Patches

Please use either next or the latest v1.0 e.g. v1.0.2

Workarounds

Secure the CI system by making it inaccessible to untrusted entities, for example, by placing it behind a firewall.

References

Fix: https://github.com/woodpecker-ci/woodpecker/pull/2221 Backport: https://github.com/woodpecker-ci/woodpecker/pull/2222

Go Vulnerability Database

Woodpecker does not validate webhook before changing any data in github.com/woodpecker-ci/woodpecker

References

Sources

SourceRecordLicence
CVE ListCVE-2023-40034 changed 2024-10-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-4gcf-5m39-98mc changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2023-2014 changed 2026-03-03CC-BY-4.0
NVDCVE-2023-40034 changed 2026-06-17Public domain