{"schemaVersion":3,"id":"CVE-2018-21270","aliases":["UBUNTU-CVE-2018-21270","DEBIAN-CVE-2018-21270","GHSA-mf6x-7mm4-x2g7"],"status":"published","duplicateOf":null,"title":null,"description":"Versions less than 0.0.6 of the Node.js stringstream module are vulnerable to an out-of-bounds read because of allocation of uninitialized buffers when a number is passed in the input stream (when using Node.js 4.x).","dates":{"published":"2020-12-03T21:00:45.000Z","modified":"2024-08-05T12:26:39.596Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","exploitability":5.6,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H","exploitability":5.6,"impact":7,"computed":true}]},"epss":{"probability":0.03682,"percentile":0.89554,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03682},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03682,"percentile":0.89554}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03682,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03682,"percentile":0.89554}]},"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":[{"id":"REF_A46ACC9FEB814EBB","name":"Exploit Reference (hackerone.com)","source":"reference","url":"https://hackerone.com/reports/321670","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_BC94454D48FA1ECB","name":"Exploit Reference (npmjs.com)","source":"reference","url":"https://www.npmjs.com/advisories/664","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"}],"affected":[{"vendor":"debian","product":"node-stringstream","name":"node-stringstream","label":"node-stringstream","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-stringstream","purlType":"deb","versions":[{"text":"< 0.0.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.6-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-stringstream","name":"node-stringstream","label":"node-stringstream","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-stringstream","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"nodejs","product":"node.js","name":"node.js","label":"node.js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.0.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.6","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"nodejs","label":"Node.js","category":"framework"}},"hubHref":"/vendor/nodejs/nodejs"},{"vendor":"Npm","product":"stringstream","name":"stringstream","label":"stringstream","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/stringstream","purlType":"npm","versions":[{"text":"< 0.0.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.6","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://hackerone.com/reports/321670","label":"hackerone.com/reports/321670","hostname":"hackerone.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","REPORT","WEB"]},{"url":"https://www.npmjs.com/advisories/664","label":"www.npmjs.com/advisories/664","hostname":"www.npmjs.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","REPORT","WEB"]},{"url":"https://github.com/mhart/StringStream/issues/7","label":"github.com/mhart/StringStream/issues/7","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking","Third Party Advisory","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2018-21270","label":"ubuntu.com/security/CVE-2018-21270","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/mhart/StringStream/commit/afbc7442220358419e330618e47f3a65fc265b1b","label":"github.com/mhart/StringStream/commit/afbc7442220358419e330618e47f3a65fc265b1b","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-21270","label":"www.cve.org/CVERecord?id=CVE-2018-21270","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-21270","label":"security-tracker.debian.org/tracker/CVE-2018-21270","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/mhart/StringStream/blob/v0.0.5/stringstream.js#L32","label":"github.com/mhart/StringStream/blob/v0.0.5/stringstream.js","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-12-03T21:00:45.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T12:26:39.596Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":37,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:28:54.273Z","stale":false,"partial":false}}