Skip to content
Fencer Intel
medium 6.5

CVE-2022-26652 json

Arbitrary file write in nats-server

published 4y ago modified 4mo ago also BIT-nats-2022-26652 , EUVD-2022-1345 , GHSA-6h3m-36w8-hv68 , GO-2022-0351

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.3%
EPSS 2.3% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

NATS nats-server before 2.7.4 allows Directory Traversal (with write access) via an element in a ZIP archive for JetStream streams. nats-streaming-server before 0.24.3 is also affected.

Patch / fix

  • go github.com/nats-io/nats-server/v2 2.7.4
  • go github.com/nats-io/nats-streaming-server 0.24.3
  • bitnami nats 2.7.4
  • linuxfoundation nats-server 2.7.4
  • nats nats_streaming_server 0.24.3

Is CVE-2022-26652 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-26652 updated cvss 5.5

nats-server: arbitrary file write

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.34% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
NVD 2.0 4.0 AV:N/AC:L/Au:S/C:N/I:P/A:N
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
go github.com/nats-io/nats-server/v2
>=2.2.0, <2.7.4
2.7.4
go github.com/nats-io/nats-streaming-server
>=0.15.0, <0.24.3
0.24.3
bitnami nats
>=2.2.0, <2.7.4
2.7.4
go github.com/nats-io/nats-server
all versions
no fix listed

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.