Integer Overflow or Wraparound Affecting github.com/nats-io/nats-server/server package, versions <2.12.12>=2.14.0-RC.1 <2.14.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.56% (45th 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-GOLANG-GITHUBCOMNATSIONATSSERVERSERVER-17900562
  • published9 Jul 2026
  • disclosed8 Jul 2026
  • creditSaleh

Introduced: 8 Jul 2026

CVE-2026-58207  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade github.com/nats-io/nats-server/server to version 2.12.12, 2.14.3 or higher.

Overview

github.com/nats-io/nats-server/server is an A simple, secure and performant communications system for digital systems, services and devices.

Affected versions of this package are vulnerable to Integer Overflow or Wraparound in the Connz connection monitoring pagination handler, which processes client-supplied pagination values before the response window is safely bounded. An attacker can crash the server and cause denial of service by sending an account-scoped connection monitoring request with pagination values that trigger arithmetic overflow. Exploitation requires the ability to publish to the account's system monitoring subject, so in no-auth deployments any client on the client listener qualifies, while in multi-tenant setups it depends on whether a tenant can publish to the imported monitoring subject.

Workaround

This vulnerability can be avoided by restricting publish access to the system request subjects for untrusted users, so they cannot reach the connection monitoring endpoint.

CVSS Base Scores

version 4.0
version 3.1