CSIRTS // UNIFIED SECURITY ADVISORY FEEDSYS ● ONLINE · POWERED BY INTELFUSIONS.COM

GHSA-4j89-2c4f-44c6: Gogs has DoS in rendering issue index pattern

lowCVSS 3.5CVE-2026-52796
Summary Special template of issue index pattern may cause panic. Details in internal/markup/markup.go link = fmt.Sprintf(<a href="%s">%s</a>, com.Expand(metas["format"], metas), m) Issue index pattern is rendered to link with com.Expand. However, com.Expand is not safe. i = strings.Index(template, "}") if s, ok := match[template[:i]]; ok { when { is found but } not found, i comes to 1, template[:-1] will be called, and then panicked image finally, all pages than contains issue index are unavailable. PoC 1. set issue index pattern as follow image 2. add a commit which point to an issue in its msg image using #1 above Impact DoS that cause part of pages of the specify repo unavailable.

Details

Source
GitHub Security Advisories (INTL · database · site)
Severity
low — CVSS 3.5
Published
2026-06-22
Last updated
2026-07-21
Exploitation
Not in CISA KEV at last sync

Original advisory: https://github.com/advisories/GHSA-4j89-2c4f-44c6

Exploitation outlook

EPSS (FIRST.org) estimates each CVE’s probability of exploitation in the next 30 days — here is the CSIRTS.com read on those numbers.

Referenced CVEs

CVECSIRTS overviewExternal
CVE-2026-52796coverage & exploitation statusNVD · CVE.org

More from GitHub Security Advisories