CVE-2026-138396

Black-Coffe easy-php-cms db.php selectOne sql injection

Published Nov 30, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
A weakness has been identified in Black-Coffe easy-php-cms 4ca1f761d05fd819b202daf1355ff46881a8f93a/acbb257b2afbf148c8e193d26f277183773572b5. The affected element is the function selectOne of the file db.php. Executing a manipulation of the argument mail can lead to sql injection. The attack may be performed from remote. The exploit has been made available to the public and could be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.

Analysis

AI-generated

Technical impact

The vulnerability exists in the selectOne function of db.php in Black‑Coffe easy‑php‑cms. An attacker can supply a crafted value for the mail parameter, which is concatenated directly into an SQL statement. This can trigger a SQL injection that allows the attacker to execute arbitrary SQL commands against the database, compromising confidentiality, integrity, and possibly availability of the stored data.

Affected Systems

The affected product is Black‑Coffe easy‑php‑cms likely at the commit 4ca1f761d05fd819b202daf1355ff46881a8f93a/acbb257b2afbf148c8e193d26f277183773572b5. No specific version numbers are provided, so any instance of the application that includes this code base is susceptible.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate threat level, and the vulnerability can be triggered remotely with publicly available exploit code. Because no patch is currently available and the CVE is not listed in CISA’s KEV catalog, administrators should evaluate the exposure risk. The lack of an EPSS score does not negate the known remote exploitation potential. The earliest evidence shows that the issue was reported but the project has not released a fix, so the vulnerability remains exploitable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Modify the db.php selectOne function to use prepared statements or parameterized queries so that the mail input is not concatenated directly into the SQL command.
  • If changing the source code is not feasible, apply strict input validation on the mail parameter, allowing only well‑formed email strings and rejecting any value that contains characters that could alter the intended query structure.
  • Limit the database user privileges used by the application to the minimum necessary for operation; for example, deny write access to the tables involved in selectOne or use read‑only accounts to reduce the impact of a successful injection.

Generated by OpenCVE AI on November 30, 2026 at 14:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A weakness has been identified in Black-Coffe easy-php-cms 4ca1f761d05fd819b202daf1355ff46881a8f93a/acbb257b2afbf148c8e193d26f277183773572b5. The affected element is the function selectOne of the file db.php. Executing a manipulation of the argument mail can lead to sql injection. The attack may be performed from remote. The exploit has been made available to the public and could be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
Title Black-Coffe easy-php-cms db.php selectOne sql injection
First Time appeared Black-coffe
Black-coffe easy-php-cms
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:black-coffe:easy-php-cms:*:*:*:*:*:*:*:*
Vendors & Products Black-coffe
Black-coffe easy-php-cms
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 7.3, 'vector': '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'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 30, 2026, 8:23 PM
Reserved
Nov 29, 2026, 3:02 PM
Status
Deferred
Published
Nov 30, 2026, 8:17 AM
Modified
Nov 30, 2026, 9:17 PM