RCE in Gogs

CVE-2022-1884

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 `tr…

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.018 (75.4th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-1884?
CVE-2022-1884 is a critical-severity vulnerability in Gogs, classified under OS Command Injection. CVSS score: 9.8/10. Published 2024-11-15.
How severe is CVE-2022-1884?
Critical severity. CVSS v3 base score is 9.8 out of 10.
Is CVE-2022-1884 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.