# CVE-2026-52796: Gogs: DoS in rendering issue index pattern

- Severity: Low 3.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-22T23:58:17.000Z
- Modified: 2026-07-21T13:30:31.792Z
- Also known as: GHSA-4j89-2c4f-44c6, GO-2026-5124
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-4j89-2c4f-44c6> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52796> (advisory)
- <https://github.com/gogs/gogs/pull/8312> (web)
- <https://github.com/gogs/gogs/commit/0529d95fc39f2b6d2997b19a2a12e24522684722> (web)
- <https://github.com/gogs/gogs> (package)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)

## Sources

- CVE List: [CVE-2026-52796](https://www.cve.org/CVERecord?id=CVE-2026-52796), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-4j89-2c4f-44c6](https://github.com/advisories/GHSA-4j89-2c4f-44c6), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5124](https://pkg.go.dev/vuln/GO-2026-5124), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-52796](https://nvd.nist.gov/vuln/detail/CVE-2026-52796), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-52796 · Whole record: https://cve.day/CVE-2026-52796.json · Rebuilt by cve.day 2026-11-25T22:59:25.741Z
