CVE-2026-73850

Emlog: Arbitrary SQL Execution Vulnerability in ai.php within queryDatabase() Function

Published Aug 14, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
Emlog is an open source website building system. In 2.6.20 and earlier, there is a SQL injection vulnerability in the queryDatabase function in ai.php.

Analysis

AI-generated

Technical impact

This vulnerability originates from missing input validation in the queryDatabase function within ai.php of the Emlog content management system. The flaw permits an attacker to inject malicious SQL commands through user‑controlled parameters, enabling arbitrary execution against the database and potentially exposing, modifying, or deleting critical data. The weakness is categorized as CWE‑89 and carries a CVSS score of 8.6, indicating high risk to confidentiality, integrity, and availability of the underlying database.

Affected Systems

Emlog versions 2.6.20 and earlier are affected. Administrators should verify that their installation’s version is 2.6.20 or lower; any instance that deploys ai.php and accepts external input is vulnerable. No other vendors or product versions are listed as impacted in the CNA data.

Risk and Exploitability

The CVSS score of 8.6 denotes strong exploitation potential, but the EPSS score is not available, so the current likelihood of exploitation cannot be quantified. The vulnerability is not in the CISA KEV catalog. Based on the description, the likely attack vector is a web request to ai.php carrying crafted query parameters that are passed directly into SQL statements. Successful exploitation could lead to complete database compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Emlog to a version newer than 2.6.20 where the queryDatabase function has been fixed.
  • If an upgrade is not immediately possible, restrict access to ai.php through web‑server configuration or a firewall so that only trusted IP addresses or internal networks can reach the file.
  • Implement input validation or replace the query formulation with prepared statements for all parameters that reach the queryDatabase function as a temporary safeguard.
  • If ai.php is not required for your deployment, consider disabling or removing the file to eliminate the attack surface.

Generated by OpenCVE AI on August 14, 2026 at 19:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Emlog
Emlog emlog
Vendors & Products Emlog
Emlog emlog
Type Values Removed Values Added
Description Emlog is an open source website building system. In 2.6.20 and earlier, there is a SQL injection vulnerability in the queryDatabase function in ai.php.
Title Emlog: Arbitrary SQL Execution Vulnerability in ai.php within queryDatabase() Function
Weaknesses CWE-89
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 17, 2026, 6:09 PM
Reserved
Aug 13, 2026, 5:44 PM
Status
Deferred
Published
Aug 14, 2026, 6:19 PM
Modified
Sep 16, 2026, 1:42 PM