CVE & CISA-KEV Catalog

CVE-2021-32546

HIGHEPSS 78th pctl
8.8
CVSS v3
NVD

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).

How to fix

Remediation Available
gogsNVD
Affected:< 0.12.8Fixed in:0.12.8CVE-2021-32546derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

1.97%probability of exploitation in 30 days
78thpercentile

Elevated risk: more likely to be exploited than 78% of all known CVEs.

References

Third-Party Advisory2
Embed a live status badge for CVE-2021-32546
CVE-2021-32546 severity badge

Markdown

[![CVE-2021-32546](https://tridentstack.com/cve/badge/CVE-2021-32546.svg)](https://tridentstack.com/cve/CVE-2021-32546)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-32546"><img src="https://tridentstack.com/cve/badge/CVE-2021-32546.svg" alt="CVE-2021-32546"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.