Out-of-bounds Read Affecting nodejs-mongoose package, versions *


Severity

Recommended
low

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
1.84% (79th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-NODEJSMONGOOSE-9891881
  • published28 Apr 2025
  • disclosed26 Oct 2018

Introduced: 26 Oct 2018

CVE-2018-18765  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 nodejs-mongoose.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-mongoose package and not the nodejs-mongoose package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

An exploitable arbitrary memory read vulnerability exists in the MQTT packet-parsing functionality of Cesanta Mongoose 6.13. It is a heap-based buffer over-read in mg_mqtt_next_subscribe_topic. A specially crafted MQTT SUBSCRIBE packet can cause an arbitrary out-of-bounds memory read potentially resulting in information disclosure and denial of service. An attacker needs to send a specially crafted MQTT packet over the network to trigger this vulnerability.