Skip to main content

Gitea CVE-2026-55984

| EUVDEUVD-2026-58139 LOW
NULL Pointer Dereference (CWE-476)
2026-07-21 https://github.com/go-gitea/gitea GHSA-m932-crvm-gcp5
2.7
CVSS 3.1 · Vendor: https://github.com/go-gitea/gitea
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as repository administrator
  2. Delivery
    POST crafted request to /api/v1/repos/{owner}/{repo}/issues/{index}/times
  3. Exploit
    Supply non-existent user_name in JSON body
  4. Execution
    GetUserByName() returns error, execution continues
  5. Persist
    AddTime() dereferences nil user pointer
  6. Impact
    Go 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 user_name value that does not match any existing Gitea user account. Exploitation is limited by the repository administrator privilege requirement; any user or configuration scenario below that privilege level cannot trigger the nil dereference.

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 /api/v1/repos/owner/repo/issues/1/times with a JSON body containing user_name set to a username that does not exist in the Gitea instance. The server's GetUserByName() lookup fails, but execution falls through to AddTime() with a nil user pointer, triggering a Go runtime panic and returning HTTP 500. The attacker can automate repeated requests in a tight loop to generate continuous panics, causing stack trace disclosure in server logs and degraded availability for the affected instance. A proof-of-concept demonstrating this exact sequence is included in GHSA-m932-crvm-gcp5.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Gitea Open Source Git Server 0 ≤1.26.4

Affected Packages

go code.gitea.io/gitea fix: 1.27.0
go gitea.dev fix: 1.27.0
euvd gitea_open_source_git_server no fix

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

Vendor (https://github.com/go-gitea/gitea) PRIMARY 2.7 LOW
AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 2.7 LOW

Network-accessible API requires repository administrator (PR:H); panic yields partial availability impact (A:L) with no confidentiality or integrity consequence.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/go-gitea/gitea).

CVSS VectorVendor: https://github.com/go-gitea/gitea

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

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:

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
}

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular self-hosted Git platform, significant but non-ubiquitous enterprise footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

14
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy