{"api_version":"1","generated_at":"2026-07-24T05:04:20+00:00","cve":"CVE-2022-36066","urls":{"html":"https://cve.report/CVE-2022-36066","api":"https://cve.report/api/cve/CVE-2022-36066.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-36066","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-36066"},"summary":{"title":"CVE-2022-36066","description":"Discourse is an open source discussion platform. In versions prior to 2.8.9 on the `stable` branch and prior to 2.9.0.beta10 on the `beta` and `tests-passed` branches, admins can upload a maliciously crafted Zip or Gzip Tar archive to write files at arbitrary locations and trigger remote code execution. The problem is patched in version 2.8.9 on the `stable` branch and version 2.9.0.beta10 on the `beta` and `tests-passed` branches. There are no known workarounds.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-09-29 20:15:00","updated_at":"2022-10-06 19:07:00"},"problem_types":["CWE-434"],"metrics":[],"references":[{"url":"https://github.com/discourse/discourse/pull/18421","name":"https://github.com/discourse/discourse/pull/18421","refsource":"MISC","tags":[],"title":"SECURITY: Prevent arbitrary file write when decompressing files by CvX · Pull Request #18421 · discourse/discourse · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/discourse/discourse/security/advisories/GHSA-grvh-qcpg-hfmv","name":"https://github.com/discourse/discourse/security/advisories/GHSA-grvh-qcpg-hfmv","refsource":"CONFIRM","tags":[],"title":"Maliciously zipped file uploaded by admins can trigger an RCE · Advisory · discourse/discourse · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/discourse/discourse/commit/b27d5626d208a22c516a0adfda7554b67b493835","name":"https://github.com/discourse/discourse/commit/b27d5626d208a22c516a0adfda7554b67b493835","refsource":"MISC","tags":[],"title":"SECURITY: Prevent arbitrary file write when decompressing files (#18421) · discourse/discourse@b27d562 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-36066","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36066","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta1","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta2","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta3","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta4","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta5","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta6","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta7","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta8","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"36066","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"discourse","cpe5":"discourse","cpe6":"2.9.0","cpe7":"beta9","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-36066","STATE":"PUBLIC","TITLE":"Discourse vulnerable to RCE via admins uploading maliciously zipped file"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"discourse","version":{"version_data":[{"version_value":"< 2.8.9"},{"version_value":">= 2.9.0.beta0, < 2.9.0.beta10"}]}}]},"vendor_name":"discourse"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Discourse is an open source discussion platform. In versions prior to 2.8.9 on the `stable` branch and prior to 2.9.0.beta10 on the `beta` and `tests-passed` branches, admins can upload a maliciously crafted Zip or Gzip Tar archive to write files at arbitrary locations and trigger remote code execution. The problem is patched in version 2.8.9 on the `stable` branch and version 2.9.0.beta10 on the `beta` and `tests-passed` branches. There are no known workarounds."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-434: Unrestricted Upload of File with Dangerous Type"}]}]},"references":{"reference_data":[{"name":"https://github.com/discourse/discourse/security/advisories/GHSA-grvh-qcpg-hfmv","refsource":"CONFIRM","url":"https://github.com/discourse/discourse/security/advisories/GHSA-grvh-qcpg-hfmv"},{"name":"https://github.com/discourse/discourse/pull/18421","refsource":"MISC","url":"https://github.com/discourse/discourse/pull/18421"},{"name":"https://github.com/discourse/discourse/commit/b27d5626d208a22c516a0adfda7554b67b493835","refsource":"MISC","url":"https://github.com/discourse/discourse/commit/b27d5626d208a22c516a0adfda7554b67b493835"}]},"source":{"advisory":"GHSA-grvh-qcpg-hfmv","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-09-29 20:15:00","lastModifiedDate":"2022-10-06 19:07:00","problem_types":["CWE-434"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH"},"exploitabilityScore":1.2,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta1:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta2:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta3:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta4:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta5:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta7:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta8:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta6:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:2.9.0:beta9:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*","versionEndExcluding":"2.8.9","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}