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.
Published: 2026-09-03
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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 yet.

History

Thu, 03 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 03 Sep 2026 09:45:00 +0000

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'}


Subscriptions

Ocs Inventory Ng Ocsreports
cve-icon MITRE

Status: PUBLISHED

Assigner: INCIBE

Published:

Updated: 2026-09-03T13:00:59.810Z

Reserved: 2026-08-19T10:24:12.151Z

Link: CVE-2026-76174

cve-icon Vulnrichment

Updated: 2026-09-03T13:00:55.770Z

cve-icon NVD

Status : Received

Published: 2026-09-03T13:06:07.723

Modified: 2026-09-03T13:16:47.293

Link: CVE-2026-76174

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T13:00:04Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type