{"id":"CVE-2021-20333","aliases":["CVE-2021-20333","BIT-MONGODB-2021-20333"],"related":[],"kind":"vulnerability","state":"published","title":"Server log entry spoofing via newline injection","summary":"Sending specially crafted commands to a MongoDB Server may result in artificial log entries being generated or for log entries to be split. This issue affects MongoDB Server v3.6 versions prior to 3.6.20; MongoDB Server v4.0 versions prior to 4.0.21 and MongoDB Server v4.2 versions prior to 4.2.10.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sending specially crafted commands to a MongoDB Server may result in artificial log entries being generated or for log entries to be split. This issue affects MongoDB Server v3.6 versions prior to 3.6.20; MongoDB Server v4.0 versions prior to 4.0.21 and MongoDB Server v4.2 versions prior to 4.2.10.","source":"cvelist"},{"lang":"es","text":"Mediante el envío de comandos especialmente diseñados a MongoDB Server puede resultar en la generación de entradas de registro artificiales o para que las entradas de registro se divididan. Este problema afecta a versiones de MongoDB Server v3.6 anteriores a 3.6.20; versiones de MongoDB Server v4.0 anteriores a 4.0.21; versiones de MongoDB Server v4.2 anteriores a 4.2.10","source":"nvd"}],"published":"2021-07-23T11:25:11.191Z","modified":"2026-09-08T08:48:14.054Z","severity":{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"mongodb","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-116","CWE-117"],"affected":[{"ranges":[{"type":"custom","introduced":"3.6","fixed":"3.6.20","status":"affected"},{"type":"custom","introduced":"4.0","fixed":"4.0.21","status":"affected"},{"type":"custom","introduced":"4.2","fixed":"4.2.10","status":"affected"}],"vendor":"MongoDB Inc.","product":"MongoDB Server","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.6.0","fixed":"3.6.20"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.21"},{"status":"affected","introduced":"4.2.0","fixed":"4.2.10"}],"vendor":"mongodb","product":"mongodb","cpe":"cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.6.0","status":"affected","fixed":"3.6.20"},{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.21"},{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.10"}],"ecosystem":"Bitnami","package":"mongodb","purl":"pkg:bitnami/mongodb","source":"bitnami"}],"references":[{"url":"https://jira.mongodb.org/browse/SERVER-50605","tags":["advisory","exploit","patch","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20333","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"mongodb","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-20333","url":"https://www.cve.org/CVERecord?id=CVE-2021-20333","licence":"CVE Terms of Use","modified":"2024-09-17T03:08:05.394Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-20333","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20333","licence":"Public domain","modified":"2026-06-17T03:33:41.610Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MONGODB-2021-20333","url":"https://osv.dev/vulnerability/BIT-MONGODB-2021-20333","licence":"Apache-2.0","modified":"2026-09-08T08:48:14.054Z"}],"updatedAt":"2026-11-25T22:58:02.847Z","epss":{"score":0.013,"percentile":0.71277,"date":"2026-12-01T12:00:22.000Z"}}