Bug 1184490 (CVE-2015-1395) - CVE-2015-1395 patch: directory traversal via file rename
Summary: CVE-2015-1395 patch: directory traversal via file rename
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2015-1395
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20150120,repor...
Depends On: 1184491
Blocks: 1182159
TreeView+ depends on / blocked
 
Reported: 2015-01-21 14:30 UTC by Vasyl Kaigorodov
Modified: 2019-06-08 20:22 UTC (History)
3 users (show)

Fixed In Version: patch 2.7.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-31 04:43:08 UTC


Attachments (Terms of Use)

Description Vasyl Kaigorodov 2015-01-21 14:30:18 UTC
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

Comment 1 Vasyl Kaigorodov 2015-01-21 14:34:03 UTC
Created patch tracking bugs for this issue:

Affects: fedora-all [bug 1184491]

Comment 2 Fedora Update System 2015-01-30 23:54:16 UTC
patch-2.7.3-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2015-04-04 07:20:44 UTC
patch-2.7.5-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Vincent Danen 2015-07-31 04:43:08 UTC
This is really only problematic if you're a) running patch on patch files you've not inspected first or b) are running patch as root.  In either case, you shouldn't be patching things as root unless they're trusted and possibly it's worth inspecting patch files first.

Statement:

Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.


Note You need to log in before you can comment on or make changes to this bug.