# Unpatched Batflat CMS flaw allows RCE

Published: 2026-11-16 · Severity: routine · Sectors: Technology
Canonical: https://vorant.io/reports/3686421b-d8ac-5882-be5a-477e5eed4d2d/unpatched-batflat-cms-flaw-allows-rce
Vorant's rating weighs the evidence in the report: confirmed exploitation, victims claimed, CVSS and EPSS, and how many sources agree. It rates the report, not your assets.

> Unauthenticated attackers can exploit a template injection bug in Batflat CMS's contact form to execute arbitrary PHP code; no fix is coming.

Source: cert.pl — https://cert.pl/en/posts/2026/11/CVE-2026-111559

## What to check

- Applies to: The 1 CVE named below. Whether you run an affected version is not assessed: check the versions the source lists.
- Exploitation: No exploitation in the wild and no public exploit is recorded for the CVEs named.

CERT Polska coordinated disclosure of CVE-2026-111559, a server-side template injection vulnerability (CWE-1336) in Batflat CMS, affecting versions 1.2.0 through 1.3.6. The flaw exists in the /contact endpoint, which fails to sanitize user-supplied data before passing it to the template engine. A remote, unauthenticated attacker can submit a crafted POST request to achieve arbitrary PHP code execution with www-data privileges, effectively giving full control over the web application and potentially the underlying host.

The vulnerability was reported to CERT Polska by a researcher known as Tymbark7372. Critically, the Batflat project is no longer maintained, and the vendor has not released a patch — nor is one expected. This leaves any organization still running Batflat CMS permanently exposed unless they take independent mitigating action.

Defenders running Batflat should treat this as an unpatchable risk: consider taking affected instances offline, migrating to a maintained CMS, or at minimum placing a WAF in front of the /contact endpoint to block anomalous POST payloads. Monitor web server logs for unusual POST requests to /contact and unexpected PHP process spawning under the www-data account as indicators of exploitation attempts.

## Mentioned in this report

- Vulnerabilities: CVE-2026-111559

## Detection guidance (public sample)

### Batflat CMS Contact Endpoint Request With Template or PHP Injection Markers

ATT&CK: T1190

A behavioural hunt for the technique in general, not a signature for the CVEs this report names. Needs webserver logs. Status: experimental. Generated from the report; not run against telemetry.

POST to the Batflat /contact endpoint carrying PHP or template-injection markers in the URI, consistent with CVE-2026-111559 exploitation attempts. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.

```yaml
title: Batflat CMS Contact Endpoint Request With Template or PHP Injection Markers
id: f85bdd2f-9446-5a2e-9cba-081038c6821f
status: experimental
description: Detects POST requests to the /contact endpoint whose URI or query string
  carries PHP or template-engine injection markers or dangerous PHP function names.
  Consistent with Batflat CMS CVE-2026-111559 server-side template injection attempts.
  POST bodies are not usually logged, so this catches only payloads that reach the
  URI or query string; pair with WAF or body logging where available.
tags:
- attack.initial-access
- attack.t1190
logsource:
  category: webserver
detection:
  selection_endpoint:
    cs-method: POST
    cs-uri-stem|endswith: /contact
  selection_payload:
    cs-uri-query|contains:
    - '{?'
    - '%7B%3F'
    - <?php
    - '%3C%3Fphp'
    - shell_exec
    - passthru
    - base64_decode
  condition: selection_endpoint and selection_payload
falsepositives:
- Security scanners run against the site by the owning organisation
- Contact forms that legitimately pass encoded curly-brace text in query parameters
level: medium
author: Vorant
references:
- https://cert.pl/en/posts/2026/11/CVE-2026-111559
```

### Web Server Account Spawning Shell With Reverse Shell or Download Commands

ATT&CK: T1059.004

A behavioural hunt for the technique in general, not a signature for the CVEs this report names. Needs linux process_creation logs. Status: experimental. Generated from the report; not run against telemetry.

A shell spawned by a web server or PHP process running as www-data executes download, reverse-shell or recon commands, indicating post-exploitation after web RCE. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.

```yaml
title: Web Server Account Spawning Shell With Reverse Shell or Download Commands
id: 572d565a-3f78-5e14-a783-5060b288bdfc
status: experimental
description: Detects a shell started by a web server or PHP parent under the www-data
  account whose command line contains reverse-shell, payload download or recon commands.
  This is typical follow-on activity after PHP code execution such as Batflat CVE-2026-111559
  exploitation.
tags:
- attack.execution
- attack.t1059.004
- attack.initial-access
- attack.t1190
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    User: www-data
    ParentImage|contains:
    - apache2
    - httpd
    - nginx
    - php
  selection_shell:
    Image|endswith:
    - /sh
    - /bash
    - /dash
  selection_cmd:
    CommandLine|contains:
    - /dev/tcp/
    - bash -i
    - curl http
    - wget http
    - nc -e
    - whoami
    - chmod +x
  condition: selection_parent and selection_shell and selection_cmd
falsepositives:
- Web applications that legitimately shell out to curl or wget for update checks
- Administrators testing PHP execution from a web shell on a lab host
level: high
author: Vorant
references:
- https://cert.pl/en/posts/2026/11/CVE-2026-111559
```

### PHP or Web Server Process Directly Running Recon Binaries as www-data

ATT&CK: T1059

A behavioural hunt for the technique in general, not a signature for the CVEs this report names. Needs linux process_creation logs. Status: experimental. Generated from the report; not run against telemetry.

PHP or a web server process directly executes system discovery binaries under www-data, a common first step after achieving RCE in a PHP CMS. Auto-generated starting point — validate and tune in your environment before deploying. IOC matches can false-positive on shared infrastructure and decay as adversary infrastructure rotates.

```yaml
title: PHP or Web Server Process Directly Running Recon Binaries as www-data
id: 674a1f13-087e-5fb8-a2ad-718fd4026ee2
status: experimental
description: Detects system discovery utilities launched directly by PHP, Apache or
  nginx processes under the www-data account. Typical of initial post-exploitation
  after PHP code execution through a flaw such as Batflat CVE-2026-111559.
tags:
- attack.execution
- attack.t1059
- attack.discovery
- attack.t1082
logsource:
  category: process_creation
  product: linux
detection:
  selection:
    User: www-data
    ParentImage|contains:
    - apache2
    - httpd
    - nginx
    - php
    Image|endswith:
    - /whoami
    - /uname
    - /ifconfig
    - /hostname
    - /id
  condition: selection
falsepositives:
- Monitoring or diagnostic PHP scripts that call uname or hostname for status pages
- Hosting control panels that run as www-data and query system information
level: medium
author: Vorant
references:
- https://cert.pl/en/posts/2026/11/CVE-2026-111559
```

Behavioural rules are generated from public reporting — validate in your environment before deploying.

Source reporting: https://cert.pl/en/posts/2026/11/CVE-2026-111559

---

This is the free public brief from Vorant Threat Intelligence. When citing, attribute "Vorant" and link https://vorant.io/reports/3686421b-d8ac-5882-be5a-477e5eed4d2d/unpatched-batflat-cms-flaw-allows-rce.
In the app the same report carries its Sigma rules (and on a paid plan the Splunk SPL already written, plus Elastic and Microsoft KQL where they apply) and live profiles of the CVEs it names. A free account in the app opens every report of the last 30 days, the security research and news included; the paid plans add the archive, what to hunt, the investigations and the rules as SIEM queries. Slack alerts on the vendors, sectors and countries a reader follows come with the paid plans too. A new account starts with a five-day trial, no card: https://vorant.io/signup
