CVE-2022-26652Medium· 6.5▾ SunlitArbitrary file write in nats-server
▾ Sunlit zone — Low / medium · no exploitation signal
impact 35.8 · likelihood 0.5 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 9.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
2.3%
2.3% → 2.3%
(This document is canonically: https://advisories.nats.io/CVE/CVE-2022-26652.txt)
NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.
JetStream is the optional RAFT-based resilient persistent feature of NATS.
The JetStream streams can be backed up and restored via NATS. The backup format is a tar archive file. Inadequate checks on the filenames within the archive file permit a so-called "Zip Slip" attack in the stream restore.
NATS nats-server through 2022-03-09 (fixed in release 2.7.4) did not correctly sanitize elements of the archive file, thus a user of NATS could cause the NATS server to write arbitrary content to an attacker-controlled filename.
NATS Server:
NATS Streaming Server
Upgrade the NATS server to at least 2.7.4.
We fully support the util/nats-server-hardened.service configuration for running a NATS server and encourage this approach.
This issue was reported (on 2022-03-07) to the NATS Maintainers by
Yiming Xiang, TIANJI LAB of NSFOCUS.
Thank you / 谢谢你!
github.com/nats-io/nats-server/v2 >= 2.2.0, < 2.7.4github.com/nats-io/nats-streaming-server >= 0.15.0, < 0.24.3Upgrade to a patched release:
github.com/nats-io/nats-server/v2 2.7.4github.com/nats-io/nats-streaming-server 0.24.3Connected by shared product, vendor, weakness, or advisory.
CVE-2026-33246Medium· 6.4NATS: Leafnode connections allow spoofing of Nats-Request-Info identity headers
CVE-2026-33248Medium· 4.2NATS has mTLS verify_and_map authentication bypass via incorrect Subject DN matching
CVE-2023-47090HighNATS.io: Adding accounts for just the system account adds auth bypass
CVE-2020-26892Critical· 9.8Incorrect handling of credential expiry by /nats-io/nats-server
CVE-2021-3127Criticalnats-io/jwt not enforcing checking of Import token permissions
CVE-2020-28466High· 7.5Denial of service in github.com/nats-io/nats-server/server