CVE-2009-3042: SQL Injection in OCS Inventory NG 1.02.1 machine.php
- Vendor
- Ocsinventory-Ng
A SQL injection vulnerability exists in machine.php in Open Computer and Software (OCS) Inventory NG version 1.02.1. The vulnerability is due to improper sanitization of the 'systemid' parameter, allowing remote attackers to inject arbitrary SQL commands. This is distinct from CVE-2009-3040, indicating a separate injection point or vector.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary SQL commands on the backend database, potentially leading to data exfiltration, modification, or deletion, as well as possible escalation of privileges within the application.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to the affected machine.php endpoint, employ web application firewalls with SQL injection detection, and ensure that user-supplied input is properly sanitized and parameterized in all database queries.
Remediation
Patch, then assume compromise.
Upgrade to a version of OCS Inventory NG where this vulnerability is patched. If an upgrade is not possible, apply vendor-supplied patches or manually sanitize and validate the 'systemid' parameter in machine.php to prevent SQL injection.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2009-3042 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2009-3042 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2009-3042?
- As of Oct 16, 2026, Mallory has not confirmed a public exploit for CVE-2009-3042. 1 candidate exploit record is not yet analyzed.
- Is there a patch for CVE-2009-3042?
- Upgrade to a version of OCS Inventory NG where this vulnerability is patched. If an upgrade is not possible, apply vendor-supplied patches or manually sanitize and validate the 'systemid' parameter in machine.php to prevent SQL injection.
- What products are affected by CVE-2009-3042?
- Ocsinventory-Ng Ocs Inventory Ng.
- How severe is CVE-2009-3042?
- CVE-2009-3042 has a CVSS v2 score of 7.5 (High) and an EPSS score of 3.0% (87th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.