Division by zero Affecting halfgaar/FlashMQ package, versions [,1.26.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (28th 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-UNMANAGED-HALFGAARFLASHMQ-16599134
  • published9 May 2026
  • disclosed8 May 2026
  • creditRuoyyy

Introduced: 8 May 2026

CVE-2026-42209  (opens in a new tab)
CWE-369  (opens in a new tab)

How to fix?

Upgrade halfgaar/FlashMQ to version 1.26.1 or higher.

Overview

Affected versions of this package are vulnerable to Division by zero in the set_retained_message_defer_timeout and set_retained_message_defer_timeout_spread process when both are configured to non-default values. An attacker can cause the broker to crash by sending a specially crafted retained publish request. This is only exploitable if both set_retained_message_defer_timeout and set_retained_message_defer_timeout_spread are set to non-default values.

CVSS Base Scores

version 4.0
version 3.1