Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain OCS admin credentials
-
DeliveryAccess admin_info CSV upload
-
ExploitUpload PHP disguised as CSV
-
ExecutionRequest uploaded file URL
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (INCIBE).
CVSS VectorVendor: INCIBE
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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
More in Ocsreports
View allStored cross-site scripting in OCS Inventory NG's ocsreports web console lets an administrator plant malicious HTML/Java
SQL injection in OCSReports (OCS Inventory NG) at the admin_double function endpoint allows authenticated operator-level
SQL injection in OCSReports (OCS Inventory NG) allows authenticated users holding operator privileges to extract or mani
SSRF in OCSreports (OCS Inventory NG) allows authenticated operators to weaponize the inventory server as a proxy to rea
EUVD-2026-70368
GHSA-gw56-v6qq-x5hm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB