Exploit database

Vulnerability

CVE-2026-27760

OpenCATS PHP Code Injection via installer AJAX endpoint

Vulnerability details

Score
9.2
Severity
critical

CVSS 4.0 · VulnCheck

Vector string

CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Description

OpenCATS prior to commit 3002a29 contains a PHP code injection vulnerability in the installer AJAX endpoint that allows unauthenticated attackers to execute arbitrary code by injecting PHP statements into the databaseConnectivity action parameter. Attackers can break out of the define() string context in config.php using a single quote and statement separator to inject malicious PHP code that persists and executes on every subsequent page load when the installation wizard remains incomplete.

CVE Program

Exploit source choices

1 source
OpenCATS Installer PHP Code Injection
MSF-multi--http--opencats_installer_rceMetasploitLinux,PHP,Unix,Windows / remotePreferred

This module exploits an unauthenticated PHP code injection in the OpenCATS installer AJAX endpoint (CVE-2026-27760). The databaseConnectivity action passes the user POST parameter directly to changeConfigSetting(), which interpolates it into a define() statement in config.php without any sanitization. This only works when the installation wizard was never completed, meaning the INSTALL_BLOCK file is absent. The exploit injects an eval() backdoor into config.php, probes until the injected code is live (handles OPcache revalidation transparently), triggers the payload via index.php, and then restores config.php.

2026-04-28opencats_installer_rce.rb