{"id":"CVE-2026-55984","aliases":["CVE-2026-55984","GHSA-m932-crvm-gcp5","GO-2026-6064"],"related":[],"kind":"vulnerability","state":"published","title":"Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service","summary":"Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe AddTime API handler continues execution after an error returned by `GetUserByName()`.\n\nWhen a repository administrator specifies a non-existent user name, an error response is generated but execution does not stop. Subsequent code dereferences a nil user pointer, resulting in a runtime panic.\n\n### Details\n\nAffected endpoint:\n\n```http\nPOST /api/v1/repos/{owner}/{repo}/issues/{index}/times\n```\n\nAffected file:\n\n```text\nrouters/api/v1/repo/issue_tracked_time.go\n```\n\nRelevant code:\n\n```go\nuser, err = user_model.GetUserByName(ctx, form.User)\nif err != nil {\n    ctx.APIErrorInternal(err)\n    // missing return\n}\n```\n\nExecution continues to:\n\n```go\ntrackedTime, err := issues_model.AddTime(\n    ctx,\n    user,\n    issue,\n    form.Time,\n    created,\n)\n```\n\nWhen `GetUserByName()` fails, `user` is nil.\n\nThe subsequent call dereferences the nil pointer and triggers a runtime panic.\n\n### Proof of Concept\n\nUsing a repository administrator account:\n\n```http\nPOST /api/v1/repos/owner/repo/issues/1/times\nContent-Type: application/json\n\n{\n  \"time\": 3600,\n  \"user_name\": \"nonexistent_user_xyz\"\n}\n```\n\nResult:\n\n```text\nHTTP 500\nruntime error: invalid memory address or nil pointer dereference\n```\n\nThe stack trace indicates execution reaches the AddTime code path with a nil user object.\n\n### Impact\n\nAn authenticated repository administrator can repeatedly trigger server-side panics through the affected endpoint.\n\nDepending on deployment configuration and panic recovery behavior, this may result in request failures, stack trace disclosure, excessive log generation, or degraded service availability.\n\n### Suggested Fix\n\nAdd a return statement after the error response:\n\n```go\nuser, err = user_model.GetUserByName(ctx, form.User)\nif err != nil {\n    ctx.APIErrorInternal(err)\n    return\n}\n```","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gitea: Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service in gitea.dev","format":"markdown","source":"go"}],"published":"2026-07-21T20:59:14.000Z","modified":"2026-08-26T16:53:48.300Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L","score":2.7,"rating":"LOW"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L","score":2.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L","score":2.7,"rating":"LOW"}],"cwes":["CWE-284","CWE-476"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.26.4","status":"affected"}],"vendor":"Gitea","product":"Gitea Open Source Git Server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.27.0"}],"ecosystem":"Go","package":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.27.0"}],"ecosystem":"Go","package":"gitea.dev","purl":"pkg:golang/gitea.dev","source":"go"}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-m932-crvm-gcp5","tags":["advisory","exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.0","tags":["release-notes","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://blog.gitea.com/gitea-1.27.0-is-released/","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea","tags":["package"],"sources":["ghsa"]}],"credits":["martijnperdaan52"],"assigner":"Gitea","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-14T17:39:49.092Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55984","url":"https://www.cve.org/CVERecord?id=CVE-2026-55984","licence":"CVE Terms of Use","modified":"2026-08-14T17:40:25.217Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m932-crvm-gcp5","url":"https://github.com/advisories/GHSA-m932-crvm-gcp5","licence":"CC-BY-4.0","modified":"2026-07-27T17:11:23.116Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6064","url":"https://pkg.go.dev/vuln/GO-2026-6064","licence":"CC-BY-4.0","modified":"2026-07-27T17:00:24.035Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55984","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55984","licence":"Public domain","modified":"2026-08-26T16:53:48.300Z"}],"updatedAt":"2026-11-25T22:59:32.787Z","epss":{"score":0.00336,"percentile":0.28896,"date":"2026-12-01T12:00:22.000Z"}}