# CVE-2022-26652: Arbitrary file write in nats-server

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.34%, higher than 84% of CVEs (2026-12-02)
- Published: 2022-03-10T03:48:44.000Z
- Modified: 2026-07-08T06:29:51.186Z
- Also known as: GHSA-6h3m-36w8-hv68, BIT-NATS-2022-26652, GO-2022-0351
- Weaknesses: CWE-22
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/nats-io/nats-server/v2 (Go): from 2.2.0 before 2.7.4
- github.com/nats-io/nats-streaming-server (Go): from 0.15.0 before 0.24.3
- github.com/nats-io/nats-server (Go): all versions
- linuxfoundation nats-server: from 2.2.0 before 2.7.4
- nats nats_streaming_server: from 0.15.0 before 0.24.3
- nats (Bitnami): from 2.2.0 before 2.7.4

## Every score

- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/nats-io/nats-server/releases> (release-notes, third-party-advisory, web)
- <https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68> (advisory, third-party-advisory, web)
- <https://advisories.nats.io/CVE/CVE-2022-26652.txt> (vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/03/10/1> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-26652> (advisory, web)
- <https://github.com/nats-io/nats-server/pull/2917> (fix, web)
- <https://github.com/nats-io/nats-server> (package)
- <https://github.com/nats-io/nats-server/releases/tag/v2.7.4> (web)
- <https://github.com/nats-io/nats-streaming-server/releases/tag/v0.24.3> (web)

## Sources

- CVE List: [CVE-2022-26652](https://www.cve.org/CVERecord?id=CVE-2022-26652), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-6h3m-36w8-hv68](https://github.com/advisories/GHSA-6h3m-36w8-hv68), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0351](https://pkg.go.dev/vuln/GO-2022-0351), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-26652](https://nvd.nist.gov/vuln/detail/CVE-2022-26652), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NATS-2022-26652](https://osv.dev/vulnerability/BIT-NATS-2022-26652), Apache-2.0, modified 2025-04-03

---

Page: https://cve.day/CVE-2022-26652 · Whole record: https://cve.day/CVE-2022-26652.json · Rebuilt by cve.day 2026-11-25T22:58:10.027Z
