All vulnerabilities

Servers and applications

CVE-2026-42147

SSRF via S3 Storage Endpoint in testConnection()

Severity
Medium 4.9
Published
2 Jul 2026
Last changed
2 Jul 2026
Added to UpHeron
22 Oct 2026
Fixed in
4.0.0-beta.474
Exploit chance
0.3% in the next 30 daysHigher than 25% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Server-side request forgery (CWE-918)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-pwm4-w33c-wjf3
Sources
Project advisories (GitHub)

Description

CWE: CWE-918 - Server-Side Request Forgery (SSRF)

The S3 Storage functionality in Coolify allows authenticated users to configure a custom S3-compatible endpoint URL. When creating or testing an S3 storage connection, the testConnection() method in app/Models/S3Storage.php sends an HTTP GET request (ListObjectsV2) to the user-controlled endpoint without validating that the URL does not point to internal/private network addresses.

The endpoint field is validated only as required|url|max:255, which accepts any URL including internal hostnames (e.g., http://169.254.169.254, http://localhost:6379, http://internal-service:8080).

This allows an authenticated attacker to:

  • Access cloud metadata services (e.g., AWS IMDSv1 at 169.254.169.254) to steal IAM credentials
  • Probe internal network services and perform port scanning
  • Interact with internal services (Redis, PostgreSQL, etc.) reachable from the Coolify server
  • Obtain error-based information disclosure about internal service…
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.474

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