PT-2026-61704 · Gitea+1 · Gitea+1

·

CVE-2026-58443

·

Published

2026-07-20

·

Updated

2026-08-26

CVSS v3.1

9.6

Critical

VectorAV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H
Name of the Vulnerable Software and Affected Versions Gitea versions prior to 1.27.0
Description Gitea allows a token with public-only,write:repository restrictions to update a private pull request head branch. This occurs because the system validates the token's public-only restriction against the public base repository route but fails to re-apply this restriction to the private head repository during the update process. Consequently, an attacker with such a token can cause Gitea to push commits from a public base repository into a private head branch, bypassing the intended access limitations.
Technical details include:
  • API Endpoint: POST /api/v1/repos/{public-owner}/{public-repo}/pulls/{index}/update
  • Vulnerable Function: UpdatePullRequest()
If Gitea Actions is enabled on the private head repository, this unauthorized push can also trigger the execution of private repository push workflows.
Recommendations Update Gitea to version 1.27.0.

Exploit

Fix

DoS

Incorrect Authorization

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

Weakness Enumeration

Related Identifiers

CVE-2026-58443
GHSA-XXJV-752H-3VP2
GO-2026-6086
OPENSUSE-SU-2026:21551-1
SUSE-SU-2026:23216-1
SUSE-SU-2026:23227-1

Affected Products

Gitea
Red Os