Vulnerability · Published Mar 21, 2022 · Assigned by @huntrdev

CVE-2022-0415Remote Command Execution in uploading repository file in gogs/gogs

Critical 9.9

In plain English

A critical-severity improper input validation in gogs/gogs from gogs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 65.9% (higher than 99.3% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)9.9Critical
Exploit odds (30 days)65.9%top 0.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Nuclei

Official description

Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogogs.io/gogs0.12.6GHSA-5gjh-5j4f-cpwv
Gogogs.io/gogs0.12.6GO-2022-0554
Ubuntu:22.04:LTSgolang-github-gogits-go-gogs-clientno fix listedUBUNTU-CVE-2022-0415
Ubuntu:24.04:LTSgolang-github-gogits-go-gogs-clientno fix listedUBUNTU-CVE-2022-0415
Ubuntu:25.10golang-github-gogits-go-gogs-clientno fix listedUBUNTU-CVE-2022-0415
Ubuntu:26.04:LTSgolang-github-gogits-go-gogs-clientno fix listedUBUNTU-CVE-2022-0415
Ubuntu:26.10golang-github-gogits-go-gogs-clientno fix listedUBUNTU-CVE-2022-0415

Affected products (as reported)

VendorProductVersions
gogs gogs/gogs unspecified – before 0.12.6

Weakness: CWE-20 · Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

References