2.7low
Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service
- Severity
- 2.7low CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.34% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Gitea
- Also known as
- GHSA-m932-crvm-gcp5GO-2026-6064
Description
Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Gitea Gitea Open Source Git Server | up to 1.26.4 | CVE List |
| code.gitea.io/gitea (Go) | before 1.27.0 | GitHub Advisory Database |
| gitea.dev (Go) | before 1.27.0 | Go Vulnerability Database |
All scores
| CISA-ADP | 2.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 2.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L |
Classification
What each source says
CVE List
Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service
GitHub Advisory Database
Summary
The AddTime API handler continues execution after an error returned by GetUserByName().
When 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.
Details
Affected endpoint:
POST /api/v1/repos/{owner}/{repo}/issues/{index}/times
Affected file:
routers/api/v1/repo/issue_tracked_time.go
Relevant code:
user, err = user_model.GetUserByName(ctx, form.User)
if err != nil {
ctx.APIErrorInternal(err)
// missing return
}
Execution continues to:
trackedTime, err := issues_model.AddTime(
ctx,
user,
issue,
form.Time,
created,
)
When GetUserByName() fails, user is nil.
The subsequent call dereferences the nil pointer and triggers a runtime panic.
Proof of Concept
Using a repository administrator account:
POST /api/v1/repos/owner/repo/issues/1/times
Content-Type: application/json
{
"time": 3600,
"user_name": "nonexistent_user_xyz"
}
Result:
HTTP 500
runtime error: invalid memory address or nil pointer dereference
The stack trace indicates execution reaches the AddTime code path with a nil user object.
Impact
An authenticated repository administrator can repeatedly trigger server-side panics through the affected endpoint.
Depending on deployment configuration and panic recovery behavior, this may result in request failures, stack trace disclosure, excessive log generation, or degraded service availability.
Suggested Fix
Add a return statement after the error response:
user, err = user_model.GetUserByName(ctx, form.User)
if err != nil {
ctx.APIErrorInternal(err)
return
}
Go Vulnerability Database
Gitea: Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service in gitea.dev
References
| https://github.com/go-gitea/gitea/security/advisories/GHSA-m932-crvm-gcp5 | advisory, exploit, vendor-advisory, web | |
| https://github.com/go-gitea/gitea/releases/tag/v1.27.0 | release-notes, web | |
| https://blog.gitea.com/gitea-1.27.0-is-released/ | release-notes | |
| https://github.com/go-gitea/gitea | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-55984 changed 2026-08-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m932-crvm-gcp5 changed 2026-07-27 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6064 changed 2026-07-27 | CC-BY-4.0 |
| NVD | CVE-2026-55984 changed 2026-08-26 | Public domain |