{"schemaVersion":3,"id":"CVE-2022-26652","aliases":["GHSA-6h3m-36w8-hv68","BIT-nats-2022-26652","GO-2022-0351"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-03-10T03:48:44.000Z","modified":"2024-08-03T05:11:44.439Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02342,"percentile":0.83378,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02342},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02342,"percentile":0.83378}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02342,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02342,"percentile":0.83378}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"github.com/nats-io","product":"nats-server","name":"github.com/nats-io/nats-server","label":"nats-server","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/nats-io/nats-server","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/nats-io","product":"nats-streaming-server","name":"github.com/nats-io/nats-streaming-server","label":"nats-streaming-server","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/nats-io/nats-streaming-server","purlType":"golang","versions":[{"text":"≥ 0.15.0, < 0.24.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.15.0, < 0.24.3","eol":null,"hubHref":null},{"vendor":"github.com/nats-io/nats-server","product":"v2","name":"github.com/nats-io/nats-server/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/nats-io/nats-server/v2","purlType":"golang","versions":[{"text":"≥ 2.2.0, < 2.7.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.2.0, < 2.7.4","eol":null,"hubHref":null},{"vendor":"linuxfoundation","product":"nats-server","name":"nats-server","label":"nats-server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.2.0, < 2.7.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.2.0, < 2.7.4","eol":null,"hubHref":"/vendor/linuxfoundation/nats-server"},{"vendor":"nats","product":"nats_streaming_server","name":"nats streaming server","label":"nats_streaming_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.15.0, < 0.24.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.15.0, < 0.24.3","eol":null,"hubHref":"/vendor/nats/nats_streaming_server"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nats-io/nats-server/releases","label":"github.com/nats-io/nats-server/releases","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes","Third Party Advisory"]},{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68","label":"github.com/nats-io/nats-server/security/advisories/GHSA-6h3m-36w8-hv68","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Third Party Advisory"]},{"url":"https://advisories.nats.io/CVE/CVE-2022-26652.txt","label":"advisories.nats.io/CVE/CVE-2022-26652.txt","hostname":"advisories.nats.io","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/03/10/1","label":"www.openwall.com/lists/oss-security/2022/03/10/1","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26652","label":"nvd.nist.gov/vuln/detail/CVE-2022-26652","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/nats-io/nats-server/pull/2917","label":"github.com/nats-io/nats-server/pull/2917","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/nats-io/nats-server","label":"github.com/nats-io/nats-server","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/nats-io/nats-server/releases/tag/v2.7.4","label":"github.com/nats-io/nats-server/releases/tag/v2.7.4","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/nats-io/nats-streaming-server/releases/tag/v0.24.3","label":"github.com/nats-io/nats-streaming-server/releases/tag/v0.24.3","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-03-10T03:48:44.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T05:11:44.439Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T12:10:45.422Z","stale":false,"partial":false}}