CVE-2022-26652 json
Arbitrary file write in nats-server
published 2022-03-10 4 y ago modified 2026-07-08 4 mo 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
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 productsnot 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-08).
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
-
github.com
/nats-io/nats-server/pull/2917
web, patch
-
advisories.nats.io
/CVE/CVE-2022-26652.txt
web, vendor-advisory
-
github.com
/nats-io/nats-server/releases
web, release-notes, third-party-advisory
-
github.com
/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68
web, third-party-advisory, advisory
-
openwall.com
/lists/oss-security/2022/03/10/1
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-26652
advisory, web
-
github.com
/nats-io/nats-server
package
-
github.com
/nats-io/nats-server/releases/tag/v2.7.4
web
-
github.com
/nats-io/nats-streaming-server/releases/tag/v0.24.3
web
Sources
- CVE List CVE-2022-26652
- GitHub Advisory GHSA-6h3m-36w8-hv68
- NVD CVE-2022-26652
- OSV BIT-nats-2022-26652
- OSV GO-2022-0351
Fencer Vulns 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.