{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-1884","published":"2024-11-15T11:15:07.803000Z","last_modified":"2026-06-17T04:23:16.700000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-78","CWE-77"],"cpes":[{"criteria":"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*","part":"a","vendor":"gogs","product":"gogs","version_end_including":"0.12.7"}],"cpes_truncated":false,"vendors":["gogs"],"products":["gogs/gogs"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total"},"epss":{"score":0.02221,"percentile":0.83403,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-958j-443g-7mm7","ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":[{"introduced":"0","fixed":"0.12.8"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2022-0749","ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":[{"introduced":"0","fixed":"0.12.8"}],"versions":[],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2022-1884/","html_en":"/en/cve/CVE-2022-1884/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-1884","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-1884"},"untrusted":{"vendor_name":"Gogs","product_name":"Gogs","desc_en":"A remote command execution vulnerability exists in gogs/gogs versions <=0.12.7 when deployed on a Windows server. The vulnerability arises due to improper validation of the `tree_path` parameter during file uploads. An attacker can set `tree_path=.git.` to upload a file into the .git directory, allowing them to write or rewrite the `.git/config` file. If the `core.sshCommand` is set, this can lead to remote command execution.","affected":[{"untrusted_vendor":"gogs","untrusted_product":"gogs/gogs","versions":[]},{"untrusted_vendor":"gogs","untrusted_product":"gogs","versions":[]}],"references":[{"url":"https://huntr.com/bounties/9cd4e7b7-0979-4e5e-9a1c-388b58dea76b","tags":["Exploit","Third Party Advisory"]}]}}