CVE-2022-26652Linuxfoundation Nats-server
Medium 6.5
Follow: this CVE · Linuxfoundation · Linuxfoundation Nats-server We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- Yes
- Published
- Mar 10, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Nats-server.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/nats-io/nats-server |
all |
no fixed version | — |
| Go | github.com/nats-io/nats-server/v2 |
≥ 2.2.0 < 2.7.4 |
2.7.4 |
go get github.com/nats-io/nats-server/v2@v2.7.4 |
| Go | github.com/nats-io/nats-server/v2 |
≥ 2.2.0 < 2.7.4 |
2.7.4 |
go get github.com/nats-io/nats-server/v2@v2.7.4 |
| Go | github.com/nats-io/nats-streaming-server |
≥ 0.15.0 < 0.24.3 |
0.24.3 |
go get github.com/nats-io/nats-streaming-server@v0.24.3 |
| Go | github.com/nats-io/nats-streaming-server |
≥ 0.15.0 < 0.24.3 |
0.24.3 |
go get github.com/nats-io/nats-streaming-server@v0.24.3 |
Per OSV / GitHub Advisories (GO-2022-0351, GHSA-6h3m-36w8-hv68). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | nats-server | ≥ 2.2.0 < 2.7.4 |
| nats | nats_streaming_server | ≥ 0.15.0 < 0.24.3 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- advisories.nats.io Vendor Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory