Summary
A SQL injection vulnerability was discovered in Black-coffe easy-php-cms (commits 4ca1f761d05fd819b202daf1355ff46881a8f93a and acbb257b2afbf148c8e193d26f277183773572b5), in the function selectPostFromPostsWithUsersOnSingle of single.php. Manipulating the post argument lets an attacker inject SQL into the database query.
Per the CVSS vector (7.3, high), the attack is network-based, low complexity, requires no authentication and no user interaction. Impact is limited loss of confidentiality, integrity and availability (e.g. reading or modifying database content). A public exploit has been released, making exploitation likely. The vulnerability is not listed in CISA KEV.
The project uses a rolling release model, so no fixed version is specified. The maintainer was notified via a GitHub issue but has not responded yet.
Who is affected
Organizations and individuals running Black-coffe easy-php-cms on publicly reachable web servers.
What to do
- Check whether you use easy-php-cms and whether your deployment matches the affected commits; monitor the GitHub repository and issue #1 for an official fix, as no fixed version has been published.
- Until a fix exists, restrict public access to the application (e.g. VPN, IP allowlisting) or take it offline if not essential.
- Deploy WAF rules blocking SQL injection attempts in the post parameter of single.php.
- Ensure the application's database account has least privilege and review web server and database logs for suspicious requests to single.php.
- Consider migrating to an actively maintained CMS given the lack of maintainer response.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- Low impact
- Integrity
- Low impact
- Availability
- Low impact
Weakness type (CWE)
References
- vuldb.com/vuln/445198
- vuldb.com/vuln/445198/cti
- vuldb.com/cve/CVE-2026-138395
- vuldb.com/submit/1078904
- github.com/Black-coffe/easy-php-cms/issues/1
- github.com/Black-coffe/easy-php-cms/
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.