CVE-2026-76174

Multiple vulnerabilities in Ocsreports for OCS Inventory NG

Published Sep 3, 2026 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Ocsreports component of OCS Inventory NG has an unrestricted file upload flaw in the CSV upload mechanism of the admin_info endpoint. The system only checks the supplied file name, ignoring actual file content or MIME type, which permits an administrator to upload arbitrary PHP files into a web-accessible directory. If the uploaded script is later processed, an attacker can execute code with the privileges of the web service account, compromising confidentiality, integrity, and availability of the server.

Affected Systems

All versions of Ocsreports bundled with OCS Inventory NG that predate the 2.12.6 release are susceptible. The vendor has released 2.12.6 and later revisions that address the issue. Organizations running earlier revisions should verify the exact version and apply the update.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.4, indicating a high severity impact. The EPSS score is not available, so the current exploitation probability cannot be quantified, and it is not listed in the CISA KEV catalog. Attacks require valid administrator credentials to reach the CSV upload endpoint; thus the likely attack vector is a privileged or authenticated intruder who can upload files, with potential consequences of arbitrary code execution on the host.

Remediation

Vendor Solution

The vulnerabilities have been fixed by the OCS Inventory NG team in version 2.12.6.


OpenCVE Recommended Actions

  • Upgrade OCS Inventory NG to version 2.12.6 or later, which removes the unrestricted file upload flaw.
  • In environments where immediate patching is delayed, configure the upload directory to prevent execution of uploaded scripts, for example by denying PHP execution in that directory via the web server configuration.
  • Implement stricter input validation on the CSV upload: enforce MIME type checking, restrict accepted file extensions to .csv, and inspect file contents to ensure they match CSV format before saving.

Generated by OpenCVE AI on September 3, 2026 at 12:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Multiple vulnerabilities in Ocsreports for OCS Inventory NG
First Time appeared Ocs Inventory Ng
Ocs Inventory Ng ocsreports
Weaknesses CWE-434
CPEs cpe:2.3:a:ocs_inventory_ng:ocsreports:2.12.6:*:*:*:*:*:*:*
Vendors & Products Ocs Inventory Ng
Ocs Inventory Ng ocsreports
References
Metrics cvssV4_0

{'score': 9.4, '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'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

Sources

Status
PUBLISHED
Assigner
INCIBE
Published
Updated
Sep 3, 2026, 1:00 PM
Reserved
Aug 19, 2026, 10:24 AM
Status
Deferred
Published
Sep 3, 2026, 1:06 PM
Modified
Sep 3, 2026, 6:14 PM