CVE-2026-52796 Details
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.
A denial-of-service vulnerability has been identified in Gogs, an open-source self-hosted Git service, affecting versions through 0.14.2. The issue arises in the issue index pattern rendering process, where specially crafted patterns can cause a panic, leading to a service interruption. The vulnerability is rooted in the 'internal/markup/markup.go' file, specifically within the 'RenderIssueIndexPattern' function. Here, the 'com.Expand' method is used to render issue index patterns into links. However, this method is not safe: if a pattern includes an opening brace '{' without a corresponding closing brace '}', it triggers a panic by causing an invalid slice operation. Once such a pattern is applied, any repository page referencing an issue index becomes unavailable.
Users can upgrade to Gogs version 0.14.3 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 24, 2026CISA-ADP
Assessed Jun 25, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gogs/gogs/security/advisories/GHSA-4j89-2c4f-44c6 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/gogs/gogs/security/advisories/GHSA-4j89-2c4f-44c6 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Gogs | <= 0.14.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | CVE Modified | CISA-ADP |
| Jun 24, 2026 | New CVE Received | [email protected] |
Volerion