ZeroHour

CVE-2026-76174

moderate

Unrestricted file upload leading to RCE in OCS Inventory Ocsreports admin console

CVSS 4.0
9.4 critical
EPSS
<1%p40
Published
()
Modified
AI analysis

CVE-2026-76174 is an unrestricted file upload flaw (CWE-434) in the CSV upload feature of the admin_info endpoint of Ocsreports, the web administration console of the open-source OCS Inventory IT asset-management platform. Upload validation relies solely on the client-supplied file name, without inspecting file content or enforcing a strict file-type allow-list, so an authenticated administrator can upload a PHP file into a directory that is reachable through the web interface. If the web server subsequently processes that uploaded PHP file, the attacker's code executes with the privileges of the web service account, resulting in remote code execution on the hosting server. Any organization running Ocsreports where an attacker has (or obtains) administrator credentials is exposed, since the flaw requires high privileges to trigger. No public proof-of-concept is known, the issue is not in the CISA KEV catalog, and EPSS assigns roughly a 0.5% probability of exploitation within 30 days (40th percentile), so no confirmed exploitation has been reported.

What to do: No fixed version number is included in the available data, so check the OCS Inventory project's release notes and security advisories for a patched Ocsreports build and upgrade as soon as one is available. Until then, restrict the admin_info CSV upload function to trusted administrators, enforce server-side content and extension validation (CSV allow-list), and scan web-accessible upload directories for unexpected .php files. Because exploitation requires administrator privileges, review and harden admin accounts on internet-facing OCS Inventory servers as a priority.

Affected
OCS Inventory Ocsreports (OCS Inventory web administration console)
Estimated exposure
moderateseveral thousand internet-exposed Ocsreports instances, plus a likely larger internal installed base — Estimated from public internet scan counts of OCS Inventory/Ocsreports web consoles (on the order of thousands of exposed instances) and the tool's widespread internal enterprise use for IT asset inventory; the advisory itself provides no…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Unrestricted file upload vulnerability in the CSV file upload functionality of the Ocsreports admin_info endpoint. The application validates files solely based on the name provided by the client, without properly checking their content or securely restricting the permitted file types. This allows a user with administrator privileges to upload PHP files to a directory accessible via the web interface. If the file is subsequently processed by the server, an attacker could execute arbitrary code with the privileges of the account used by the web service.

Weakness
CWE-434
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.