# GHSA-r5xw-q988-826m: Remote Memory Exposure in mongoose

- Severity: Medium 5.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-01T19:39:37.000Z
- Modified: 2023-12-07T22:05:28.000Z
- Weaknesses: CWE-201

## Description

Versions of `mongoose` before 4.3.6, 3.8.39 are vulnerable to remote memory exposure.

Trying 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.


## Recommendation

Update to version 4.3.6, 3.8.39 or later.

(As written by GitHub Advisory Database.)

## Affected

- mongoose (npm): from 3.5.5 before 3.8.39; from 4.0.0 before 4.3.6

## References

- <https://github.com/Automattic/mongoose/issues/3764> (web)
- <https://gist.github.com/ChALkeR/440bc3dfcbd9b6da75c3> (web)
- <https://gist.github.com/ChALkeR/d4a8055625221b6e65f0> (web)
- <https://www.npmjs.com/advisories/599> (web)

## Sources

- GitHub Advisory Database: [GHSA-r5xw-q988-826m](https://github.com/advisories/GHSA-r5xw-q988-826m), CC-BY-4.0, modified 2023-12-07

---

Page: https://cve.day/GHSA-r5xw-q988-826m · Whole record: https://cve.day/GHSA-r5xw-q988-826m.json · Rebuilt by cve.day 2026-11-25T22:56:46.413Z
