SecurityContext

CVE-2018-14857: OCS Inventory NG - Unrestricted File Upload

  • Cve: CVE-2018-14857
  • Name: OCS Inventory NG - Unrestricted File Upload
  • Description: Unrestricted file upload (with remote code execution) in require/mail/NotificationMail.php in Webconsole in OCS Inventory NG OCS Inventory Server through 2.5 allows a privileged user to gain access to the server via a template file containing PHP code, because file extensions other than .html are permitted.
  • Impact: Privileged users can upload PHP files and execute remote code on the server, leading to full server compromise.
  • Remediation: Restrict file uploads to safe extensions and validate uploaded files, update to the latest version if available.
  • Vulnerability type: unrestricted_file_upload
  • Vulnerability impact: remote_code_execution, file_system_write
  • Requirement type: admin_privileges
  • Requirements: Attacker needs privileged user access
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.03643
  • Epss percentile: 0.89863
  • Assignee: [email protected]
  • Published at: 2018-08-06T21:29:00Z
  • Age in days: 3032
  • Modified at: 2026-06-17T01:41:46Z
  • References total: 3
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-14857
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-434Unrestricted Upload of File with Dangerous Type

References

Same in every row:

  • Source: nvd
UrlTags
http://seclists.org/fulldisclosure/2018/Aug/6Mailing List, Third Party Advisory
http://www.securitytracker.com/id/1041418Third Party Advisory, VDB Entry
https://github.com/OCSInventory-NG/OCSInventory-ocsreports/commit/cc572819e373f7ff81dec61591b6f465b43c5515Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
ocsinventory-ng:ocs_inventory_server<= 2.5nonvd/v1/products/ocsinventory-ng/ocs_inventory_server

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts