{"schemaVersion":3,"id":"CVE-2018-1165","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"This vulnerability allows local attackers to escalate privileges on vulnerable installations of Joyent SmartOS release-20170803-20170803T064301Z. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability. The specific flaw exists within the SMB_IOC_SVCENUM IOCTL. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length, heap-based buffer. An attacker can leverage this vulnerability to execute code under the context of the host OS. Was ZDI-CAN-4983.","dates":{"published":"2018-02-21T14:00:00.000Z","modified":"2024-08-05T03:51:48.985Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.9,"severity":"medium","vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00499,"percentile":0.41514,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00499},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00499,"percentile":0.41514}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00499,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00499,"percentile":0.41514}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"joyent","product":"joyent smartos","name":"Joyent SmartOS","label":"joyent smartos","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"release-20170803-20170803T064301Z","noFixRecorded":false,"fixedIn":null}],"versionsText":"release-20170803-20170803T064301Z","eol":null,"hubHref":"/vendor/joyent/joyent_smartos"},{"vendor":"joyent","product":"smartos","name":"smartos","label":"smartos","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"20170803","noFixRecorded":false,"fixedIn":null}],"versionsText":"20170803","eol":null,"hubHref":"/vendor/joyent/smartos"},{"vendor":"oracle","product":"solaris","name":"Solaris","label":"solaris","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"11","noFixRecorded":false,"fixedIn":null}],"versionsText":"11","eol":{"isEol":true,"eolDate":null,"matchMethod":"cpe","cycle":{"name":"11","label":"11","eolFrom":null,"isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"oracle-solaris","label":"Oracle Solaris","category":"os"}},"hubHref":"/vendor/oracle/solaris"},{"vendor":"oracle","product":"zfs_storage_appliance","name":"zfs storage appliance","label":"zfs_storage_appliance","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.8","eol":null,"hubHref":"/vendor/oracle/zfs_storage_appliance"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://help.joyent.com/hc/en-us/articles/360000124928","label":"help.joyent.com/hc/en-us/articles/360000124928","hostname":"help.joyent.com","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://zerodayinitiative.com/advisories/ZDI-18-158","label":"zerodayinitiative.com/advisories/ZDI-18-158","hostname":"zerodayinitiative.com","tags":["X Refsource MISC","Third Party Advisory","VDB Entry"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2020.html","label":"www.oracle.com/security-alerts/cpuapr2020.html","hostname":"www.oracle.com","tags":["X Refsource MISC","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-02-21T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T03:51:48.985Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:25:59.496Z","stale":false,"partial":false}}