🛡️ CVE-2021-32546 — gogs

🔴 CVSS 9.5 — Critical ✅ No Known Exploit CWE-78 OSV
9.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

OS Command Injection in gogs

Impact

The malicious user is able to update a crafted config file into repository's .git directory with to gain SSH access to the server. All installations with [repository upload enabled (default)](https://github.com/gogs/gogs/blob/f36eeedbf89328ee70cc3a2e239f6314f9021f58/conf/app.ini#L127-L129) are affected.

Patches

Repository file updates are prohibited to its .git directory. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.

Workarounds

N/A

References

N/A

For more information

If you have any questions or comments about this advisory, please post on #6555.

Weakness class

CVE-2021-32546 is classified as CWE-78: OS Command Injection. Untrusted input reaches a shell command without neutralisation, so an attacker can run arbitrary operating system commands.

Affected software

CVE-2021-32546 is recorded against 1 package.

  • gogs.io/gogs

Timeline and source

Published on 2 June 2022 and last revised on 8 July 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)
github.com (Web)
github.com (Web)

Details

Severity CRITICAL
CVSS Score 9.5
CVSS Vector N/A
CWE CWE-78
Public Exploit ✅ No
Source OSV
Published 2022-06-02
Updated 2026-08-12
Modified 2026-07-08
Fix URL N/A

Affected Packages

Software From version Fixed in
gogs.io/gogs

Similar Threats

Exploit Protection

Are you running gogs?

CVE-2021-32546 carries CVSS 9.5 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2021-32546 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.