Skip to content
TrustList
Security advisories

Gitea 28.4.0 closes a hook overwrite and a password-hash leak

Editorial

By TrustList Editorial

The fourth maintenance release of the 28 series follows the 20 advisories fixed in 28.3.0 two weeks earlier. One of its flaws has exposed repository owners’ password hashes to any signed-in user since 28.0.0.

About Gitea 28.4.0 closes a hook overwrite and a password-hash leak

Gitea 28.4.0 closes a hook overwrite and a password-hash leak

15 November 2026: Gitea has released version 28.4.0 with fixes for more than 15 security flaws in its self-hosted Git service, among them CVE-2026-125423, which let any user allowed to create repositories run commands as the Gitea system user, and CVE-2026-123006, which handed repository owners' password hashes to any signed-in user. The project gives no severity scores and reports no attacks, and asks every instance to upgrade as soon as possible.

A push that arrives before the first commit

A repository created with the auto-init option accepted pushes before its initialisation had finished, and Gitea then built the initial commit on top of whatever was already there. A user could push a crafted tree in that window so that writing the README followed a symbolic link, overwrote a Git hook on the server and ran commands under the Gitea account. In 28.4.0 the initial commit is built in a fresh directory, and a new repository takes pushes only once it is fully initialised.

A related flaw, CVE-2026-129337, covers repositories still being created by a migration, a fork or a template: they have no server-side hooks yet, so a user with read access could push to them during that window.

Password hashes in the dashboard's search response

The repository search behind the dashboard, GET /repo/search, returned each repository's internal commit status object, and since 28.0.0 that object included the owner's full user record. Any signed-in user could read the password hash, salt and email address of the owner of any visible repository that has a commit status. The response now carries only the state and target URL.

Upgrading stops the leak but does not undo it. An instance that has run any 28.x release with open registration, or with users it does not fully trust, has reason to treat owner passwords as exposed to offline guessing and to reset them.

Second factors, workflows and protected files

Several of the other fixes matter to teams that rely on Gitea's own controls:

  • CVE-2026-123002: an unlimited number of wrong TOTP passcodes was accepted at sign-in, in password reset and for Basic authentication with the X-Gitea-OTP header. Five failures now lock further attempts on the account for 15 minutes.
  • CVE-2026-118535: a repository registered as an owner-level source of scoped workflows kept that role after a transfer, so its new owner's workflows ran in the previous owner's repositories with their Actions secrets and tokens.
  • CVE-2026-123638: "Protected file patterns" in branch protection never matched file names that Git quotes, such as those containing a double quote or backslash, letting a user with write access change files the rule was meant to guard.
  • CVE-2026-120729: a link dressed as an issue reference could run script in the session of anyone who hovered over it.
  • CVE-2026-123065: a user with write access to any repository's releases could delete the stored file of any attachment on the instance if they knew its UUID.

The post also discloses CVE-2026-118389, a newline injection in the RubyGems package registry that was fixed in 28.3.0, and says the release binaries are now built with Go 1.27.4, which fixes a crash of HTTP/1 servers.

Two urgent upgrades in two weeks

Version 28.3.0 arrived on 1 November with 20 advisories of its own, including an OAuth account takeover. An instance that skipped it gets both sets of fixes by moving straight to 28.4.0, the fourth maintenance release of the 28 series. Most of the flaws need a signed-in account, so instances with open sign-up or many outside collaborators carry the most risk until they are updated.

Related on TrustList:

Sources

Categories & features

TrustList Weekly

The week in software and IT, in one email

The news that matters to buyers, new rankings and our own research. Every Thursday, free, and easy to leave.

We will email you to confirm. Unsubscribe with one click in any issue. Privacy policy

You may be interested in