{"id":"CVE-2022-1986","published":"2022-06-09T03:35:11Z","modified":"2024-08-03T00:24:44Z","title":"OS Command Injection in gogs/gogs","vendor":"gogs","product":"gogs/gogs","tier":"tail","description":{"text":"OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04216,"percentile":0.91222,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://huntr.dev/bounties/776e8f29-ff5e-4501-bb9f-0bd335007930","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82","tags":["x_refsource_MISC"]}],"priority":{"score":25.2,"factors":[{"name":"EPSS percentile","points":18.24},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs/gogs","versions":[">= unspecified, < 0.12.9"]}],"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.12.9"],"patched":["0.12.9"],"from":["GHSA-67mx-jc2f-jgjm","GO-2022-0556"],"provenance":"source"}],"summary":{"text":"OS command injection exists in the gogs/gogs repository of the Gogs Git service, in versions prior to 0.12.9, due to improper neutralisation of special elements used in an OS command. An attacker who can reach the Gogs instance over the network can execute arbitrary operating system commands, with no authentication or user interaction required and a scope change affecting high confidentiality, integrity and availability impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:18Z"},"euvd":{"id":"EUVD-2022-5955","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gogs-gogs-cve-2022-0415","parents":[{"from":"CVE-2022-0415","to":"CVE-2022-1986","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/db/repo_editor.go"],"commits":["https://github.com/gogs/gogs/commit/0fef3c9082269e9a4e817274942a5d7c50617284","https://github.com/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2022-1986","to":"CVE-2022-2024","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/db/repo_editor.go"],"commits":["https://github.com/gogs/gogs/commit/38aff73251cc46ced96dd608dab6190415032a82","https://github.com/gogs/gogs/commit/15d0d6a94be0098a8227b6b95bdf2daed105ec41"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":1.0,"basis":"same product + CWE + description similarity"}]}]}}