BreachSpiderVerified, not vibes

CVE-2021-32546 in Gogs

High 8.8

Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely. An unprivileged attacker (registered user) can overwrite the Git configuration in his repository. This leads to Remote Command Execution, because that configuration can contain an option such as ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
EPSS2.2%
EPSS percentile83th
FixUnknown

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Gogs Gogs < 0.12.8

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Missing input validation in internal/db/repo_editor.go in Gogs before 0.12.8 allows an attacker to execute code remotely. An unprivileged attacker (registered user) can overwrite the Git configuration in his repository. This leads to Remote Command Execution, because that configuration can contain an option such as sshCommand, which is executed when a master branch is a remote branch (using an ssh:// URI). The remote branch can also be configured by editing the Git configuration file. One can create a new file in a new repository, using the GUI, with "\" as its name, and then rename this file to .git/config with the custom configuration content (and then save it).

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-32546
BreachSpider IDBS-2022-GLOBAL-068288-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2022-06-02
Last modified2026-06-17
SourceNVD

Analysis AI-written, not human-reviewed

CVE-2021-32546 in Gogs before 0.12.8 allows an attacker to execute code remotely due to missing input validation in internal/db/repo_editor.go, enabling unprivileged users to overwrite Git configuration leading to Remote Command Execution.

An unprivileged attacker (registered user) can exploit this vulnerability by overwriting the Git configuration in their repository to include malicious commands, such as sshCommand, which are executed when the master branch is a remote branch.

Questions

What is CVE-2021-32546?

CVE-2021-32546 in Gogs before 0.12.8 allows an attacker to execute code remotely due to missing input validation in internal/db/repo_editor.go, enabling unprivileged users to overwrite Git configuration leading to Remote Command Execution.

What is the CVSS score for CVE-2021-32546?

CVE-2021-32546 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.2%.

Is CVE-2021-32546 actively exploited?

No confirmed active exploitation of CVE-2021-32546 as of 2026-09-25.

How do I remediate CVE-2021-32546?

Priority: IMMEDIATE.

What systems are affected by CVE-2021-32546?

CVE-2021-32546 affects Gogs Gogs.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Gogs","product":"Gogs","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.