CVE-2026-73847
Received Received - Intake

CSRF to RCE via AI Assistant in Emlog

Vulnerability report for CVE-2026-73847, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-14

Last updated on: 2026-08-14

Assigner: GitHub, Inc.

Description

Emlog is an open source website building system. In 2.6.26 and earlier, missing CSRF protection on the AI Assistant execute_tool action in admin/ai.php lets a remote unauthenticated attacker submit a forged cross-site request from an attacker-controlled page to a recently logged-in administrator. The authentication cookie set in include/lib/loginauth.php has no explicit SameSite attribute, enabling Chrome's temporary Lax+POST grace window. The query_database case passes attacker-controlled sql and confirm_code values to Ai::queryDatabase in include/service/ai.php; read queries need no confirmation, write queries accept the public confirm string, only the blog table is write-protected, and aliasing password as pwd_hash bypasses output redaction. A successful request can read every database table and write every table except blog, including changing the user table to take over an administrator account. No fixed version is available as of this review.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-14
Last Modified
2026-08-14
Generated
2026-08-14
AI Q&A
2026-08-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
emlog emlog to 2.6.23 (inc)
emlog emlog to 2.6.26 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-352 The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.
CWE-798 The product contains hard-coded credentials, such as a password or cryptographic key.
CWE-1275 The SameSite attribute for sensitive cookies is not set, or an insecure value is used.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Cross-Site Request Forgery (CSRF) flaw in the AI Assistant feature of emlog versions up to 2.6.26. It allows an unauthenticated attacker to trick a logged-in administrator into submitting a malicious request via a forged page. The attack exploits missing CSRF protection, a weak SameSite cookie attribute, and bypassable SQL query safeguards to execute arbitrary database operations.

Detection Guidance

Check for unusual SQL query patterns or unauthorized database access attempts in logs. Monitor network traffic for POST requests to admin/ai.php with execute_tool parameters. Inspect admin sessions for unexpected CSRF token absence in requests.

Impact Analysis

An attacker could read all database tables, including sensitive data like user credentials and passwords. They could also modify most tables except the blog table, allowing them to change admin account details and take over the system. The attack is most effective within two minutes after an admin logs in due to Chrome's SameSite grace window.

Compliance Impact

This vulnerability could lead to unauthorized access and exposure of sensitive personal data, violating GDPR and HIPAA requirements for data protection and access controls. Full database compromise risks non-compliance with data confidentiality and integrity mandates.

Mitigation Strategies

Disable the AI Assistant feature in emlog if possible. Implement CSRF tokens on all admin endpoints. Set SameSite=Strict on authentication cookies. Replace hardcoded confirmation strings with per-session tokens. Review database logs for suspicious queries.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-73847. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart