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