# CVE-2026-34228: Emlog CSRF and arbitrary file write in backend upgrade interface

Source: https://junglewise.ai/threats/cve-2026-34228-emlog-csrf-and-arbitrary-file-write-in-backend-upgrade-interface  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-03. Updated: 2026-07-25  
License: CC BY 4.0 with a link back

CVE-2026-34228 · Severity: medium · CVSS 6.5 · Published 2026-04-03

Emlog, an open-source website building system, contains a security flaw in its administrative upgrade process. An attacker can trick a logged-in administrator into clicking a malicious link, which triggers the server to download and execute unauthorized database commands and web files. This can lead to a complete takeover of the website, unauthorized data modification, or the installation of persistent backdoors.

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

## Quick answers

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

**How severe is CVE-2026-34228?** Medium severity, with a CVSS score of 6.5, published 3 April 2026.

**Which products and versions are affected?** Emlog < 2.6.8.

**Is there a fix for CVE-2026-34228?** A patch was published on 2026-04-03: Fix committed in version 2.6.8 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

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

**Am I affected by CVE-2026-34228?** Check whether you run Emlog 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

The vulnerability exists in 'admin/upgrade.php' because the upgrade interface accepts remote SQL and ZIP URLs via GET parameters without validating a CSRF token. When an authenticated administrator is induced to visit a malicious URL, the server fetches and executes the remote SQL file and extracts the ZIP file directly into the web root directory. This allows for arbitrary SQL execution and arbitrary file writes (RCE). The issue was addressed in version 2.6.8 by switching the upgrade request method to POST, implementing host validation, and requiring CSRF tokens.

## Affected products

- emlog emlog < 2.6.8

## Timeline

- 2026-03-27: advisory: Vendor advisory published via GitHub
- 2026-04-03: disclosed: CVE published
- 2026-04-03: patched: Fix committed in version 2.6.8

## References

- [https://github.com/emlog/emlog/commit/4c3b8f3486e2c9caafee38a5eedb3cd16f8c8d6f](https://github.com/emlog/emlog/commit/4c3b8f3486e2c9caafee38a5eedb3cd16f8c8d6f)
- [https://github.com/emlog/emlog/security/advisories/GHSA-2rcc-jg83-34vp](https://github.com/emlog/emlog/security/advisories/GHSA-2rcc-jg83-34vp)

## Related threats

- [Emlog stored XSS in tag names via article editor](https://junglewise.ai/threats/cve-2026-73848-emlog-stored-xss-in-tag-names-via-article-editor)
- [Emlog stored XSS in Markdown article rendering](https://junglewise.ai/threats/cve-2026-53758-emlog-stored-xss-in-markdown-article-rendering)
- [Emlog path traversal in ZIP extraction enables RCE](https://junglewise.ai/threats/cve-2026-53757-emlog-path-traversal-in-zip-extraction-enables-rce)
- [Emlog SQL injection in queryDatabase function](https://junglewise.ai/threats/cve-2026-73850-emlog-sql-injection-in-querydatabase-function)
- [Emlog unauthenticated installation in install.php](https://junglewise.ai/threats/cve-2026-73849-emlog-unauthenticated-installation-in-install-php)
