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.
History

Mon, 16 Nov 2026 23:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sun, 15 Nov 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Sun, 15 Nov 2026 21:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Gitea command execution through repository auto-initialization
Weaknesses CWE-362
CWE-59
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published: 2026-11-15T21:10:23.428Z

Updated: 2026-11-16T22:48:21.679Z

Reserved: 2026-11-15T20:29:37.607Z

Link: CVE-2026-125423

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-11-15T21:16:54.590

Modified: 2026-11-16T23:17:14.770

Link: CVE-2026-125423

cve-icon Redhat

No data.