Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-1884

published critical CVSS 3.0 · 10.0

Remote Command Execution in gogs/gogs

Published
15 Nov 2024, 10:53:00 UTC
Updated
15 Nov 2024, 19:15:02 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
gogs — gogs/gogsunspecified through latest Affected Not stated @huntr_ai
gogs — gogs0 through 0.12.7 · Other versions: unknown Affected Not stated CISA-ADP

Description

A remote command execution vulnerability exists in gogs/gogs versions <=0.12.7 when deployed on a Windows server. The vulnerability arises due to improper validation of the `tree_path` parameter during file uploads. An attacker can set `tree_path=.git.` to upload a file into the .git directory, allowing them to write or rewrite the `.git/config` file. If the `core.sshCommand` is set, this can lead to remote command execution.

en · @huntr_ai · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.0
Base score
10.0 / 10
Severity
critical
Provider
@huntr_ai · cna
Vector string
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 10.0 critical CISA-ADP · adp CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
gogs gogs/gogs unspecified through latest (affected · custom) @huntr_ai · cna
gogs gogs 0 through 0.12.7 (affected · custom)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-78 CWE-78 Improper Neutralization of Special Elements used in an OS Command (@huntr_ai · cna)

References

1

Provider assertions

2

@huntr_ai · cna

Remote Command Execution in gogs/gogs

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.1
Searchable
yes
Content hash
d81f3fb26f429651ea3c315aebc23cfa6331bcd39b0656795605f5013239a3bd
Ingested
23 Sep 2026, 07:57:48 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected