Advisory

GHSA-4gcf-5m39-98mc

Also known as: CVE-2023-40034, GO-2023-2014

Summary

Woodpecker does not validate webhook before changing any data

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-08-16 21:02 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

github.com/woodpecker-ci/woodpecker

Go · All systems

Affected

  • introduced 1.0.0, fixed 1.0.2 (semver)

Fixed versions

1.0.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences