Home / Linuxfoundation / Nats-server / CVE-2022-26652
CVE-2022-26652: is it exploited, and which versions of Linuxfoundation Nats-server are affected and fixed?
CVE-2022-26652 is a path traversal (reading or writing files outside the intended folder) vulnerability in Linuxfoundation Nats-server. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: github.com/nats-io/nats-server/v2 from 2.2.0 before 2.7.4 and github.com/nats-io/nats-streaming-server from 0.15.0 before 0.24.3 (GitHub advisory GHSA-6h3m-36w8-hv68). Fixed in 2.7.4 and 0.24.3 (GitHub advisory GHSA-6h3m-36w8-hv68). Severity: Medium (6.5, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:50 UTC.
What is CVE-2022-26652?
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.
From the CVE record by mitre, last updated August 3, 2024, 05:11 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/nats-io/nats-server/v2 | >= 2.2.0, < 2.7.4 | 2.7.4 | GHSA-6h3m-36w8-hv68 |
| Go | github.com/nats-io/nats-streaming-server | >= 0.15.0, < 0.24.3 | 0.24.3 | GHSA-6h3m-36w8-hv68 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 24, 2022. Summary: Arbitrary file write in nats-server.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| linuxfoundation | nats-server | from 2.2.0 before 2.7.4 | application |
| nats | nats streaming server | from 0.15.0 before 0.24.3 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:35 UTC.
How severe is CVE-2022-26652?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | NVD |
| Medium 4.0 | CVSS 2.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-26652 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.34% probability of exploitation activity in the next 30 days, percentile 84.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- https://github.com/nats-io/nats-server/releases x_refsource_MISC
- https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68 x_refsource_CONFIRM
- https://advisories.nats.io/CVE/CVE-2022-26652.txt x_refsource_CONFIRM
- [oss-security] 20220309 CVE-2022-26652: nats-server arbitrary file write mailing-list, x_refsource_MLIST
When was it published, and where is the official record?
- Reserved
- March 7, 2022
- Published
- March 10, 2022, 03:48 UTC
- CVE record updated
- August 3, 2024, 05:11 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 04:35 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:50 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Nats-server?
- Oct 30, 2023CVE-2023-47090 Linuxfoundation Nats-server: incorrect authorization
- Sep 19, 2023CVE-2022-28357 Linuxfoundation Nats-server: path traversal (reading or writing files outside the intended folder)
- Feb 8, 2022CVE-2022-24450 Linuxfoundation Nats-server: missing authorization
- Mar 16, 2021CVE-2021-3127 Linuxfoundation Nats-server: exceptional condition mishandled
- Nov 6, 2020CVE-2020-26892 Linuxfoundation Nats-server: hard-coded credentials
- Nov 6, 2020CVE-2020-26521 Linuxfoundation Nats-server: NULL pointer dereference (crash)
- Jul 29, 2019CVE-2019-13126 Linuxfoundation Nats-server: integer overflow
Questions about CVE-2022-26652
Is CVE-2022-26652 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 2.34% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Linuxfoundation Nats-server are affected by CVE-2022-26652?
github.com/nats-io/nats-server/v2 from 2.2.0 before 2.7.4 and github.com/nats-io/nats-streaming-server from 0.15.0 before 0.24.3, per the GitHub advisory GHSA-6h3m-36w8-hv68. The tables above give every range the sources list.
Which version fixes CVE-2022-26652?
2.7.4 and 0.24.3, per the GitHub advisory GHSA-6h3m-36w8-hv68. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-26652?
Medium (6.5, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2022-26652?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.