Skip to content
High 8.8

Giteaに認証済みの利用者がコマンドを実行できる脆弱性、修正版が公開

CVE-2026-125423 First seen on SecPulse

Summary

Giteaでは、自動初期化つきのリポジトリを作成できる利用者が、初期化の完了前に細工したプッシュを行うことで、サーバー上のGitフックを書き換え、Giteaのシステムユーザーとしてコマンドを実行できるおそれがあります。影響を受けるのは28.4.0より前のバージョンで、28.4.0で修正されています。修正版への更新をお急ぎください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Giteaでは、自動初期化つきのリポジトリを作成できる利用者が、初期化の完了前に細工したプッシュを行うことで、サーバー上のGitフックを書き換え、Giteaのシステムユーザーとしてコマンドを実行できるおそれがあります。影響を受けるのは28.4.0より前のバージョンで、28.4.0で修正されています。修正版への更新をお急ぎください。

Affected packages

PackageAffected → Fixed
GiteaGitea
< 28.4.0→ 28.4.0
Original description The description as published by the source.

A repository created with auto-init accepted pushes before its initialization had finished, and the initial commit was built in a checkout of whatever the repository already contained. A user who is allowed to create repositories could push a crafted tree during that window so that writing the README followed a symbolic link and overwrote a server-side git hook, which runs commands as the Gitea system user. The initial commit is now built in a freshly initialized directory, and a new repository only becomes ready, and accepts pushes, once its initialization is complete.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details