Description
In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files. This affects inp.c and util.c.
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 | patch | 2.7.6-5 | — |
| Debian 13 | patch | 2.7.6-5 | — |
| Debian 12 | patch | 2.7.6-5 | — |
| Debian 10 | patch | 2.7.6-3+deb10u1 | DSA-4489-1 |
| Debian 9 | patch | 2.7.5-1+deb9u2 | DSA-4489-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 8 | patch | 2.7.5-1+deb8u2 | DLA-1856-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | patch | 2.7.6-2ubuntu1.1 | USN-4071-1 |
| Ubuntu 16.04 LTS | patch | 2.7.5-1ubuntu0.16.04.2 | USN-4071-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | patch | 2.7.1-4ubuntu2.4+esm1 | USN-4071-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | patch | 2.7.6-11.el8 | RHSA-2020:1852 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | patch | 2.7.6-11.el8 | ALSA-2020:1852 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | patch | 2.7.6-11.el8 | RLSA-2020:1852 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP4 | patch | 2.7.6-150000.5.3.1 | SUSE-SU-2022:1925-1 |
| SLES 15 SP3 | patch | 2.7.6-150000.5.3.1 | SUSE-SU-2022:1925-1 |
| SLES 12 SP5 | patch | 2.7.5-8.8.1 | SUSE-SU-2022:1932-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | patch | 2.7.5-8.8.1 | SUSE-SU-2022:1932-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | patch | 2.7.6-5.1 | openSUSE-SU-2024:12060-1 |
| openSUSE Leap 15.4 | patch | 2.7.6-150000.5.3.1 | SUSE-SU-2022:1925-1 |
| openSUSE Leap 15.3 | patch | 2.7.6-150000.5.3.1 | SUSE-SU-2022:1925-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | patch | 2.7.6-r5 | — |
| Alpine v3.23 | patch | 2.7.6-r5 | — |
| Alpine v3.22 | patch | 2.7.6-r5 | — |
| Alpine v3.21 | patch | 2.7.6-r5 | — |
| Alpine v3.20 | patch | 2.7.6-r5 | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | patch | 2.7.6-r5 | — |
| Alpine v3.18 | patch | 2.7.6-r5 | — |
| Alpine v3.17 | patch | 2.7.6-r5 | — |
| Alpine v3.16 | patch | 2.7.6-r5 | — |
| Alpine v3.15 | patch | 2.7.6-r5 | — |
| Alpine v3.14 | patch | 2.7.6-r5 | — |
| Alpine v3.13 | patch | 2.7.6-r5 | — |
| Alpine v3.12 | patch | 2.7.6-r5 | — |
| Alpine v3.11 | patch | 2.7.6-r5 | — |
| Alpine v3.10 | patch | 2.7.6-r5 | — |
| Alpine v3.9 | patch | 2.7.6-r5 | — |
| Alpine v3.8 | patch | 2.7.6-r3 | — |
| Alpine v3.7 | patch | 2.7.5-r3 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | patch | 2.7.1-12.amzn2.0.2 | ALAS2-2020-1457 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | patch | 2.7.6-9 | — |
| Azure Linux 2 (CBL-Mariner) | patch | 2.7.6-7 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | patch | 2.7.6-11.el8 | ELSA-2020-1852 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | patch | 2.7.6-r3 | — |
Advisories 14
- ALSA-2020:1852 Moderate: patch security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2026-4026 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 18, 2026
- DSA-4489-1 patch - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1856-1 patch - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4071-1 patch vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- USN-4071-2 patch vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- RLSA-2020:1852 Moderate: patch security and bug fix update Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2022:1932-1 Security update for patch SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12060-1 patch-2.7.6-5.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1925-1 Security update for patch SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2020:1852 Red Hat Security Advisory: patch security and bug fix update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- VDE-2025-053 Phoenix Contact: Multiple Vulnerabilities in PLCnext Firmware CERT@VDE · Jul 8, 2025
- ALAS2-2020-1457 Moderate: patch security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 17, 2020
- ELSA-2020-1852 Moderate: patch security and bug fix update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 5, 2020
References
- https://git.savannah.gnu.org/cgit/patch.git/commit/?id=dce4683cbbe107a95f1f0d45fabc304acfb5d71a
- [debian-lts-announce] 20190719 [SECURITY] [DLA 1856-1] patch security update mailing-list
- USN-4071-1 vendor-advisory
- USN-4071-2 vendor-advisory
- DSA-4489 vendor-advisory
- 20190730 [SECURITY] [DSA 4489-1] patch security update mailing-list
- 20190816 Details about recent GNU patch vulnerabilities mailing-list
- http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html
- GLSA-201908-22 vendor-advisory
- FEDORA-2019-ac709da87f vendor-advisory
- https://security.netapp.com/advisory/ntap-20190828-0001/
- https://github.com/irsl/gnu-patch-vulnerabilities