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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| opencats | OpenCATS | ≤ 0.9.7.4 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
OpenCATS Installer PHP Code Injection
exploit/multi/http/opencats_installer_rce
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- OpenCATS - Command Injection http/cves/2026/CVE-2026-27760.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://chocapikk.com/posts/2026/opencats-installer-rce/ technical-description exploit
- https://github.com/opencats/OpenCATS/pull/706 issue-tracking patch
- https://github.com/opencats/OpenCATS/commit/3002a29f4c3cada1aa2c4f3d4ae4e189906606b6 patch
- https://github.com/opencats/OpenCATS/blob/46e4727/lib/CATSUtility.php#L142-L172 related
- https://github.com/opencats/OpenCATS/blob/46e4727/modules/install/ajax/ui.php#L130 related
- https://www.vulncheck.com/advisories/opencats-php-code-injection-via-installer-ajax-endpoint third-party-advisory