{"id":"EUVD-2022-1345","revision":null,"records":[{"revision":"94f4bf89e1df431f9c037a2654399f19","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2022-26652","aliases":[],"title":"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.","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.","state":0,"publishedAt":"2022-03-10T03:48:44+00:00","modifiedAt":"2024-08-03T05:11:44.439+00:00","affected":[{"ecosystem":"Vendor product","name":"n/a","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"n/a\",\n                    \"vendor\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"n/a\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://github.com/nats-io/nats-server/releases","https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68","https://advisories.nats.io/CVE/CVE-2022-26652.txt","http://www.openwall.com/lists/oss-security/2022/03/10/1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-26652","license":"CVE Program Terms of Use","key":"cve-program:CVE-2022-26652","identifiers":["CVE-2022-26652"]},"retained":false,"historicalAffected":[]},{"revision":"24946666596f41738456470709c52794","observedAt":"2026-11-24T04:33:45.656+00:00","statement":{"source":"euvd","id":"EUVD-2022-1345","aliases":["CVE-2022-26652","GHSA-6h3m-36w8-hv68"],"title":"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.","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://github.com/nats-io/nats-server/releases","https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68","https://advisories.nats.io/CVE/CVE-2022-26652.txt","http://www.openwall.com/lists/oss-security/2022/03/10/1"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-1345","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Mar 10, 2022, 3:48:44 AM","dateUpdated":"Aug 3, 2024, 5:11:44 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2022-1345","identifiers":["EUVD-2022-1345","CVE-2022-26652","GHSA-6h3m-36w8-hv68"]},"retained":false,"historicalAffected":[]},{"revision":"e5ee7c7fc5fd4cb294e89f273a321279","observedAt":"2026-10-24T20:17:18.289+00:00","statement":{"source":"nvd","id":"CVE-2022-26652","aliases":[],"title":"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.","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.","state":0,"publishedAt":"2022-03-10T17:47:51.47+00:00","modifiedAt":"2026-06-17T04:35:35.63+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"severity":"MEDIUM"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","score":4,"severity":"MEDIUM"}],"references":["http://www.openwall.com/lists/oss-security/2022/03/10/1","https://advisories.nats.io/CVE/CVE-2022-26652.txt","https://github.com/nats-io/nats-server/releases","https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-26652","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-22"],"productCriteria":["cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*","cpe:2.3:a:nats:nats_streaming_server:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2022-03-10T17:47:51.470","lastModified":"2026-06-17T04:35:35.630"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2022-26652","identifiers":["CVE-2022-26652"]},"retained":false,"historicalAffected":[]},{"revision":"4c9ec2319ed746f18214fc42147f6bda","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-6h3m-36w8-hv68","aliases":["BIT-nats-2022-26652","CVE-2022-26652","GO-2022-0351"],"title":"Arbitrary file write in nats-server","description":"(This document is canonically: <https://advisories.nats.io/CVE/CVE-2022-26652.txt>)\n\n## Background\n\nNATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.\n\nJetStream is the optional RAFT-based resilient persistent feature of NATS.\n\n\n## Problem Description\n\nThe JetStream streams can be backed up and restored via NATS. The backup format is a tar archive file.  Inadequate checks on the filenames within the archive file permit a so-called \"Zip Slip\" attack in the stream restore.\n\nNATS nats-server through 2022-03-09 (fixed in release 2.7.4) did not correctly sanitize elements of the archive file, thus a user of NATS\ncould cause the NATS server to write arbitrary content to an attacker-controlled filename.\n\n\n## Affected versions\n\nNATS Server:\n * 2.2.0 up to and including 2.7.3.\n   + Introduced with JetStream Restore functionality\n * Fixed with nats-io/nats-server: 2.7.4\n * Docker image:  nats <https://hub.docker.com/_/nats>\n * NB users of OS package files from our releases: a change in goreleaser defaults, discovered late in the release process, moved the install directory from /usr/local/bin to /usr/bin; we are evaluating the correct solution for subsequent releases, but not recutting this release.\n\nNATS Streaming Server\n * 0.15.0 up to and including 0.24.2\n * Fixed with nats-io/nats-streaming-server: 0.24.3\n * Embeds a nats-server, but this server is the old approach which JetStream replaces, so unlikely (but not impossible) to be\n   configured with JS support\n\n\n## Workarounds\n\n * Disable JetStream for untrusted users.\n * If only one NATS account uses JetStream, such that cross-user attacks are not an issue, and any user in that account with access to the JetStream API is fully trusted anyway, then appropriate sandboxing techniques will prevent exploit.\n   + Eg, with systemd, the supplied util/nats-server-hardened.service example configuration demonstrates that NATS runs fine as an unprivileged user under ProtectSystem=strict and PrivateTmp=true restrictions; by only opening a ReadWritePaths hole for the JetStream storage area, the impact of this vulnerability is limited.\n\n\n## Solution\n\nUpgrade the NATS server to at least 2.7.4.\n\nWe fully support the util/nats-server-hardened.service configuration for running a NATS server and encourage this approach.\n\n\n## Credits\n\nThis issue was reported (on 2022-03-07) to the NATS Maintainers by\nYiming Xiang, TIANJI LAB of NSFOCUS.  \nThank you / 谢谢你！\n","state":0,"publishedAt":"2022-03-10T22:07:30+00:00","modifiedAt":"2026-07-08T06:29:51.1868657+00:00","affected":[{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.2.0"},{"kind":"fixed","version":"2.7.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/nats-io/nats-streaming-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.15.0"},{"kind":"fixed","version":"0.24.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68","https://nvd.nist.gov/vuln/detail/CVE-2022-26652","https://github.com/nats-io/nats-server/pull/2917","https://advisories.nats.io/CVE/CVE-2022-26652.txt","https://github.com/nats-io/nats-server","https://github.com/nats-io/nats-server/releases","https://github.com/nats-io/nats-server/releases/tag/v2.7.4","https://github.com/nats-io/nats-streaming-server/releases/tag/v0.24.3","http://www.openwall.com/lists/oss-security/2022/03/10/1"],"sourceUrl":"https://github.com/advisories/GHSA-6h3m-36w8-hv68","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6h3m-36w8-hv68","identifiers":["GHSA-6h3m-36w8-hv68","BIT-nats-2022-26652","CVE-2022-26652","GO-2022-0351"]},"retained":false,"historicalAffected":[]},{"revision":"6c096c25c8a84c6f89b676c636b1972d","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2022-0351","aliases":["BIT-nats-2022-26652","CVE-2022-26652","GHSA-6h3m-36w8-hv68"],"title":"Arbitrary file write in nats-server in github.com/nats-io/nats-server","description":"Arbitrary file write in nats-server in github.com/nats-io/nats-server","state":0,"publishedAt":"2024-08-21T14:30:29+00:00","modifiedAt":"2026-03-03T04:50:02.887708+00:00","affected":[{"ecosystem":"Go","name":"github.com/nats-io/nats-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/nats-io/nats-server/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.2.0"},{"kind":"fixed","version":"2.7.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/nats-io/nats-streaming-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.15.0"},{"kind":"fixed","version":"0.24.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68","https://nvd.nist.gov/vuln/detail/CVE-2022-26652","https://github.com/nats-io/nats-server/pull/2917","http://www.openwall.com/lists/oss-security/2022/03/10/1","https://advisories.nats.io/CVE/CVE-2022-26652.txt","https://github.com/nats-io/nats-server/releases","https://github.com/nats-io/nats-server/releases/tag/v2.7.4","https://github.com/nats-io/nats-streaming-server/releases/tag/v0.24.3"],"sourceUrl":"https://osv.dev/vulnerability/GO-2022-0351","license":"OSV · upstream source license applies","key":"osv:GO-2022-0351","identifiers":["GO-2022-0351","BIT-nats-2022-26652","CVE-2022-26652","GHSA-6h3m-36w8-hv68"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-25T15:30:40.6081624+00:00","complete":true,"records":1796,"lastAttemptAt":"2026-11-25T15:30:40.6081624+00:00","lastSuccessAt":"2026-11-25T15:30:40.8059403+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:30:40.8059408+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8d356adab43082cb10bb7c033ed58312cf2ad2f0fb10e0afdf27fc89fa361f3b-c8a5bbe81e5c97f1ef0204d9f424811c3ab0e015216b17be9cd9061ec365cc09","complete":true,"records":432153,"lastAttemptAt":"2026-11-25T15:28:37.3830721+00:00","lastSuccessAt":"2026-11-25T15:28:37.2582332+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:28:37.3830721+00:00","snapshotPublishedAt":"2026-11-25T14:30:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-5922d9804a9248789f8c2f7e9396c714","complete":false,"records":13938,"lastAttemptAt":"2026-11-25T15:41:09.4114251+00:00","lastSuccessAt":"2026-11-25T15:41:09.407+00:00","error":"129 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-25T15:41:09.407+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13600,"expectedIdentifiers":13986,"failedIdentifiers":129},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-25T15:30:40.6081624+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-25T15:30:40.6081624+00:00","lastSuccessAt":"2026-11-25T15:30:40.8067671+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:30:40.8067672+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-91a1844a9c234a33bf5df077b2f01fa3","complete":true,"records":13950,"lastAttemptAt":"2026-11-25T15:30:41.8818771+00:00","lastSuccessAt":"2026-11-25T15:30:41.877+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:30:41.877+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13986,"expectedIdentifiers":13986,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-70b1e3058f76fab20c77bb1c4924a4c57f7654dd208befb5b1f237e682d6ddca","complete":true,"records":10077,"lastAttemptAt":"2026-11-25T15:30:40.4787181+00:00","lastSuccessAt":"2026-11-25T11:46:59.5507764+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:30:40.4787181+00:00","snapshotPublishedAt":"2026-11-25T11:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-25T15:28:37.4627555+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:28:37.4627555+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-5be533520b83c9bfaebc80695093f6f0d59feafc2a1eab94e91dd79d1bb9241b","complete":true,"records":3222,"lastAttemptAt":"2026-11-25T15:30:40.5768219+00:00","lastSuccessAt":"2026-11-25T11:47:03.6026853+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:30:40.5768219+00:00","snapshotPublishedAt":"2026-11-25T11:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-5747fce78879ab80d0039caa02f9d28c583bbc680a45e25fa53cb124697761ff","complete":true,"records":233128,"lastAttemptAt":"2026-11-25T15:30:40.354568+00:00","lastSuccessAt":"2026-11-25T15:30:39.1946895+00:00","error":null,"lastVerifiedAt":"2026-11-25T15:30:40.354568+00:00","snapshotPublishedAt":"2026-11-25T15:03:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}