VYPR
Unrated severityOSV Advisory· Published Aug 3, 2018· Updated Aug 5, 2024

CVE-2018-12483

CVE-2018-12483

Description

OCS Inventory 2.4.1 is prone to a remote command-execution vulnerability. Specifically, this issue occurs because the content of the ipdiscover_analyser rzo GET parameter is concatenated to a string used in an exec() call in the PHP code. Authentication is needed in order to exploit this vulnerability.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

OCS Inventory 2.4.1 suffers from a remote command execution via the ipdiscover_analyser GET parameter, which is unsafely concatenated into an exec() call.

Vulnerability

In OCS Inventory version 2.4.1, the runCommand function in the OCSReports component concatenates user-supplied input from the ipdiscover_analyser GET parameter directly into a string that is passed to the PHP exec() function [1]. The command executed is a Perl script (ipdiscover-util.pl) with various fixed parameters, but the attacker-controlled parameter is appended without sanitization. The affected code path is reachable when the ipdiscover_analyser parameter is present in the HTTP request. Authentication is required to access this functionality.

Exploitation

An attacker must first authenticate to the OCS Inventory web interface. Then, by crafting a GET request to the vulnerable endpoint with a malicious value in the ipdiscover_analyser parameter, the attacker can inject arbitrary shell commands. The injected payload is passed as part of the argument to exec(), allowing execution of system commands. The attacker does not need any special privileges beyond a valid user account.

Impact

Successful exploitation allows the authenticated attacker to execute arbitrary operating system commands on the OCS Inventory server with the privileges of the web server user. Since OCS Inventory can deploy software and execute commands on managed agents, full compromise of the server can lead to remote code execution on all managed machines, resulting in a complete loss of confidentiality, integrity, and availability across the managed network.

Mitigation

The vendor has released OCS Inventory version 2.5 to address this vulnerability [1]. Users should upgrade to version 2.5 or later immediately. If upgrading is not possible, restrict access to the OCS Inventory web interface to trusted users only, and monitor for unusual ipdiscover_analyser parameter values. No other workarounds are documented in the available reference.

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.

References

1

News mentions

0

No linked articles in our index yet.