CVE-2023-40034 Repositoty takeover in woodpecker-ci

High 8.1 Published Updated

Attackers can take over repositories by sending malformed webhook data if the CI system is publicly accessible.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-40034?

CVE-2023-40034 is a high-severity vulnerability in woodpecker-ci woodpecker, published on 16 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2023-40034?

3 open source packages ship an affected version, including github.com/woodpecker-ci/woodpecker. It affects 1 product.

PackageAffectedFixed in
github.com/woodpecker-ci/woodpecker GoFrom 1.0.01.0.2
github.com/woodpecker-ci/woodpecker GoFrom 1.0.01.0.2
github.com/woodpecker-ci/woodpecker GoFrom 1.0.01.0.2

Products include Woodpecker-Ci Woodpecker.

How do I fix CVE-2023-40034?

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

Is CVE-2023-40034 being exploited?

There is no known exploitation of CVE-2023-40034 in the wild and no public exploit code.

Sources

Also known as GHSA-4gcf-5m39-98mc, GO-2023-2014.

Is CVE-2023-40034 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free