CVE-2026-52796
Deferred Deferred - Pending Action

Denial of Service in Gogs via Malformed Issue Index Pattern

Vulnerability report for CVE-2026-52796, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-24

Last updated on: 2026-06-25

Assigner: GitHub, Inc.

Description

Gogs is an open source self-hosted Git service. Prior to 0.14.3, specially crafted issue index pattern can cause a panic when rendering, resulting in denial of service. In internal/markup/markup.go, RenderIssueIndexPattern renders the issue index pattern to a link using com.Expand, which is not safe: when the configured pattern contains an opening brace { but no closing brace }, strings.Index(template, "}") returns -1 and the subsequent slice template[:-1] triggers a panic. Once such a pattern is set, any page in the affected repository that contains an issue index reference such as #1 becomes unavailable. This vulnerability is fixed in 0.14.3.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-24
Last Modified
2026-06-25
Generated
2026-07-15
AI Q&A
2026-06-25
EPSS Evaluated
2026-07-13
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gogs gogs to 0.14.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in Gogs, an open source self-hosted Git service, in versions prior to 0.14.3. It occurs when a specially crafted issue index pattern containing an opening brace '{' but no closing brace '}' is used. The function RenderIssueIndexPattern attempts to render this pattern into a link, but due to the missing closing brace, it triggers a panic in the code. This panic causes the affected page to become unavailable.

Impact Analysis

The vulnerability can cause a denial of service (DoS) condition. Specifically, when the problematic issue index pattern is set, any page in the affected repository that contains an issue index reference (such as #1) becomes unavailable due to the panic triggered during rendering.

Mitigation Strategies

To mitigate this vulnerability, upgrade Gogs to version 0.14.3 or later, where the issue with specially crafted issue index patterns causing a panic has been fixed.

Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Detection Guidance

This vulnerability can be detected by checking the version of the Gogs software running on your system and verifying if it is prior to version 0.14.3, as versions 0.14.2 and earlier are affected.

Additionally, you can inspect the issue index pattern configuration in your Gogs instance to see if it contains specially crafted templates with unmatched opening braces '{' without corresponding closing braces '}', which trigger the panic.

Since the vulnerability causes a panic and denial of service when rendering issue index patterns, monitoring your Gogs logs for panic or crash messages related to rendering issues can help detect exploitation attempts.

Suggested commands to detect the vulnerability include:

  • Check Gogs version: `gogs --version` or check the version in the application UI or deployment metadata.
  • Search for problematic issue index patterns in configuration files or database entries that include unmatched braces, e.g., using grep: `grep -r '{' /path/to/gogs/config` and verify if any pattern lacks a closing brace.
  • Monitor logs for panic messages: `grep -i panic /path/to/gogs/logs/*` to identify if the panic related to issue index rendering has occurred.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-52796. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart