PT-2026-63287 · Gitea+1 · Gitea+1

·

CVE-2026-57886

·

Published

2026-07-21

·

Updated

2026-08-26

CVSS v3.1

5.9

Medium

VectorAV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
Name of the Vulnerable Software and Affected Versions Gitea (affected versions not specified)
Description Issue and comment attachment update paths allow the use of attachment UUIDs without verifying if the attachment belongs to the target repository. An authenticated attacker can re-link a victim's attachment UUID to an issue or comment within a repository they control. This causes subsequent access checks to use the attacker's repository authorization context instead of the original one, potentially disclosing private attachments. This occurs because the functions UpdateIssueAttachments() and UpdateCommentAttachments() load attachments by UUID and update the linkage without validating that the attachment's RepoID matches the target repository's ID. The vulnerability affects the /attachments/{uuid} route and the files[] parameter in issue and comment edit flows.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability. As a temporary mitigation, restrict the ability to edit issues and comments to trusted users or implement strict monitoring of the files[] parameter in issue and comment edit flows.

Exploit

DoS

Missing Authorization

IDOR

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-57886
GHSA-6C6R-5XR4-CR5M
GO-2026-6035
OPENSUSE-SU-2026:21483-1

Affected Products

Gitea
Red Os