Description
A flaw was found in libgit2 before version 0.27.3. It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker may use this flaw to leak memory addresses or cause a Denial of Service.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| libgit2 | libgit2 | before version 0.27.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libgit2 | 0.27.4+dfsg.1-0.1 | — |
| Debian 13 | libgit2 | 0.27.4+dfsg.1-0.1 | — |
| Debian 12 | libgit2 | 0.27.4+dfsg.1-0.1 | — |
| Debian 9 | libgit2 | 0.25.1+really0.24.6-1+deb9u1 | DLA-2936-1 |
| Debian 8 | libgit2 | 0.21.1-3+deb8u1 | DLA-1477-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libgit2 | 0.26.0+dfsg.1-1.1ubuntu0.2 | — |
| Ubuntu 16.04 LTS | libgit2 | 0.24.1-2ubuntu0.2 | — |
| Ubuntu 14.04 LTS | libgit2 | 0.19.0-2ubuntu0.4 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | libgit2 | 0.26.6-3.5.2 | SUSE-SU-2018:2469-1 |
| SLES 12 SP3 | libgit2 | 0.24.1-7.6.1 | SUSE-SU-2018:3440-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Manager Server 3.2 | libgit2 | 0.24.1-7.6.1 | SUSE-SU-2018:3440-1 |
| SUSE Manager Server 3.1 | libgit2 | 0.24.1-7.6.1 | SUSE-SU-2018:3440-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libgit2 | 1.1.1-1.2 | openSUSE-SU-2024:10943-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.23 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.22 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.21 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.20 | libgit2 | 0.27.3-r0 | — |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.18 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.17 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.16 | libgit2 +1 | 0.27.3-r0 | — |
| Alpine v3.15 | libgit2 +1 | 0.27.3-r0 | — |
| Alpine v3.14 | libgit2 +1 | 0.27.3-r0 | — |
| Alpine v3.13 | libgit2 +1 | 0.27.3-r0 | — |
| Alpine v3.12 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.11 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.10 | libgit2 +1 | 0.27.3-r0 | — |
| Alpine v3.9 | libgit2 | 0.27.3-r0 | — |
| Alpine v3.8 | libgit2 | 0.27.3-r0 | — |
Advisories 5
- DLA-2936-1 libgit2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1477-1 libgit2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:3440-1 Security update for libgit2 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10943-1 libgit2-1_1-1.1.1-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2469-1 Security update for libgit2 SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1598021
- [debian-lts-announce] 20180825 [SECURITY] [DLA 1477-1] libgit2 security update mailing-list
- https://github.com/libgit2/libgit2/releases/tag/v0.27.3
- https://github.com/libgit2/libgit2/commit/c1577110467b701dcbcf9439ac225ea851b47d22
- https://github.com/libgit2/libgit2/commit/3f461902dc1072acb8b7607ee65d0a0458ffac2a
- [debian-lts-announce] 20220321 [SECURITY] [DLA 2936-1] libgit2 security update mailing-list