CVE-2015-1395: Path Traversal

Published Jan 20, 2015
·
Updated

Directory traversal vulnerability in GNU patch versions which support Git-style patching before 2.7.3 allows remote attackers to write to arbitrary files with the permissions of the target user via a .. (dot dot) in a diff file name.

Other sources

It was reported [1] that the versions of the patch utility that support Git-style patches are vulnerable to a directory traversal flaw. This could allow an attacker to overwrite arbitrary files by applying a specially crafted patch, with the privileges of the user running patch. A reproducer for this issue is available in [1].

Upstream bugreport: http://savannah.gnu.org/bugs/?44059

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775873

Red Hat

Affected Software

8 affected componentsFixes available
debian/patch<=2.7.1-1, <=2.7.1-6, <=2.7.1-7
redhat/patch<2.7.3
2.7.3
Fedoraproject Fedora=20
Fedoraproject Fedora=21
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
GNU patch<=2.7.2

Event History

Jan 21, 2015
Data Sourced
via Red Hat·02:30 PM
DescriptionSeverityAffected Software
Aug 25, 2017
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2015-1395?

CVE-2015-1395 is considered a high severity vulnerability due to its impact on file system integrity.

2

How do I fix CVE-2015-1395?

To fix CVE-2015-1395, upgrade GNU patch to version 2.7.3 or higher.

3

What are the affected software versions for CVE-2015-1395?

The affected software versions for CVE-2015-1395 include GNU patch versions before 2.7.3.

4

Can CVE-2015-1395 be exploited remotely?

Yes, CVE-2015-1395 can be exploited remotely if a user processes a malicious diff file.

5

What environments are vulnerable to CVE-2015-1395?

Environments using vulnerable versions of GNU patch, such as Debian, Red Hat, Ubuntu, and Fedora, are susceptible to CVE-2015-1395.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203