$ winget install --id GnuWin32.Patch --exact --version 2.5.9-7Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
For IT teams
App deployment, patching, and remote support in one place. Push this app to every device you manage, keep it patched automatically, and see new CVEs the moment they land. Works with Intune or fully standalone.
Sign up freeFree for up to 5 devices.
'patch' takes a patch file containing a difference listing produced by diff and applies those differences to one or more original files, producing patched versions.
| Architecture | Type | Scope | Install | Download |
|---|---|---|---|---|
| x86 | ZIP archive | - | Direct |
Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.
3 known CVEs via NVD
GNU patch is vulnerable to a denial of service (DoS) due to improper validation of hunk (single block of changes in diff) line offsets in unified-diff input. A specially crafted patch can specify an extremely large line number, causing the application to enter an effectively inf...
GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. Improper handling of consecutive end-of-file newline markers can corrupt internal hunk (single block of changes in diff) data structures, causing the application to...
An Invalid Pointer vulnerability exists in GNU patch 2.7 via the another_hunk function, which causes a Denial of Service.
See a CVE that affects your fleet? Pckgr RMM flags vulnerable devices and pushes the patched version automatically.
More from GnuWin32.