Skip to content
Vulnerability Intelligence

CVE-2022-0415

High

Unrestricted Upload of File with Dangerous Type in Gogs

Published Mar 28, 2022 · Updated Aug 12, 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 65% 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.

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)

65%

Higher than 99.2% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

None known

Get the full CVE-2022-0415 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

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

Affected Products

14 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 28, 2022

  2. Last updated

    Aug 12, 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 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo