PT-2012-6368 · Cgit+1 · Cgit+1
Jim Meyering
·
Published
1970-01-01
·
Updated
2024-06-15
·
CVE-2012-4465
CVSS v2.0
6.5
Medium
| Vector | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Name of the Vulnerable Software and Affected Versions
cgit versions 0.9.0.3 and earlier
Description
The issue is related to a heap-based buffer overflow in the substr function in parsing.c, which can be exploited by remote authenticated users. This can lead to a denial of service (crash) and possibly the execution of arbitrary code via an empty username in the "Author" field in a commit. The vulnerability can be exploited remotely by an attacker who has passed the authentication procedure, potentially disrupting the confidentiality, integrity, and availability of protected information.
Recommendations
For cgit versions 0.9.0.3 and earlier, update to a version later than 0.9.0.3 to resolve the issue.
As a temporary workaround, consider restricting access to the substr function in parsing.c to minimize the risk of exploitation.
Avoid using empty usernames in the "Author" field in commits until the issue is resolved.
Fix
DoS
Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Suse
Cgit