{"id":"GHSA-r5xw-q988-826m","aliases":["GHSA-r5xw-q988-826m"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Memory Exposure in mongoose","summary":"Versions of `mongoose` before 4.3.6, 3.8.39 are vulnerable to remote memory exposure.\n\nTrying to save a number to a field of type Buffer on the affected mongoose versions allocates a chunk of uninitialized memory and stores it in the database.\n\n\n## Recommendation\n\nUpdate to version 4.3.6, 3.8.39 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `mongoose` before 4.3.6, 3.8.39 are vulnerable to remote memory exposure.\n\nTrying to save a number to a field of type Buffer on the affected mongoose versions allocates a chunk of uninitialized memory and stores it in the database.\n\n\n## Recommendation\n\nUpdate to version 4.3.6, 3.8.39 or later.","format":"markdown","source":"ghsa"}],"published":"2020-09-01T19:39:37.000Z","modified":"2023-12-07T22:05:28.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-201"],"affected":[{"ranges":[{"type":"semver","introduced":"3.5.5","status":"affected","fixed":"3.8.39"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.3.6"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"}],"references":[{"url":"https://github.com/Automattic/mongoose/issues/3764","tags":["web"],"sources":["ghsa"]},{"url":"https://gist.github.com/ChALkeR/440bc3dfcbd9b6da75c3","tags":["web"],"sources":["ghsa"]},{"url":"https://gist.github.com/ChALkeR/d4a8055625221b6e65f0","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/599","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r5xw-q988-826m","url":"https://github.com/advisories/GHSA-r5xw-q988-826m","licence":"CC-BY-4.0","modified":"2023-12-07T22:05:28.000Z"}],"updatedAt":"2026-11-25T22:56:46.413Z"}