Summary
CVE-2026-111559 is a critical unauthenticated remote code execution vulnerability in Batflat CMS, caused by improper neutralization of special elements in a template engine (CWE-1336). A remote attacker can send a crafted POST request to the /contact endpoint and execute arbitrary PHP code. The CVSS score is 9.3 (Critical). No patch is available because the project is unmaintained.
Technical details
- Root cause: Batflat does not sanitize data passed to the
/contactendpoint (CWE-1336, template engine injection). - Trigger conditions: A POST request to
/contactcontaining a crafted message. No authentication or user interaction is required. - Attack vector: Network, low complexity.
- Impact: Arbitrary PHP code execution with
www-datauser privileges.
Affected software
- Batflat 1.2.0 through 1.3.7, per the CVE record.
- CERT Polska’s advisory lists the range as 1.2.0 through 1.3.6.
- No fixed version exists.
Severity
- CVSS v4.0 base score: 9.3 (Critical)
- Vector:
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L - The published score uses CVSS v4.0. No v3.1 vector was found in the sources.
Mitigation and recommended actions
- Immediate: No patch is available, and the project is unmaintained and the issue unfixed. Stop using Batflat and migrate to a maintained CMS.
- If Batflat must stay in service:
- Use network-level protections, such as a WAF or access controls, to restrict access to the
/contactendpoint. - Monitor for suspicious PHP code execution and anomalous POST requests to
/contact.
- Use network-level protections, such as a WAF or access controls, to restrict access to the
- The vulnerability was reported to CERT Polska by researcher Tymbark7372.

