CVE-2026-76174: Multiple vulnerabilities in Ocsreports for OCS Inventory NG
Unrestricted file upload vulnerability in the CSV file upload functionality of the Ocsreports admininfo 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
OCS Inventory NG / Ocsreportsto a version that resolves this vulnerability.Fixed in 2.12.6
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs administrator privileges in Ocsreports to access the affected CSV upload functionality.
What conditions are required for code execution?
The uploaded PHP file must be placed in a directory accessible through the web interface and subsequently processed by the server. Successful execution would run with the privileges of the account used by the web service.