Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service
cve-program · CVE-2026-55984
PublishedNull Pointer Dereference in AddTime API Causes Authenticated Denial of Service
Read the publisher's advisoryeuvd · EUVD-2026-58139
PublishedNull Pointer Dereference in AddTime API Causes Authenticated Denial of Service
Read the publisher's advisorynvd · CVE-2026-55984
PublishedNull Pointer Dereference in AddTime API Causes Authenticated Denial of Service
Read the publisher's advisoryosv · GHSA-m932-crvm-gcp5
Published### 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: ```http POST /api/v1/repos/{owner}/{repo}/issues/{index}/times ``` Affected file: ```text routers/api/v1/repo/issue_tracked_time.go ``` Relevant code: ```go user, err = user_model.GetUserByName(ctx, form.User) if err != nil { ctx.APIErrorInternal(err) // missing return } ``` Execution continues to: ```go 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: ```http POST /api/v1/repos/owner/repo/issues/1/times Content-Type: application/json { "time": 3600, "user_name": "nonexistent_user_xyz" } ``` Result: ```text 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: ```go user, err = user_model.GetUserByName(ctx, form.User) if err != nil { ctx.APIErrorInternal(err) return } ```
Read the publisher's advisoryosv · GO-2026-6064
PublishedGitea: Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service in gitea.dev
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-55984 · CVE overview and exploitation status
cve-program · CVE-2026-55984
- https://github.com/go-gitea/gitea/security/advisories/GHSA-m932-crvm-gcp5
- https://github.com/go-gitea/gitea/releases/tag/v1.27.0
- https://blog.gitea.com/gitea-1.27.0-is-released/
euvd · EUVD-2026-58139
- https://github.com/go-gitea/gitea/security/advisories/GHSA-m932-crvm-gcp5
- https://github.com/go-gitea/gitea/releases/tag/v1.27.0
- https://blog.gitea.com/gitea-1.27.0-is-released/
nvd · CVE-2026-55984
- https://blog.gitea.com/gitea-1.27.0-is-released/
- https://github.com/go-gitea/gitea/releases/tag/v1.27.0
- https://github.com/go-gitea/gitea/security/advisories/GHSA-m932-crvm-gcp5
osv · GHSA-m932-crvm-gcp5
- https://github.com/go-gitea/gitea/security/advisories/GHSA-m932-crvm-gcp5
- https://github.com/go-gitea/gitea
- https://github.com/go-gitea/gitea/releases/tag/v1.27.0
osv · GO-2026-6064
Related changes
Linked by CVE identifier- Null Pointer Dereference in AddTime API Causes Authenticated Denial of Service · Advisory content revised · 15 Nov 2026