Gitea: Release attachment extension allowlist bypass via web release edit form (variant of CVE-2025-68939) (CVE-2026-58428)
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.
AI Analysis
Technical Summary
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.
Gitea: Release attachment extension allowlist bypass via web release edit form (variant of CVE-2025-68939) (CVE-2026-58428)
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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.