{"id":"CVE-2022-26652","published":"2022-03-10T03:48:44Z","modified":"2024-08-03T05:11:44Z","title":"NATS nats-server before 2.7.4 allows Directory Traversal (with write access) via an element in a ZIP archive for…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02342,"percentile":0.84032,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/nats-io/nats-server/releases","tags":["x_refsource_MISC"]},{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68","tags":["x_refsource_CONFIRM"]},{"url":"https://advisories.nats.io/CVE/CVE-2022-26652.txt","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2022/03/10/1","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":16.81}]},"affected":[{"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","vulnerableRanges":[">=2.2.0, <2.7.4"],"patched":["2.7.4"],"from":["GHSA-6h3m-36w8-hv68","GO-2022-0351"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/nats-io/nats-streaming-server","vulnerableRanges":[">=0.15.0, <0.24.3"],"patched":["0.24.3"],"from":["GHSA-6h3m-36w8-hv68","GO-2022-0351"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/nats-io/nats-server","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2022-0351"],"provenance":"source"}],"summary":{"text":"The flaw is a directory traversal issue in the JetStream component of NATS nats-server (versions before 2.7.4), and it also affects nats-streaming-server before 0.24.3, where a crafted element inside a ZIP archive used for JetStream streams can escape the intended directory. An attacker who already has write access to the affected stream data can exploit it by supplying such an archive so that files are written to locations outside the intended path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:20Z"},"euvd":{"id":"EUVD-2022-1345","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-13126","published":"2019-07-29","fixed":"2.2.0","kev":false},{"cve":"CVE-2020-28466","published":"2021-03-07","fixed":"2.2.0","kev":false},{"cve":"CVE-2022-24450","published":"2022-02-08","fixed":"2.7.2","kev":false,"link":{"from":"CVE-2022-24450","to":"CVE-2022-26652","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/nats-io/nats-server/v2","fromFixed":"2.7.2","toFixed":"2.7.4","daysApart":30},{"kind":"version-step","provenance":"source","package":"Go:github.com/nats-io/nats-streaming-server","fromFixed":"0.24.1","toFixed":"0.24.3","daysApart":30}]}},{"cve":"CVE-2022-26652","published":"2022-03-10","fixed":"2.7.4","kev":false},{"cve":"CVE-2022-28357","published":"2023-09-19","fixed":"2.7.4","kev":false},{"cve":"CVE-2022-29946","published":"2024-07-11","fixed":"2.8.2","kev":false},{"cve":"CVE-2023-47090","published":"2023-10-30","fixed":"2.10.2","kev":false}],"package":"Go:github.com/nats-io/nats-server/v2"}}