Authenticated code execution via unrestricted REST upload
Published Jan 12, 2026 · Updated Jan 12, 2026
Arbitrary file upload in emlog 2.6.1 and earlier allows remote authenticated users to execute PHP code through the REST API. Api_Controller::upload checks only that a file is present, while upload2local applies no extension allowlist and Media_Model::addMedia stores the resulting metadata without sanitizing the filename. A valid API key or administrator session cookie is required; a stored PHP script can then run with the web server's privileges and expose or alter server data.
Summary
What happened
Arbitrary file upload in emlog 2.6.1 and earlier allows remote authenticated users to execute PHP code through the REST API. Api_Controller::upload checks only that a file is present, while upload2local applies no extension allowlist and Media_Model::addMedia stores the resulting metadata without sanitizing the filename. A valid API key or administrator session cookie is required; a stored PHP script can then run with the web server's privileges and expose or alter server data.
The record
- CVE
- CVE-2026-22799
- Published
- Jan 12, 2026
- Updated
- Jan 12, 2026
- Vendor
- emlog
- Product
- emlog
- Classifications
- T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jan 12, 2026CVE publishedPublication date reported by the CVE source.
- Jan 12, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=<= 2.6.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
No CVSS assessment is available in this record.
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-p837-mrw9-5x5j proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo