Skip to content
Emerging threatsHigh

CVE-2022-0415Gogs Unrestricted File Upload

Unrestricted Upload of File with Dangerous Type in Gogs

Published Mar 21, 2022 · Updated Oct 28, 2026 · Also known as GHSA-5gjh-5j4f-cpwv, GO-2022-0554, UBUNTU-CVE-2022-0415

Key Facts

Patch immediately
  • CVE-2022-0415 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Gogs, golang-github-gogits-go-gogs-client (ubuntu), gogs.io/gogs and 1 more product.
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 66% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Gogs 0.12.6, gogs.io/gogs 0.12.6, gogs/gogs 0.12.6.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

8.8

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

66%

Higher than 99.2% of all scored CVEs

Exploit maturity

None known

ATLAS score

33/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

Description

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

Affected Products

15 affected entries in total
ProductAffected versionsFixed in
GogsGogsSee advisory0.12.6
golang-github-gogits-go-gogs-clientubuntuSee advisoryn/a
gogs.io/gogsgoSee advisory0.12.6
gogs/gogs>= unspecified0.12.6

Patched Releases

Gogs

0.12.6

gogs.io/gogs

0.12.6

gogs/gogs

0.12.6

Timeline

  1. Publicly disclosed

    Mar 21, 2022

  2. Last updated

    Oct 28, 2026

Weakness Type

  • CWE-20 Improper Input Validation
  • CWE-434 Unrestricted Upload of File with Dangerous Type

References

6 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2022-0415 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 5, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.