Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
High 7.3CVE-2026-138396

Black-Coffe easy-php-cms – SQL injection in selectOne function (db.php)

Published 30/11/2026 · Updated 30/11/2026 · Black-Coffe easy-php-cms

Summary

Black-Coffe easy-php-cms (commits 4ca1f761d05fd819b202daf1355ff46881a8f93a and acbb257b2afbf148c8e193d26f277183773572b5) contains an SQL injection vulnerability in the selectOne function of db.php. Manipulating the mail argument allows an attacker to inject SQL into database queries.

Per the CVSS vector (7.3, high), the attack is network-based, low complexity, and requires no authentication or user interaction. Impact is partial loss of confidentiality, integrity and availability of data (reading, modifying or disrupting the database). A public proof-of-concept exploit is available. The issue is not listed in CISA KEV.

The project was notified via an issue report but has not responded. No fixed version is listed.

Who is affected

Organizations and individuals running Black-Coffe easy-php-cms on network- or internet-accessible web servers.

What to do

  1. Check whether you use easy-php-cms and which commit is deployed; commits 4ca1f761d05fd819b202daf1355ff46881a8f93a and acbb257b2afbf148c8e193d26f277183773572b5 are affected.
  2. No fix is published – monitor the official GitHub repository and issue #2 (github.com/Black-coffe/easy-php-cms/issues/2) for a patch.
  3. Until fixed, restrict access to the application (e.g., internal network/VPN only) or take it offline if not required.
  4. Consider WAF rules blocking SQL injection on the mail parameter and use a least-privilege database account.
  5. Review web and database logs for suspicious requests involving the mail parameter; for long-term use consider a maintained alternative.

Affected products and versions

Black-Coffe easy-php-cms4ca1f761d05fd819b202daf1355ff46881a8f93a · acbb257b2afbf148c8e193d26f277183773572b5

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

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.