Description
Heap-based buffer overflow in the substr function in parsing.c in cgit 0.9.0.3 and earlier allows remote authenticated users to cause a denial of service (crash) and possibly execute arbitrary code via an empty username in the "Author" field in a commit.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cgit | 1.0-1.3 | openSUSE-SU-2024:10137-1 |
Advisories 1
- openSUSE-SU-2024:10137-1 cgit-1.0-1.3 on GA media SUSE / openSUSE Security Updates · May 7, 2025
References
- [oss-security] 20120930 cgit: heap buffer overflow mailing-list
- http://git.zx2c4.com/cgit/commit/?id=7757d1b046ecb67b830151d20715c658867df1ec
- [cgit] 20120703 avoid stack-smash when processing unusual commit mailing-list
- https://bugzilla.redhat.com/show_bug.cgi?id=820733
- 50734 third-party-advisory
- 55724 vdb-entry
- [oss-security] 20121003 Re: cgit: heap buffer overflow mailing-list