# CVE-2026-42287: Emlog SQL injection in log_model.php

Source: https://junglewise.ai/threats/cve-2026-42287-emlog-sql-injection-in-log-model-php  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-08. Updated: 2026-05-11  
License: CC BY 4.0 with a link back

CVE-2026-42287 · Severity: info · CVSS 10 · Published 2026-05-08

Emlog is an open-source website building and content management system. A critical security flaw in the way the system handles article creation and updates allows an attacker to send malicious commands to the website's database. If exploited, this could lead to the complete theft of sensitive user data, unauthorized administrative access, or the total deletion of the website's database.

Technologies: [Emlog Pro](https://junglewise.ai/threats/technologies/emlog-pro). Vendors: [Emlog](https://junglewise.ai/threats/vendors/emlog).

## Quick answers

**Is CVE-2026-42287 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-42287 being exploited in the wild.

**How severe is CVE-2026-42287?** Informational severity, with a CVSS score of 10, published 8 May 2026.

**Which products and versions are affected?** Emlog Pro < 2.6.11.

**Is there a fix for CVE-2026-42287?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-42287 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-42287?** Check whether you run Emlog Pro at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A SQL injection vulnerability exists in Emlog's `log_model.php` within the `addLog()` and `updateLog()` functions. The root cause is the direct concatenation of user-supplied input from article fields (such as title and content) into SQL INSERT and UPDATE queries without proper sanitization or escaping. An unauthenticated or low-privileged attacker can exploit this via the `/admin/article_save.php` endpoint by submitting specially crafted JSON payloads. Successful exploitation allows for arbitrary SQL execution, which can be used to bypass authentication, escalate privileges to administrator, or drop database tables. The issue is resolved in version 2.6.11 by implementing `escape_string()` on all user-controlled inputs.

## Affected products

- Emlog Emlog < 2.6.11

## Timeline

- 2026-04-22: advisory: GitHub Security Advisory published
- 2026-05-08: disclosed: CVE published to NVD

## References

- [https://github.com/emlog/emlog/security/advisories/GHSA-xxj8-fc63-j3gw](https://github.com/emlog/emlog/security/advisories/GHSA-xxj8-fc63-j3gw)

## Related threats

- [EMLOG-Pro cross-site scripting enabling shell upload](https://junglewise.ai/threats/cve-2026-88745-emlog-pro-2-6-29-contains-a-xss-vulnerability-that-enables)
- [Emlog Pro disabled TLS certificate validation in AI service](https://junglewise.ai/threats/cve-2026-67598-emlog-pro-disabled-tls-certificate-validation-in-ai-service)
- [Emlog Pro local file inclusion in article publishing interface](https://junglewise.ai/threats/cve-2026-46687-emlog-pro-local-file-inclusion-in-article-publishing-interface)
- [Emlog Pro path traversal in template upload feature](https://junglewise.ai/threats/cve-2026-39276-emlog-pro-path-traversal-in-template-upload-feature)
- [Emlog CSRF in admin functions](https://junglewise.ai/threats/cve-2026-42286-emlog-csrf-in-admin-functions)
