Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as repository administrator
-
DeliveryPOST crafted request to /api/v1/repos/{owner}/{repo}/issues/{index}/times
-
ExploitSupply non-existent user_name in JSON body
-
ExecutionGetUserByName() returns error, execution continues
-
PersistAddTime() dereferences nil user pointer
-
ImpactGo runtime panic triggers HTTP 500 response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an active repository administrator account on the targeted Gitea instance - standard authenticated users and unauthenticated actors cannot reach this code path. The attacker must have administrator-level access to a specific repository (not instance-wide admin, but repository-scoped admin). The Gitea API must be accessible (not blocked by firewall or disabled in configuration). The request body must supply a |
| Impact | The CVSS 3.1 score of 2.7 (AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L) accurately captures the bounded risk profile of this vulnerability. The High Privileges requirement (repository administrator role) is the primary limiting factor - ordinary authenticated users and unauthenticated actors cannot reach the vulnerable code path. Attack complexity is low and the vector is network-accessible, but the PR:H constraint means this is not a broadly exploitable availability issue. EPSS data was not provided in the input and cannot be independently assessed here. No CISA KEV listing exists, indicating no confirmed mass exploitation. A proof-of-concept is publicly available via the GHSA advisory, so any repository administrator on an unpatched instance could trivially reproduce the panic. Real-world risk is low-to-moderate for multi-tenant Gitea deployments where repository administrators are not universally trusted; for single-organization self-hosted deployments where all admins are trusted, the practical risk is negligible. No confidentiality or integrity impact is present. |
| Exploit ScenarioDerived | An authenticated repository administrator sends a POST request to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 21, 2026
Null pointer dereference in Gitea's AddTime API (versions prior to 1.27.0) allows an authenticated repository administrator to crash the server by specifying a non-existent username in a time-tracking request. The root cause is a missing return statement in routers/api/v1/repo/issue_tracked_time.go after GetUserByName() returns an error, causing AddTime() to dereference a nil user pointer and trigger a Go runtime panic. No active exploitation is confirmed (not in CISA KEV), but a proof-of-concept is embedded in the GHSA advisory, making the issue trivially reproducible by any repository administrator.
RemediationAI
Upgrade to Gitea v1.27.0 or later, which introduces the missing return statement in routers/api/v1/repo/issue_tracked_time.go immediately after the ctx.APIErrorInternal(err) call, confirmed by the release at https://github.com/go-gitea/gitea/releases/tag/v1.27.0 and advisory GHSA-m932-crvm-gcp5. As a pre-patch compensating control, restrict the repository administrator role to the minimum necessary set of trusted users, since only accounts holding this role can trigger the panic - this reduces attack surface without requiring downtime. Additionally, deploying a reverse proxy with rate limiting on POST /api/v1/repos/*/issues/*/times can dampen repeated panic attempts and limit log pollution; note that rate limiting does not prevent a single panic trigger per request cycle.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Gitea is a self-hosted Git service written in Go, identified by CPE pkg:go/code.gitea.io_gitea. The vulnerable code resides in routers/api/v1/repo/issue_tracked_time.go, which handles the REST endpoint POST /api/v1/repos/{owner}/{repo}/issues/{index}/times for logging tracked time against issues. CWE-476 (Null Pointer Dereference) is the root cause class: after user_model.GetUserByName() fails and writes an API error response, the missing return allows the Go runtime to continue executing with a nil user pointer passed directly into issues_model.AddTime(). Go's runtime detects the nil dereference and panics; depending on whether the application registers a recovery middleware, this may manifest as a single 500 response or propagate further into the goroutine scheduler.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
Network-accessible API requires repository administrator (PR:H); panic yields partial availability impact (A:L) with no confidentiality or integrity consequence.
Primary rating from Vendor (https://github.com/go-gitea/gitea).
CVSS VectorVendor: https://github.com/go-gitea/gitea
DescriptionCVE.org
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}/timesAffected file:
routers/api/v1/repo/issue_tracked_time.goRelevant 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 dereferenceThe 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
}Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-58139
GHSA-m932-crvm-gcp5
NVD
CVE.org
EPSS
Exploit-DB