CVE-2020-14947
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
Likely to be exploited: EPSS gives a 19% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | ocsinventory-server | Will not fix OCS Inventory should only be run in a trusted environment. | UBUNTU-CVE-2020-14947 | |
| Ubuntu 24.04 | ocsinventory-server | Under investigation | UBUNTU-CVE-2020-14947 | |
| Ubuntu 22.04 | ocsinventory-server | Under investigation | UBUNTU-CVE-2020-14947 | |
| Ubuntu 20.04 | ocsinventory-server | Will not fix OCS Inventory should only be run in a trusted environment. | UBUNTU-CVE-2020-14947 | |
| Ubuntu 18.04 | ocsinventory-server | Will not fix OCS Inventory should only be run in a trusted environment. | UBUNTU-CVE-2020-14947 | |
| Ubuntu 16.04 | ocsinventory-server | Will not fix OCS Inventory should only be run in a trusted environment. | UBUNTU-CVE-2020-14947 | |
| Ubuntu 14.04 | ocsinventory-server | Will not fix OCS Inventory should only be run in a trusted environment. |
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.