Advisory

GHSA-97mg-3cr6-3x4c

Also known as: None

Summary

Remote Code Execution in mongodb-query-parser

Details

Versions of mongodb-query-parser prior to 2.0.0 are vulnerable to Remote Code Execution. The package fails to sanitize queries, allowing attackers to execute arbitrary code in the system. Parsing the following payload executes touch test-file:




## Recommendation

Upgrade to version 2.0.0 or later.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2020-09-04 17:27 UTC
Modified
2020-08-31 18:59 UTC

Affected packages and fixes

mongodb-query-parser

npm · All systems

Affected

  • introduced 0, fixed 2.0.0 (semver)

Fixed versions

2.0.0

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