All vulnerabilities

Servers and applications

CVE-2026-27882

Timing Attack in GitLab Webhook Token Validation

Severity
Medium 4.8
Published
25 Jun 2026
Last changed
25 Jun 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.0.0-beta.461
Exploit chance
0.2% in the next 30 daysHigher than 13% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Timing discrepancy (CWE-208)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Also known as
GHSA-x525-46rq-mr8c
Sources
Project advisories (GitHub)

Description

The GitLab webhook endpoint uses a non-constant-time string comparison operator (!==) to validate the webhook secret token. This implementation is vulnerable to timing attacks, which could allow an attacker to gradually discover the secret token by measuring response time differences.

Vulnerable Code Location: app/Http/Controllers/Webhook/Gitlab.php:103

PHP's standard string comparison operator (!==) performs a byte-by-byte comparison and returns as soon as a mismatch is found. This creates a timing side-channel where:

  • Tokens with more matching prefix characters take longer to compare
  • An attacker can statistically determine each character of the token by measuring response times

The GitHub webhook handler in the same codebase correctly uses hash_equals():

Secure Code: app/Http/Controllers/Webhook/Github.php:83

The Bitbucket webhook handler also uses the secure approach:

Secure Code: app/Http/Controllers/Webhook/Bitbucket.php:64

From coollabsio/coolify's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
CoolifyServers and applications · github:coollabsio/coolify
  • Every version before 4.0.0-beta.461

About Coolify

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

From its GitHub repository.
Docker Hub pulls
4,970,195Docker Hub, 15 Nov 2026
GitHub stars
66,095GitHub, 15 Nov 2026
Forks
5,989GitHub, 15 Nov 2026
Latest release
v4.7.5GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
Apache-2.0GitHub
First published on GitHub
25 Jan 2021GitHub

References