{"id":"CVE-2023-36475","published":"2023-06-28T22:32:10Z","modified":"2024-11-27T14:44:09Z","title":"Parse Server vulnerable to remote code execution via MongoDB BSON parser through prototype pollution","vendor":"parse-community","product":"parse-server","tier":"tail","description":{"text":"Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. Prior to versions 5.5.2 and 6.2.1, an attacker can use a prototype pollution sink to trigger a remote code execution through the MongoDB BSON parser. A patch is available in versions 5.5.2 and 6.2.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03203,"percentile":0.88128,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/parse-community/parse-server/security/advisories/GHSA-462x-c3jw-7vr6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/parse-community/parse-server/issues/8674","tags":["x_refsource_MISC"]},{"url":"https://github.com/parse-community/parse-server/issues/8675","tags":["x_refsource_MISC"]},{"url":"https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","tags":["x_refsource_MISC"]},{"url":"https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f","tags":["x_refsource_MISC"]},{"url":"https://github.com/parse-community/parse-server/releases/tag/5.5.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/parse-community/parse-server/releases/tag/6.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":17.63},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"parse-community","affectedVersions":[{"vendor":"parse-community","product":"parse-server","versions":["< 5.5.2",">= 6.0.0, < 6.2.1"]}],"affected":[{"ecosystem":"npm","package":"parse-server","vulnerableRanges":["<5.5.2",">=6.0.0, <6.2.1"],"patched":["5.5.2","6.2.1"],"from":["GHSA-462x-c3jw-7vr6"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-1678","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-parse-community-parse-server-cve-2020-5251","parents":[{"from":"CVE-2022-24760","to":"CVE-2023-36475","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Controllers/DatabaseController.js","src/Utils.js"],"commits":["https://github.com/parse-community/parse-server/commit/886bfd7cac69496e3f73d4bb536f0eec3cba0e4d","https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f"],"basis":"shared function","functions":["DatabaseController","RestWrite"]}]},{"from":"CVE-2022-31089","to":"CVE-2023-36475","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Routers/FilesRouter.js"],"commits":["https://github.com/parse-community/parse-server/commit/5be375dec2fa35425c1003ae81c55995ac72af92","https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f"],"basis":"shared function","functions":["FilesRouter"]}]},{"from":"CVE-2022-31112","to":"CVE-2023-36475","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Controllers/DatabaseController.js"],"commits":["https://github.com/parse-community/parse-server/commit/309f64ced8700321df056fb3cc97f15007a00df1","https://github.com/parse-community/parse-server/commit/9fd4516cde5c742f9f29dd05468b4a43a85639a6","https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f"],"basis":"shared function","functions":["DatabaseController"]}]},{"from":"CVE-2022-36079","to":"CVE-2023-36475","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Controllers/DatabaseController.js"],"commits":["https://github.com/parse-community/parse-server/commit/634c44acd18f6ee6ec60fac89a2b602d92799bec","https://github.com/parse-community/parse-server/commit/e39d51bd329cd978589983bd659db46e1d45aad4","https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f"],"basis":"shared function","functions":["DatabaseController"]}]},{"from":"CVE-2022-39313","to":"CVE-2023-36475","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Routers/FilesRouter.js"],"commits":["https://github.com/parse-community/parse-server/commit/066f29673ab4030b6b5b90c0c0326f7d3fe7612a","https://github.com/parse-community/parse-server/commit/3d7a61ecd5231638f01ff1a965b6313043c594a7","https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f"],"basis":"shared function","functions":["FilesRouter"]}]},{"from":"CVE-2022-41878","to":"CVE-2023-36475","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/RestWrite.js"],"commits":["https://github.com/parse-community/parse-server/commit/0a2d412e265992d53a670011afd9d2578562adc3","https://github.com/parse-community/parse-server/commit/6728da1e3591db1e27031d335d64d8f25546a06f","https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f"],"basis":"shared function","functions":["RestWrite"]}]},{"from":"CVE-2022-41879","to":"CVE-2023-36475","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Controllers/DatabaseController.js"],"commits":["https://github.com/parse-community/parse-server/commit/60c5a73d257e0d536056b38bdafef8b7130524d8","https://github.com/parse-community/parse-server/commit/6c63f04ba37174021082a5b5c4ba1556dcc954f4","https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f"],"basis":"shared function","functions":["DatabaseController"]}]}],"children":[{"from":"CVE-2023-36475","to":"CVE-2023-46119","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Routers/FilesRouter.js"],"commits":["https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f","https://github.com/parse-community/parse-server/commit/686a9f282dc23c31beab3d93e6d21ccd0e1328fe","https://github.com/parse-community/parse-server/commit/fd86278919556d3682e7e2c856dfccd5beffbfc0"],"basis":"shared function","functions":["FilesRouter"]}]}],"packageHistory":[{"cve":"CVE-2022-41879","published":"2022-11-10","fixed":"5.3.3","kev":false},{"cve":"CVE-2023-22474","published":"2023-02-03","fixed":"5.4.1","kev":false},{"cve":"CVE-2023-32689","published":"2023-05-30","fixed":"6.1.1","kev":false,"link":{"from":"CVE-2023-32689","to":"CVE-2023-36475","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:parse-server","fromFixed":"5.4.4","toFixed":"5.5.2","daysApart":29},{"kind":"version-step","provenance":"source","package":"npm:parse-server","fromFixed":"6.1.1","toFixed":"6.2.1","daysApart":29}]}},{"cve":"CVE-2023-36475","published":"2023-06-28","fixed":"6.2.1","kev":false},{"cve":"CVE-2023-41058","published":"2023-09-04","fixed":"6.2.2","kev":false,"link":{"from":"CVE-2023-36475","to":"CVE-2023-41058","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:parse-server","fromFixed":"5.5.2","toFixed":"5.5.5","daysApart":68},{"kind":"version-step","provenance":"source","package":"npm:parse-server","fromFixed":"6.2.1","toFixed":"6.2.2","daysApart":68},{"kind":"same-code","provenance":"machine","files":["src/RestWrite.js"],"commits":["https://github.com/parse-community/parse-server/commit/3dd99dd80e27e5e1d99b42844180546d90c7aa90","https://github.com/parse-community/parse-server/commit/5fad2928fb8ee17304abcdcf259932f827d8c81f","https://github.com/parse-community/parse-server/commit/be4c7e23c63a2fb690685665cebed0de26be05c5"],"basis":"shared file"}]}},{"cve":"CVE-2023-46119","published":"2023-10-25","fixed":"6.3.1","kev":false},{"cve":"CVE-2024-27298","published":"2024-03-01","fixed":"7.0.0-alpha.20","kev":false}],"package":"npm:parse-server"}}