Bug 2573851 (CVE-2026-125423) - CVE-2026-125423 gitea: gitea: Arbitrary code execution via race condition during repository auto-initialization
Summary: CVE-2026-125423 gitea: gitea: Arbitrary code execution via race condition dur...
Keywords:
Status: NEW
Alias: CVE-2026-125423
Product: Security Response
Classification: Other
Component: vulnerability-draft
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-16 21:43 UTC by OSIDB Bzimport
Modified: 2026-11-16 23:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-16 21:43:46 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.