Skip to main content
EPSS 0.4%top 69%

Gitea: Denial of Service via Unbounded io.ReadAll in NPM Package Tag Endpoint (CVE-2026-42931)

0
Medium
Published: 08/13/2026 (08/13/2026, 16:44:38 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

Description

Gitea versions prior to 1.27.0 contain a denial of service vulnerability in the NPM package tag API endpoint. The issue arises from an unbounded io.ReadAll call that reads the entire HTTP request body into memory without size limits. Authenticated users with write access to their package namespace can exploit this by sending a large request, causing the server process to crash due to out-of-memory conditions. This crash results in a persistent denial of service that can survive automatic restarts. The vulnerability has a moderate severity with a CVSS score of 6.5. A patch is available to address this issue.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 12:54:50 UTC

Technical Analysis

The vulnerability in Gitea's NPM package tag API endpoint is caused by an unbounded io.ReadAll call that reads the entire HTTP request body into memory without any size restrictions. This allows authenticated users with write access to their package namespace to send a single large request that exhausts server memory, causing the Gitea server process to crash. The resulting denial of service is persistent and can survive automatic restarts. This affects all Gitea versions prior to 1.27.0. The vulnerability is tracked as CVE-2026-42931 and has a CVSS 3.1 score of 6.5 (medium severity). Although no specific patch links are provided, the patchAvailable flag indicates that a fix exists in version 1.27.0 or later.

Potential Impact

Exploitation of this vulnerability leads to a denial of service condition by causing the Gitea server process to crash due to out-of-memory errors. This disrupts service availability persistently, as the crash can survive automatic restarts. There is no impact on confidentiality or integrity reported. The attack requires authenticated user privileges with write access to the package namespace.

Mitigation Recommendations

A patch is available to remediate this vulnerability. Users should upgrade Gitea to version 1.27.0 or later to mitigate the risk. Since no vendor advisory explicitly states otherwise, applying the official fix is the recommended mitigation. No additional mitigations are specified.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-wwqq-x6w4-frm2
Osv Schema Version
1.4.0
Aliases
["CVE-2026-42931"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a600ab79c2644c7f8fe24e9

Added to database: 07/22/2026, 00:11:35 UTC

Last enriched: 08/14/2026, 12:54:50 UTC

Last updated: 09/14/2026, 22:01:34 UTC

Views: 46

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses