p PatchFirst

CVE-2026-110486

CVE-2026-110486 · Remote heap out-of-bounds read/write in Eclipse Mosquitto

CVSS 9.8 · Critical · EPSS 1.3% · Public exploit

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="mosquitto"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

In Eclipse Mosquitto versions 2.1 through 2.1.2, a listener configured with `protocol websockets` mishandles empty WebSocket data frames. `net__read_ws()` in `lib/net_ws.c` returns the number of framing bytes consumed (the 4 masking-key bytes) for a data frame with a zero-length payload, without writing any bytes to the caller’s buffer. The MQTT packet reader in `packet__read_single()` (`lib/packet_mosq.c`) trusts that return value as a payload byte count. A remote client can therefore advance the read position over an uninitialised heap allocation, causing the broker to process and forward uninitialised heap memory (information disclosure, including heap and libc pointers), and can underflow the unsigned `to_process` counter so that subsequent attacker-controlled frame data is written past the end of the allocation (heap out-of-bounds write). The out-of-bounds write is reachable from the CONNECT packet before any authentication check, so an unauthenticated client can corrupt the heap and crash the broker even when `allow_anonymous false` is set. Combining the disclosure and the write allows remote code execution as the broker’s user by any client able to establish a session.

Published
Updated

Stack: system

Affected products and versions

  • eclipse mosquitto

    Versions
    • ≥ 2.1, ≤ 2.1.2: Affected (custom)

    No fix published

  • mosquitto Debian 14

    Versions
    • 2.0.21-1
    • 2.0.22-1
    • 2.0.22-2
    • 2.0.22-3
    • 2.0.22-4
    • 2.0.22-5
    All versions (13)
    • 2.1.2-1
    • 2.1.2-1~exp1
    • 2.1.2-2
    • 2.1.2-3
    • 2.1.2-4
    • 2.1.2-5
    • 2.1.2-6
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mosquitto Ubuntu Pro 14.04 LTS

    Versions
    • 0.15-2ubuntu1
    • 0.15-2ubuntu1.1
    • 0.15-2ubuntu1.2
    • 0.15-2+deb7u3ubuntu0.1
    • 0.15-2+deb7u3ubuntu0.1+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mosquitto Ubuntu Pro 16.04 LTS

    Versions
    • 1.4.3-1
    • 1.4.4-1
    • 1.4.7-1
    • 1.4.8-1
    • 1.4.8-1build1
    • 1.4.8-1ubuntu0.16.04.1
    All versions (14)
    • 1.4.8-1ubuntu0.16.04.2
    • 1.4.8-1ubuntu0.16.04.3
    • 1.4.8-1ubuntu0.16.04.4
    • 1.4.8-1ubuntu0.16.04.5
    • 1.4.8-1ubuntu0.16.04.6
    • 1.4.8-1ubuntu0.16.04.7
    • 1.4.8-1ubuntu0.16.04.7+esm1
    • 1.4.8-1ubuntu0.16.04.7+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mosquitto Ubuntu Pro 18.04 LTS

    Versions
    • 1.4.12-1
    • 1.4.14-1
    • 1.4.14-2
    • 1.4.14-2build1
    • 1.4.15-1
    • 1.4.15-2
    All versions (11)
    • 1.4.15-2ubuntu0.18.04.1
    • 1.4.15-2ubuntu0.18.04.2
    • 1.4.15-2ubuntu0.18.04.3
    • 1.4.15-2ubuntu0.18.04.3+esm1
    • 1.4.15-2ubuntu0.18.04.3+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mosquitto Ubuntu Pro 20.04 LTS

    Versions
    • 1.6.6-1
    • 1.6.7-1
    • 1.6.8-1
    • 1.6.8-2
    • 1.6.9-1~build1
    • 1.6.9-1
    All versions (8)
    • 1.6.9-1ubuntu0.1~esm1
    • 1.6.9-1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mosquitto Ubuntu 22.04 LTS

    Versions
    • 2.0.11-1
    • 2.0.11-1build1
    • 2.0.11-1ubuntu1
    • 2.0.11-1ubuntu1.1
    • 2.0.11-1ubuntu1.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mosquitto Ubuntu Pro 24.04 LTS

    Versions
    • 2.0.18-1
    • 2.0.18-1build1
    • 2.0.18-1build2
    • 2.0.18-1build3
    • 2.0.18-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mosquitto Ubuntu 26.10

    Versions
    • 2.0.22-5build1
    • 2.1.2-3
    • 2.1.2-3build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mosquitto Ubuntu 26.04 LTS

    Versions
    • 2.0.22-2
    • 2.0.22-5build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →