原始 OSV JSON
{
"id": "GHSA-4j89-2c4f-44c6",
"aliases": [
"CVE-2026-52796"
],
"details": "### Summary\nSpecial template of issue index pattern may cause panic.\n\n### Details\n\nin internal/markup/markup.go\n\n```go\nlink = fmt.Sprintf(`<a href=\"%s\">%s</a>`, com.Expand(metas[\"format\"], metas), m)\n```\n\nIssue index pattern is rendered to link with `com.Expand`.\n\nHowever, `com.Expand` is not safe.\n\n```go\ni = strings.Index(template, \"}\")\nif s, ok := match[template[:i]]; ok {\n```\n\nwhen `{` is found but `}` not found, i comes to 1, template[:-1] will be called, and then panicked\n\n\n\nfinally, all pages than contains issue index are unavailable.\n\n### PoC\n\n1. set issue index pattern as follow\n\n\n\n2. add a commit which point to an issue in its msg\n\n\n\nusing `#1` above\n\n### Impact\n\nDoS that cause part of pages of the specify repo unavailable.",
"summary": "Gogs has DoS in rendering issue index pattern",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.14.3"
}
]
}
],
"package": {
"name": "gogs.io/gogs",
"ecosystem": "Go"
},
"database_specific": {
"last_known_affected_version_range": "<= 0.14.2"
}
}
],
"modified": "2026-07-21T13:17:05Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L"
}
],
"published": "2026-06-22T23:58:17Z",
"references": [
{
"url": "https://github.com/gogs/gogs/security/advisories/GHSA-4j89-2c4f-44c6",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-52796",
"type": "ADVISORY"
},
{
"url": "https://github.com/gogs/gogs/pull/8312",
"type": "WEB"
},
{
"url": "https://github.com/gogs/gogs/commit/0529d95fc39f2b6d2997b19a2a12e24522684722",
"type": "WEB"
},
{
"url": "https://github.com/gogs/gogs",
"type": "PACKAGE"
},
{
"url": "https://github.com/gogs/gogs/releases/tag/v0.14.3",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-1336"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2026-06-24T21:16:55Z",
"github_reviewed_at": "2026-06-22T23:58:17Z"
}
}