git
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / Documentation / RelNotes / 2.50.2.adoc
| 1 | Git v2.50.2 Release Notes |
| 2 | ========================= |
| 3 | |
| 4 | This addresses the security issues CVE-2026-111760, CVE-2026-113408, |
| 5 | CVE-2026-114466, CVE-2026-114467, CVE-2026-114469 and CVE-2026-105437. |
| 6 | |
| 7 | This release also backports fixes necessary to let the CI builds pass |
| 8 | successfully. |
| 9 | |
| 10 | Fixes since v2.50.1 |
| 11 | ------------------- |
| 12 | |
| 13 | * CVE-2026-111760: |
| 14 | |
| 15 | Recursive clones are susceptible to Remote Code Execution: an |
| 16 | attacker-controlled repository can be crafted in a way that exploits |
| 17 | a bug in Git whereby Git can be fooled into overwriting a gitfile |
| 18 | (used for submodules) with a symbolic link that then points to a |
| 19 | directory with malicious config or hooks. The config or hooks may |
| 20 | have attacker-specified code. |
| 21 | |
| 22 | See <https://github.com/git/git/security/advisories/GHSA-vp2w-7xxj-jvxr> |
| 23 | for details. |
| 24 | |
| 25 | * CVE-2026-113408: |
| 26 | |
| 27 | It is possible for a server to advertise an unborn HEAD that contains |
| 28 | path-traversal characters (e.g., `refs/heads/../../../TARGET`). With |
| 29 | the files ref backend that can lead to ref-updating actions to write |
| 30 | to unwanted files. |
| 31 | |
| 32 | See <https://gitlab.com/gitlab-org/git/-/work_items/809> for details. |
| 33 | |
| 34 | * CVE-2026-114467: |
| 35 | |
| 36 | When Git strips the GPG signatures from a commit message, it only |
| 37 | accounts for two signatures. A commit message containing more than |
| 38 | two signatures therefore causes a stack memory corruption. |
| 39 | |
| 40 | This can be triggered when using `git merge` with a tag which |
| 41 | contains more than two signatures. As such, this makes way for a DoS |
| 42 | attack which can potentially also affect forges when such a tag is |
| 43 | pushed to a remote and a merge action is initiated. |
| 44 | |
| 45 | See <https://gitlab.com/gitlab-org/git/-/work_items/810> for details. |
| 46 | |
| 47 | * CVE-2026-114469: |
| 48 | |
| 49 | Git rejects patches larger than ~1 GiB, because its patch application |
| 50 | code does not work well with large files. That check, however, only |
| 51 | considered the size of the patch as it appears in the input, which for |
| 52 | binary patches is much smaller than the size of the file the patch |
| 53 | describes, as binary patches are compressed and encoded. A binary |
| 54 | patch that inflates to a very large size therefore slipped past the |
| 55 | check and crashed Git with an out-of-bounds read. |
| 56 | |
| 57 | See <https://gitlab.com/gitlab-org/git/-/work_items/811> for details. |
| 58 | |
| 59 | * CVE-2026-105437: |
| 60 | |
| 61 | When merging, Git computes the size of the buffer holding the merge |
| 62 | result in a way that can overflow for very large merges, which can be |
| 63 | triggered by a large number of conflicts combined with a large |
| 64 | `conflict-marker-size`. The resulting buffer can then be too small, |
| 65 | and Git writes past its end (and, before and after that, before its |
| 66 | start), corrupting the heap. |
| 67 | |
| 68 | See <https://gitlab.com/gitlab-org/git/-/work_items/814> for details. |
| 69 | |
| 70 | * CVE-2026-114466: |
| 71 | |
| 72 | In response to CVE-2019-1348, `fast-import` disallows the |
| 73 | `export-marks` feature by default. The features |
| 74 | `rewrite-submodules-to` and `rewrite-submodules-from` as well as the |
| 75 | option `export-pack-edges` that were introduced in the meantime also |
| 76 | allow reading from arbitrary paths, and are therefore now also |
| 77 | disallowed by default. |
| 78 | |
| 79 | See <https://gitlab.com/gitlab-org/git/-/work_items/812> for details. |
| 80 | |
| 81 | * Defense-in-depth: read-cache: reject cache entries with over-long |
| 82 | names. |
| 83 | |
| 84 | * Various fix-ups on HTTP tests. |
| 85 | |
| 86 | * Test update. |
| 87 | |
| 88 | * HTTP Header redaction code has been adjusted for a newer version of |
| 89 | cURL library that shows its traces differently from earlier |
| 90 | versions. |
| 91 | |
| 92 | * The `imap-send` command was adjusted to work with OpenSSL 4.0. |
| 93 | |
| 94 | * Replace macos-13 used at GitHub CI with macos-14, and macos-14 with |
| 95 | macos-15. |
| 96 | |
| 97 | * Work around a bug in the iconv library shipped with macOS 14 and 15 |
| 98 | that fails to correctly handle stateful ISO/IEC 2022 encoded strings. |
| 99 | |
| 100 | * ci: fix broken jobs on Ubuntu 25.10 caused by switch to sudo-rs(1). |
| 101 | |
| 102 | * ci(dockerized): raise the PID limit for private repositories. |
| 103 | |
| 104 | * ci: bump debian-11 job to debian-12. |
| 105 | |
| 106 | * ci: skip CVS and P4 tests in leaks job, too. |
| 107 | |
| 108 | * mingw: drop the -D_USE_32BIT_TIME_T option, stop using nedmalloc, and |
| 109 | only use -Wl,--large-address-aware for 32-bit builds. |
| 110 | |
| 111 | * Update GitHub Actions jobs to avoid warnings against using deprecated |
| 112 | version of Node.js. |