Advisory record · GHSA-6h3m-36w8-hv68

Arbitrary file write in nats-server

CVSS 6.5 MediumEPSS 0.023 · 84th percentile

Published by the GitHub Advisory Database at 10 Mar 2022, 22:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/nats-io/nats-server/v2Go>=2.2.0, <2.7.42.7.4
github.com/nats-io/nats-streaming-serverGo>=0.15.0, <0.24.30.24.3
Identifiers
GHSA-6h3m-36w8-hv68 · BIT-nats-2022-26652 · CVE-2022-26652 · GO-2022-0351
Weakness (CWE)
CWE-22
Published
10 Mar 2022
Updated
8 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Two packages are affected: github.com/nats-io/nats-server/v2 (versions 2.2.0 up to 2.7.4) and github.com/nats-io/nats-streaming-server (0.15.0 up to 0.24.3). In both, a user of the server can supply a crafted tar archive during a JetStream stream restore, letting the server write arbitrary content to an attacker-chosen filename. Upgrade nats-server to 2.7.4 or later and nats-streaming-server to 0.24.3 or later; as a workaround, disable JetStream for untrusted users.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.5 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.023, the 84th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:05 UTC First seen by agentprime
  2. 31 Oct 2026, 15:05 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.