Gitea command execution through repository auto-initialization

State
Published
Severity
8.8 High
Published
Nov 15, 2026
Updated
Nov 16, 2026
Reserved
Nov 15, 2026

Read the record on cve.org

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.

ProductVersions
Gitea Giteabefore 28.4.0 Affected

Weaknesses

  • CWE-59 Improper Link Resolution Before File Access ('Link Following')
  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.