S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
2026-10-19 self-hosting, homelab, open-source

Gitea 28.2 Fixes Nine Security Holes, Including a Draft-Release Leak of Private Repo Attachments

Gitea 28.2.0 was released on October 18, and it is a security update first: the announcement discloses twelve vulnerabilities, nine of them fixed in this release, and the team writes that it "strongly recommend[s] that all users upgrade as soon as possible." If you self-host Gitea for your homelab git, this one jumps the queue — several of the flaws let authenticated users reach across repository and account boundaries.

The headline flaw: draft releases leaked the whole instance's attachments

The most instructive bug is CVE-2026-110311, found by open-source maintainer Daniel Roe while recording API responses for a cross-forge client library — not during a security audit. Creating a draft release through the API returned an assets array containing attachment metadata from across the entire instance: file names, UUIDs, sizes, timestamps, and download counts, including attachments in private repositories the caller could not read.

The root cause was an uninitialized query: attachments not linked to any release are stored with release_id = 0, and the draft-release path queried attachments before the release row existed, matching every such row on the instance. Published releases never showed the problem because a later reload corrected the list — drafts skip that step. The scale is concrete, not theoretical: the reporter measured roughly 8,000 leaked entries from one request against gitea.com and about 148,000 entries (41 MB) against Codeberg. Keep the impact in proportion, though: file contents never leaked — every download path for the exposed entries returned 404. Any instance on version 1.22.0 or later was affected, and 28.2.0 is the patched version.

Two authentication flaws worth understanding

An SSH certificate flaw (CVE-2026-109553) looked up certificate principals among all stored public keys instead of only principal keys. Where the trusted user CA accepts arbitrary principals, a certificate naming another user's public key as a principal authenticated as that user — a genuine impersonation path on affected configurations.

An OpenID association flaw (CVE-2026-104627) is the account-takeover-shaped one: the callback that links an OpenID identity never checked that the logged-in user had started the linking, so an unsolicited assertion from an attacker-controlled provider could attach the attacker's identity to a victim's account and later sign in as the victim. The fix requires a short-lived state value bound to the user. If your instance offers OpenID sign-in, this is the advisory to read closely.

The rest of the list

Independent coverage agrees on the shape of the release: Linuxiac's Bobby Borisov counts twelve disclosed vulnerabilities with nine fixed in 28.2 and highlights the same SSH, OpenID, and draft-release issues, while Greek security press SecNews independently detailed the user-API visibility disclosure the same day.

Useful non-security fixes in the same release

The 28.2.0 milestone closed 39 pull requests. Actions users get two annoyances fixed: cancelled reusable workflow runs no longer stick in "cancelling", and scheduled workflows follow default-branch switches. Pull request handling recovers PRs whose recorded merge commit never reached the base repo, stops flagging empty PRs as manually merged, and shows correct code context on review comments plus non-ASCII filenames in diff trees. Older npm tarball URLs work again, WebAuthn accepts unsolicited extension outputs from WebKit clients, Telegram webhook messages keep line breaks, and a notification-service panic no longer crashes the whole server.

What to do

Related reading on self-hosted git: Forgejo 17 — why the other big self-hosted forge says hold off upgrading.

Comments (0)

No comments yet — start the thread.

Log in to comment.