Skip to main content
Vulnerability Database/CVE-2026-110494

CVE-2026-110494: Repository Release Attachment Disclosure

CVE-2026-110494 is an information disclosure flaw in repository release management that allows unauthorized users to access attachment metadata and manipulate files. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-110494 Overview

CVE-2026-110494 is an authorization flaw in Gitea that allows users with write access to repository releases to manipulate attachments they do not own. The release attachment handler validated only the repository and release context of an attachment, not whether the attachment was already linked to an issue or comment. A user who knew the UUID of an attachment in that repository could link it to a release, exposing the file name, size, and download count. The same user could then rename or delete the attachment. The flaw is categorized under [CWE-639] Authorization Bypass Through User-Controlled Key.

Critical Impact

Authenticated users with release write access can enumerate, rename, or delete attachments originally attached to issues or comments, leading to information disclosure and tampering of repository content.

Affected Products

  • Gitea self-hosted Git service (versions prior to v28.2.0)
  • Repositories where multiple users have differentiated write access to releases, issues, and comments
  • Any Gitea instance exposing release management APIs to collaborators

Discovery Timeline

  • 2026-10-18 - CVE-2026-110494 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-110494

Vulnerability Analysis

The vulnerability resides in Gitea's release attachment handling logic. When a user adds an attachment to a release, the server verifies that the attachment belongs to the same repository and release context. It does not verify whether the attachment is already associated with a different object such as an issue or a comment. This gap means an attachment originally uploaded to a private discussion thread can be re-linked to a release that the attacker controls. Once linked, the attachment metadata becomes visible through the release surface, and standard release-owner operations such as rename and delete become available to the attacker.

Root Cause

The root cause is an incomplete authorization check that relies on repository and release identifiers while ignoring the attachment's existing parent object. The code treats repository-level write access on releases as sufficient authority over any attachment UUID in that repository. This matches the [CWE-639] pattern, where authorization decisions depend on a user-controlled key (the attachment UUID) without validating the broader object ownership chain.

Attack Vector

Exploitation requires an authenticated account with write access to repository releases and knowledge of a target attachment UUID. UUIDs can be observed through issue comments, pull request descriptions, or API responses. The attacker calls the release attachment API with the known UUID and the ID of a release they can modify. The server links the attachment to that release without validating prior ownership. The attacker can then read metadata, rename the file, or delete it, impacting the integrity and availability of the original issue or comment context. The vulnerability is network-reachable and requires low privileges with no user interaction. See the Gitea Security Advisory GHSA-cwq7-782w-pxcc and the fix in Gitea Pull Request #39839 and Gitea Pull Request #39847 for technical details.

Detection Methods for CVE-2026-110494

Indicators of Compromise

  • Release attachment entries that reference UUIDs previously associated with issues or comments in the same repository.
  • Audit log entries showing attachment rename or delete actions performed by users who did not originally upload the file.
  • Unexpected API calls to the release attachment endpoints referencing attachment UUIDs that do not appear in prior release upload events.

Detection Strategies

  • Correlate Gitea application logs for release attachment create, update, and delete calls against the historical parent object of each attachment UUID.
  • Alert when the acting user on a release attachment operation differs from the uploader recorded in the attachment table.
  • Review database records to flag attachments whose release_id, issue_id, or comment_id associations change after creation.

Monitoring Recommendations

  • Forward Gitea access and audit logs to a centralized logging platform and build detections around release attachment API routes.
  • Monitor for enumeration patterns against the attachment UUID namespace, including sequential or high-volume lookups.
  • Track release edit activity by low-privilege collaborators and alert on attachment metadata changes outside normal release publishing workflows.

How to Mitigate CVE-2026-110494

Immediate Actions Required

  • Upgrade all Gitea instances to v28.2.0 or later, which contains the authorization fix.
  • Audit attachments on recent releases to confirm they were originally uploaded against those releases rather than migrated from issues or comments.
  • Review and tighten repository collaborator permissions so release write access is granted only to trusted maintainers.

Patch Information

The fix shipped in Gitea Release v28.2.0. The underlying code changes were merged through Gitea Pull Request #39839 and Gitea Pull Request #39847. Release notes are available in the Gitea Blog Release Announcement. The patch extends the authorization check so that attachments already linked to an issue or comment cannot be reassigned to a release.

Workarounds

  • Restrict release write permissions to a minimal set of maintainers until the upgrade is applied.
  • Place sensitive repositories behind an authenticated proxy or SSO layer to limit anonymous reconnaissance of attachment references.
  • Rotate or re-upload sensitive attachments after upgrading so previously disclosed UUIDs no longer reference active files.
bash
# Verify running Gitea version and plan upgrade to the patched release
gitea --version
# Expected output after upgrade:
# Gitea version 28.2.0 built with ...

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.