Skip to main content

OCS Inventory NG EUVDEUVD-2026-70368

| CVE-2026-76174 CRITICAL
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-09-03 INCIBE GHSA-gw56-v6qq-x5hm
9.4
CVSS 4.0 · Vendor: INCIBE
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain OCS admin credentials
  2. Delivery
    Access admin_info CSV upload
  3. Exploit
    Upload PHP disguised as CSV
  4. Execution
    Request uploaded file URL
  5. Impact
    Execute code as web-service account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated OCS Inventory NG administrator session (CVSS PR:H) with access to the Ocsreports admin_info CSV upload feature; the attacker must be able to reach the web console over the network (AV:N) but needs no user interaction (UI:N). The decisive limiting factor is administrator privilege - this is not exploitable by anonymous or low-privileged users. A further requirement is that the uploaded PHP file lands in a web-accessible directory AND is subsequently processed/requested so the PHP engine interprets it; deployments that block PHP execution in the upload path or store uploads outside the web root break the chain.

Impact

The CVSS 4.0 base of 9.4 is driven largely by high vulnerable- AND subsequent-system impact metrics (VC/VI/VA and SC/SI/SA all High); however, the described behavior is single-system RCE with no genuine scope change, so the subsequent-system High ratings appear overstated - an assessed base nearer 8.7 (SC/SI/SA:N) is more defensible. The critical mitigating factor is PR:H: exploitation requires an existing OCS administrator session, meaning this is a privilege-to-code-execution escalation, not an anonymous internet-facing RCE. That materially lowers real-world urgency versus a pre-auth flaw, but it remains serious because a compromised or malicious admin credential yields full server code execution, and any operator running Ocsreports should patch promptly rather than rely on the admin-only barrier. No EPSS score, KEV listing, or public PoC is present in the provided data, so exploitation pressure is currently unquantified and should be treated as latent rather than active.

Exploit ScenarioDerived

An attacker who has obtained OCS administrator access - via phished/reused credentials or an insider - navigates to the admin_info CSV upload feature and submits a file named to pass the client-side name check but containing PHP code. The server writes it to a web-accessible directory; the attacker then requests the uploaded file's URL, causing PHP to execute it and granting a webshell running as the web-service account. No public PoC is identified, but the technique is standard and low-complexity (AC:L) once admin access exists.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 03, 2026

Remote code execution in OCS Inventory NG's Ocsreports web console (admin_info CSV upload endpoint) allows an authenticated administrator to upload a PHP webshell that, once processed, runs arbitrary code as the web-service account. The upload routine trusts the client-supplied filename and never validates file content or securely restricts extensions (CWE-434), so a benign-looking CSV import becomes a code-execution primitive. Disclosed via INCIBE as part of a multi-vulnerability advisory for Ocsreports; no public exploit identified at time of analysis, and no EPSS or KEV signal is present in the input.

RemediationAI

No exact fixed version is provided in the input, so patch status is: patch guidance available per the INCIBE advisory (https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-ocsreports-ocs-inventory-ng) - upgrade to the vendor-corrected Ocsreports release referenced there and do not invent a version. As compensating controls until patched: restrict network access to the Ocsreports admin interface to a management VLAN or VPN so only trusted operators reach admin_info (trade-off: remote admins must connect through the gateway); configure the web server to deny PHP execution in the CSV/upload target directory (e.g. an Apache 'php_admin_flag engine off' or nginx location block on the upload path - trade-off: verify no legitimate script relies on that path); enforce server-side content-type/extension allow-listing and store uploads outside the web root if you maintain the deployment; and tightly limit and monitor OCS administrator accounts since the flaw is only reachable with admin privileges.

Affected VersionsENISA

Ocsreports 2.12.6

Affected Packages

euvd ocsreports no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OCS Inventory NG (Open Computer and Software Inventory Next Generation) is an open-source IT asset-management and inventory suite; Ocsreports is its PHP-based administrative web front end, identified by CPE cpe:2.3:a:ocs_inventory_ng:ocsreports. The flaw is a classic unrestricted file upload (CWE-434): the admin_info endpoint's CSV import validates only the filename provided by the client rather than inspecting content or enforcing a server-side allow-list of extensions. Because the destination directory is reachable through the web server, an uploaded .php file can be requested directly and interpreted by the PHP engine, converting a data-import feature into arbitrary code execution in the context of the web service user (commonly www-data/apache).

Know when Ocsreports gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (INCIBE) PRIMARY 9.4 CRITICAL
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
vuln.today AI 7.2 HIGH

Admin-only reachable so PR:H; network-reachable console AV:N/AC:L; PHP upload yields full RCE (C/I/A:H) on one system with no scope change (S:U).

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (INCIBE).

CVSS VectorVendor: INCIBE

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

OCS Inventory NG's Ocsreports administrative console contains a file-upload vulnerability that allows authenticated administrators to upload and execute arbitrary PHP code, gaining full control of the underlying infrastructure. Compromise of an admin account through credential theft or insider threat would provide attackers with complete visibility and control over all inventoried systems. This is a critical risk for organizations relying on OCS Inventory for IT asset and device management.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict Ocsreports admin console access via IP allowlist and strong authentication; disable or remove the CSV upload endpoint if not operationally required; implement file-type validation and antivirus scanning on the upload directory; monitor upload logs and filesystem for unexpected PHP files; use a Web Application Firewall to block file uploads to sensitive endpoints; segregate OCS Inventory infrastructure from production systems.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
Medium
popular open-source IT asset-inventory suite, common in mid-size IT shops
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy