目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-105437— Git 堆栈缓冲区溢出漏洞

一分钟漏洞结论

影响对象
Git Git
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

受影响版本的 Git 在三路合并代码(xdiff)中存在堆缓冲区溢出漏洞,攻击者可通过其控制的仓库触发该漏洞。 当 Git 合并文件时,会先计算合并输出的总大小,分配相应大小的缓冲区,然后将输出写入该缓冲区。该总大小使用一个 32 位有符号整数存储。而可通过已提交的 .gitattributes 文件设置的 属性可接受任意正整数,且冲突标记会在每次冲突中写入多次。因此,一个包含巨大标记尺寸和大量独立冲突的小文件,可使总大小超过 4 GiB,导致整数回绕为较小的值,进而使 Git 将攻击者控制的合并输出写入超出过小缓

CVSS 7.5 · High

影响版本矩阵 8

厂商产品 版本范围状态
Git Git < 2.49.1 affected
2.50.0-rc0< 2.50.2 affected
2.51.0-rc0< 2.51.3 affected
2.52.0-rc0< 2.52.1 affected
2.53.0-rc0< 2.53.1 affected
2.54.0-rc0< 2.54.1 affected
2.55.0-rc0< 2.55.1 affected
2.56.0-rc0< 2.56.1 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-105437 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Heap-based Buffer Overflow in Git
来源: CVE Program / CVE List V5
Vulnerability Description
Affected versions of Git have a heap buffer overflow in the three-way merge code (xdiff), which an attacker can trigger through a repository they control. When Git merges a file, it first adds up the size of the merged output, allocates a buffer of that size, and then writes the output into it. That total was kept in a 32-bit signed integer. The conflict-marker-size attribute, which can be set from a committed .gitattributes file, accepts any positive integer, and the markers are written several times for every conflict. A small file with a huge marker size and many separate conflicts can therefore push the total past 4 GiB, so the integer wraps to a small value and Git writes attacker-controlled merge output past the end of a buffer that is too small. At minimum this crashes Git, and because the overflow is large and its contents are largely attacker-controlled, worse heap corruption is possible. Any command that does a textual three-way merge can trigger it, such as git-merge(1), git-rebase(1), git-cherry-pick(1), and git-merge-tree(1). The latter is most likely a target for Git forges, which might use git-merge-tree(1) on the server-side to check mergeability. When the server reads attributes from trees in the repository (for example through attr.tree or --attr-source), any user who can push branches and request that they be merged (for example by opening a pull or merge request) can trigger the overflow without anyone else doing anything, and the data they push is small because the oversized output only appears during the merge. The problem has been patched by computing the size as size_t and checking every addition for overflow, so Git stops with an error instead of overflowing. Servers that cannot upgrade right away can add * conflict-marker-size=7 to each repository's info/attributes as a workaround, which overrides any in-tree .gitattributes, or turn off server-side mergeability checks for untrusted repositories.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
堆缓冲区溢出
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
Git Git 0 ~ 2.49.1 cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*

二、漏洞 CVE-2026-105437 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-105437 的情报信息

请登录查看更多情报信息。

CVE-2026-105437 其他参考 (3)

IV. Related Vulnerabilities