Incorrect Calculation of Buffer Size Affecting git-daemon package, versions <0:1.8.3.1-6.el7_2.1


Severity

Recommended
high

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
11.93% (96th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL7-GITDAEMON-4591162
  • published26 Jul 2021
  • disclosed6 Mar 2016

Introduced: 6 Mar 2016

CVE-2016-2315  (opens in a new tab)
CWE-131  (opens in a new tab)
CWE-122  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-194  (opens in a new tab)

How to fix?

Upgrade RHEL:7 git-daemon to version 0:1.8.3.1-6.el7_2.1 or higher.
This issue was patched in RHSA-2016:0496.

NVD Description

Note: Versions mentioned in the description apply only to the upstream git-daemon package and not the git-daemon package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

revision.c in git before 2.7.4 uses an incorrect integer data type, which allows remote attackers to execute arbitrary code via a (1) long filename or (2) many nested trees, leading to a heap-based buffer overflow.

References

CVSS Scores

version 3.1