Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Gitea: Release attachment extension allowlist bypass via web release edit form (variant of CVE-2025-68939) (CVE-2026-58428)

0
Medium
Published: 07/21/2026 (07/21/2026, 20:18:44 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

Description

Gitea versions prior to 1.27.0 contain a vulnerability in the web release edit form that allows users with repository write permissions to rename release attachments to file extensions that are normally disallowed by the operator-configured allowlist. This bypass occurs because the web handler for editing releases does not validate attachment file extensions against the allowed types before updating the database, unlike the API endpoint which enforces this check. The issue enables bypassing the configured release attachment extension restrictions via the web interface.

CVSS v3.1

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

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: 07/22/2026, 00:52:58 UTC

Technical Analysis

The vulnerability (CVE-2026-58428) exists in Gitea's web release edit handler (EditReleasePost in routers/web/repo/release.go) where form fields for renaming attachments are processed and updated in the database without verifying the new file extension against the configured allowed types. The API path was fixed previously (CVE-2025-68939) to enforce extension validation via upload.Verify, but the web path was not updated accordingly. This allows a user with repository write permission to rename an existing release attachment to a forbidden extension via the web release edit form, bypassing the operator-configured allowlist. The vulnerability was confirmed in Gitea v1.26.1 with a proof of concept demonstrating that the API rejects forbidden extensions while the web form accepts them without error.

Potential Impact

An attacker with repository write permissions can rename release attachments to disallowed file extensions, potentially enabling distribution of malicious files under extensions that operators intended to block. This bypass undermines the operator-configured extension allowlist for release attachments, increasing the risk of malicious payload delivery through release assets. The impact is limited to users with write access to the repository and does not affect confidentiality or availability directly. The CVSS vector indicates no confidentiality or availability impact but high integrity impact.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, operators should be aware that the web release edit form does not enforce the allowed file extension restrictions. As a temporary mitigation, restrict repository write permissions to trusted users only and monitor release attachments for unauthorized file extensions. Review vendor advisories for updates and apply official patches once available.

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-25gq-j9jx-43pg
Osv Schema Version
1.4.0
Aliases
["CVE-2026-58428"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a600abc9c2644c7f8fe2ccb

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

Last enriched: 07/22/2026, 00:52:58 UTC

Last updated: 07/26/2026, 00:15:22 UTC

Views: 12

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