Advisory

GHSA-r5xw-q988-826m

Also known as: None

Summary

Remote Memory Exposure in mongoose

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-09-01 19:39 UTC
Modified
2023-12-07 22:05 UTC

Affected packages and fixes

mongoose

npm · All systems

Affected

  • introduced 3.5.5, fixed 3.8.39 (semver)

Fixed versions

3.8.39

Fix

mongoose

npm · All systems

Affected

  • introduced 4.0.0, fixed 4.3.6 (semver)

Fixed versions

4.3.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences