PT-2015-3303 · Gnu+3 · Gnu Patch+3
Vasyl Kaigorodov
·
Published
2015-01-21
·
Updated
2017-08-30
·
CVE-2015-1395
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:C/A:N |
Name of the Vulnerable Software and Affected Versions
GNU Patch versions prior to 2.7.3
Description
The issue is related to a directory traversal vulnerability in GNU Patch, which affects versions that support Git-style patching. This vulnerability can be exploited by a remote attacker to modify arbitrary files with the permissions of the target user. The exploitation is possible via a
.. (dot dot) in a diff file name, allowing the attacker to traverse the directory and access files outside the intended directory.Recommendations
For GNU Patch versions prior to 2.7.3, update to version 2.7.3 or later to resolve the issue. As a temporary workaround, consider restricting the use of Git-style patching in GNU Patch until a patch is available. Avoid using diff file names that contain the
.. sequence in the affected GNU Patch versions.Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Gnu Patch
Suse
Ubuntu