LOW 3.1

CVE-2026-42145: Coolify File Upload Validation Vulnerability

Coolify, a self-hosted server and application management platform, contains a vulnerability in its database backup upload feature that allows authenticated users to upload files without proper validation. An attacker with valid credentials could upload oversized or malicious files to disrupt service availability. The flaw affects all versions before 4.0.0-beta.474 and requires user authentication, limiting the immediate threat surface but remaining a denial-of-service risk in environments where insider risk or credential compromise is a concern.

Source data · NVD / CISA · public domain

CVSS
3.1 · 3.1 LOW · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
Weaknesses (CWE)
CWE-434, CWE-770
Affected products
0 configuration(s)
Published / Modified
2026-07-07 / 2026-07-09

NVD description (verbatim)

Coolify is an open-source and self-hostable tool for managing servers, applications, and databases. Prior to 4.0.0-beta.474, the file upload endpoint (app/Http/Controllers/UploadController.php) for database backup restore uploads did not enforce file type or size validation, allowing an authenticated user to upload unexpected or oversized files that could affect service availability. This issue is fixed in version 4.0.0-beta.474.

4 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in Coolify's UploadController.php file handling backup restore uploads. The endpoint lacks file type validation (whitelist/extension checks) and file size constraints, violating secure file upload practices. An authenticated attacker can submit arbitrary files or exceed expected size limits, potentially exhausting storage resources, triggering out-of-memory conditions, or introducing malformed data into the restoration pipeline. The CVSS 3.1 score of 3.1 (LOW) reflects the authentication requirement and availability-only impact, with no confidentiality or integrity compromise.

Business impact

Organizations using Coolify for production database and application management face service disruption risks if an insider or external attacker with compromised credentials exploits this flaw. Oversized uploads could consume disk space or memory, causing backup/restore operations to fail or the application to become unresponsive. For teams relying on Coolify for critical infrastructure management, this creates operational risk during disaster recovery scenarios when backup restore functionality is needed most. The attack surface is limited to authenticated users, but compromise of a single service account elevates risk significantly.

Affected systems

Coolify versions prior to 4.0.0-beta.474 are affected. No other products or vendors are listed as vulnerable. Self-hosted Coolify deployments of any size are in scope if running an unpatched version and if network or internal access to the application is available to authenticated users.

Exploitability

Exploitation requires valid authentication credentials and direct access to the file upload endpoint. The attacker cannot trigger the vulnerability anonymously. However, in environments where service accounts are shared, credentials are logged in accessible places, or multi-tenant deployments exist, this barrier is substantially lower. The attack itself is trivial—uploading a file requires no special tools or bypass techniques—making it a low-complexity, low-skill exploit once access is obtained. Real-world likelihood depends heavily on credential hygiene and access controls within the deployment.

Remediation

Upgrade Coolify to version 4.0.0-beta.474 or later. This release introduces file type and size validation on the upload endpoint, preventing oversized and unexpected files from being accepted. Administrators should also review access control policies for the backup restore function, restrict upload endpoint access to authorized personnel only, and monitor upload activity for anomalies. Consider implementing network-level upload size limits as a defense-in-depth measure.

Patch guidance

Verify the exact patch version available for your Coolify installation by consulting the official Coolify release notes and advisory. The fix is confirmed in version 4.0.0-beta.474 and any subsequent releases. Test the upgrade in a staging environment before deploying to production, as backup/restore functionality is critical. No rollback guidance is documented; ensure you have working backups before upgrading.

Detection guidance

Monitor upload endpoint logs (app/Http/Controllers/UploadController.php or equivalent web server access logs) for unusual file sizes or types being submitted. Alert on uploads exceeding expected database backup sizes for your environment. Correlate uploads with disk space usage spikes or out-of-memory events. If using a web application firewall (WAF), implement rules to restrict upload Content-Type headers and payloads to expected formats (e.g., tar, gzip, SQL). Track failed restore operations that may indicate malformed uploads.

Why prioritize this

This vulnerability merits prompt but non-emergency attention. The LOW CVSS score and authentication requirement limit immediate enterprise risk, but the attack simplicity and potential for denial of service during critical recovery operations justify timely patching. Organizations running Coolify in production environments should schedule an upgrade within their standard patch cycle. Those managing sensitive infrastructure or with weak credential controls should accelerate the timeline.

Risk score, explained

CVSS 3.1 score of 3.1 reflects: (1) network-accessible attack vector, (2) high attack complexity due to authentication requirement, (3) low privilege needed once authenticated, (4) no user interaction required, (5) availability impact only (denial of service), and (6) no confidentiality or integrity compromise. The score appropriately penalizes the authentication gate while recognizing the operational disruption potential. In-context risk may be higher or lower depending on deployment scale, credential management, and reliance on backup/restore operations.

Frequently asked questions

Does this vulnerability allow remote code execution or data theft?

No. The vulnerability is limited to denial of service through oversized file uploads. There is no path to arbitrary code execution, data exfiltration, or privilege escalation. Integrity and confidentiality are not compromised.

Can an unauthenticated user exploit this vulnerability?

No. The file upload endpoint requires valid authentication credentials. An attacker must first obtain legitimate user or service account credentials through phishing, credential stuffing, or compromise of another system. This significantly limits the attack surface compared to unauthenticated vulnerabilities.

What should I do if I cannot upgrade Coolify immediately?

Implement network-level access controls to restrict who can reach the upload endpoint. Use a reverse proxy or firewall to enforce IP whitelisting or require additional authentication (e.g., VPN, mTLS). Monitor upload activity closely and set disk space alerts. Plan a maintenance window for patching within the next two weeks.

Are there indicators of compromise if this vulnerability was exploited?

Yes. Look for unusually large file uploads to the backup restore endpoint, failed restore operations, or sudden disk space consumption following uploads. Web server logs will show POST requests to the UploadController endpoint with abnormal Content-Length headers or file names. Review authentication logs for unauthorized or suspicious account usage around the time of uploads.

This analysis is provided for informational purposes and reflects the details available as of the publication date. Verify all patch versions, affected software versions, and remediation steps against official vendor advisories and release notes before taking action. CVSS scores and severity ratings are provided by the National Vulnerability Database and may be updated. Organizations must conduct their own risk assessment based on their specific environment, configurations, and threat model. SEC.co makes no warranty regarding exploit availability, real-world attack prevalence, or the completeness of detection methods described. Source: NVD (public-domain), retrieved 2026-08-15. Analysis generated by SEC.co (claude-haiku-4-5).