CVE-2016-1901
published 2016-01-20CVE-2016-1901: Integer overflow in the authenticate_post function in CGit before 0.12 allows remote attackers to have unspecified impact via a large value in the…
PriorityP347critical9.8CVSS 3.0
AVNACLPRNUINSUCHIHAH
EPSS
3.79%
88.6th percentile
Integer overflow in the authenticate_post function in CGit before 0.12 allows remote attackers to have unspecified impact via a large value in the Content-Length HTTP header, which triggers a buffer overflow.
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| cgit_project | cgit | <= 0.11.2 | — |
| cgit_project | cgit | >= 0 < 0.11.2.git2.3.2-1.1 | 0.11.2.git2.3.2-1.1 |
| cgit_project | cgit | >= 0 < 0.11.2.git2.3.2-1.1 | 0.11.2.git2.3.2-1.1 |
| cgit_project | cgit | >= 0 < 0.11.2.git2.3.2-1.1 | 0.11.2.git2.3.2-1.1 |
| cgit_project | cgit | >= 0 < 0.11.2.git2.3.2-1.1 | 0.11.2.git2.3.2-1.1 |
| debian | cgit | < cgit 0.11.2.git2.3.2-1.1 (bookworm) | cgit 0.11.2.git2.3.2-1.1 (bookworm) |
| fedoraproject | fedora | — | — |
CVSS provenance
nvdv3.09.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2016-1901: cgit - Integer overflow in the authenticate_post function in CGit before 0.12 allows re...
vendor_debian·2016·CVSS 9.8
CVE-2016-1901 [CRITICAL] CVE-2016-1901: cgit - Integer overflow in the authenticate_post function in CGit before 0.12 allows re...
Integer overflow in the authenticate_post function in CGit before 0.12 allows remote attackers to have unspecified impact via a large value in the Content-Length HTTP header, which triggers a buffer overflow.
Scope: local
bookworm: resolved (fixed in 0.11.2.git2.3.2-1.1)
bullseye: resolved (fixed in 0.11.2.git2.3.2-1.1)
forky: resolved (fixed in 0.11.2.git2.3.2-1.1)
sid: resolved (fixed in 0.11.2.git2.3.2-1.1)
trixie: resolved (fixed in 0.11.2.git2.3.2-1.1)
GHSA
GHSA-r786-p84w-55j2: Integer overflow in the authenticate_post function in CGit before 0
ghsa_unreviewed·2022-05-17
CVE-2016-1901 [CRITICAL] CWE-119 GHSA-r786-p84w-55j2: Integer overflow in the authenticate_post function in CGit before 0
Integer overflow in the authenticate_post function in CGit before 0.12 allows remote attackers to have unspecified impact via a large value in the Content-Length HTTP header, which triggers a buffer overflow.
OSV
CVE-2016-1901: Integer overflow in the authenticate_post function in CGit before 0
osv·2016-01-20·CVSS 9.8
CVE-2016-1901 [CRITICAL] CVE-2016-1901: Integer overflow in the authenticate_post function in CGit before 0
Integer overflow in the authenticate_post function in CGit before 0.12 allows remote attackers to have unspecified impact via a large value in the Content-Length HTTP header, which triggers a buffer overflow.
No detection rules found.
Bugzilla
CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow
bugzilla·2016-01-15·CVSS 9.8
CVE-2016-1901 [CRITICAL] CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow
CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow
A buffer overflow vulnerability in cgit was found. ctx.env.content_length is an unsigned int, coming from the CONTENT_LENGTH environment variable, which is parsed by strtoul. The HTTP/1.1 spec says that "any Content-Length greater than or equal to zero is a valid value." By storing this unsigned int into an int, we potentially overflow it, resulting in the following bounding check failing, leading to a buffer overflow.
Upstream patch:
http://git.zx2c4.com/cgit/commit/?id=4458abf64172a62b92810c2293450106e6dfc763
CVe assignment:
http://openwall.com/lists/oss-security/2016/01/14/6
Discussion:
Created cgit tracking bugs for this issue:
Affects: fedora-all [bug 1298862]
Affects: epel-all [bug 1298863]
---
cgit-0.12-1.fc
Bugzilla
CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow [epel-all]
bugzilla·2016-01-15·CVSS 9.8
CVE-2016-1901 [CRITICAL] CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow [epel-all]
CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora EPEL.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions
Bugzilla
CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow [fedora-all]
bugzilla·2016-01-15·CVSS 9.8
CVE-2016-1901 [CRITICAL] CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow [fedora-all]
CVE-2016-1901 cgit: Integer Overflow resulting in Buffer Overflow [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of
http://git.zx2c4.com/cgit/commit/?id=4458abf64172a62b92810c2293450106e6dfc763http://lists.fedoraproject.org/pipermail/package-announce/2016-January/176167.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-January/176198.htmlhttp://lists.opensuse.org/opensuse-updates/2016-01/msg00067.htmlhttp://lists.opensuse.org/opensuse-updates/2016-01/msg00084.htmlhttp://lists.zx2c4.com/pipermail/cgit/2016-January/002817.htmlhttp://www.debian.org/security/2016/dsa-3545http://www.openwall.com/lists/oss-security/2016/01/14/3http://www.openwall.com/lists/oss-security/2016/01/14/6http://git.zx2c4.com/cgit/commit/?id=4458abf64172a62b92810c2293450106e6dfc763http://lists.fedoraproject.org/pipermail/package-announce/2016-January/176167.htmlhttp://lists.fedoraproject.org/pipermail/package-announce/2016-January/176198.htmlhttp://lists.opensuse.org/opensuse-updates/2016-01/msg00067.htmlhttp://lists.opensuse.org/opensuse-updates/2016-01/msg00084.htmlhttp://lists.zx2c4.com/pipermail/cgit/2016-January/002817.htmlhttp://www.debian.org/security/2016/dsa-3545http://www.openwall.com/lists/oss-security/2016/01/14/3http://www.openwall.com/lists/oss-security/2016/01/14/6
2016-01-20
Published