{"schemaVersion":4,"id":"CVE-2015-1395","aliases":["UBUNTU-CVE-2015-1395","DEBIAN-CVE-2015-1395"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2017-08-25T18:00:00.000Z","modified":"2024-08-06T04:40:18.688Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:N/I:C/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.8,"severity":"high","vector":"AV:N/AC:L/Au:N/C:N/I:C/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.11501,"percentile":0.96136,"severity":"medium","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.2119999999999997,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.11289},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.09276,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.11501,"percentile":0.96136}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.11289,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.11501,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.11501,"percentile":0.96136}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"12.04","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"12.04"}},{"text":"14.04","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"14.04"}},{"text":"14.10","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"14.10"}}],"versionsText":"12.04 | 14.04 | 14.10","eol":{"isEol":true,"eolDate":"2017-04-28T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"12.04","label":"12.04 'Precise Pangolin' (LTS)","eolFrom":"2017-04-28T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"12.04.5"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"patch","name":"patch","label":"patch","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/patch","purlType":"deb","versions":[{"text":"< 2.7.3-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.7.3-1","endInclusive":false}}],"versionsText":"< 2.7.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"patch","name":"patch","label":"patch","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/patch","purlType":"deb","versions":[{"text":"< 2.7.1-4ubuntu2.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.7.1-4ubuntu2.3","endInclusive":false}}],"versionsText":"< 2.7.1-4ubuntu2.3","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"20","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"20"}},{"text":"21","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"21"}}],"versionsText":"20 | 21","eol":{"isEol":true,"eolDate":"2015-06-23T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"20","label":"20 (Heisenbug)","eolFrom":"2015-06-23T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"gnu","product":"patch","name":"patch","label":"patch","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.7.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2.7.2","endInclusive":true}}],"versionsText":"≤ 2.7.2","eol":null,"hubHref":"/vendor/gnu/patch"}],"affectedCount":5,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=775873","label":"bugs.debian.org/cgi-bin/bugreport.cgi?bug=775873","hostname":"bugs.debian.org","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/72846","label":"www.securityfocus.com/bid/72846","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148953.html","label":"lists.fedoraproject.org/pipermail/package-announce/2015-January/148953.html","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","Patch","Third Party Advisory"]},{"url":"https://savannah.gnu.org/bugs/?44059","label":"savannah.gnu.org/bugs/?44059","hostname":"savannah.gnu.org","tags":["X Refsource CONFIRM","Patch","Vendor Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2015/01/27/28","label":"www.openwall.com/lists/oss-security/2015/01/27/28","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","Patch","Third Party Advisory"]},{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=17953b5893f7c9835f0dd2a704ba04e0371d2cbd","label":"git.savannah.gnu.org/cgit/patch.git/commit/?id=17953b5893f7c9835f0dd2a704ba04e0371d2cbd","hostname":"git.savannah.gnu.org","tags":["X Refsource CONFIRM","Issue Tracking","Patch"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-April/154214.html","label":"lists.fedoraproject.org/pipermail/package-announce/2015-April/154214.html","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","Patch","Third Party Advisory"]},{"url":"http://www.ubuntu.com/usn/USN-2651-1","label":"www.ubuntu.com/usn/USN-2651-1","hostname":"www.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Patch","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1184490","label":"bugzilla.redhat.com/show_bug.cgi?id=1184490","hostname":"bugzilla.redhat.com","tags":["X Refsource CONFIRM","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2015-1395","label":"ubuntu.com/security/CVE-2015-1395","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-2651-1","label":"ubuntu.com/security/notices/USN-2651-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-1395","label":"www.cve.org/CVERecord?id=CVE-2015-1395","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2015-1395","label":"security-tracker.debian.org/tracker/CVE-2015-1395","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2015-0068","SUSE-SU-2015:1019-1","USN-2651-1"],"duplicates":[],"related":["SUSE-SU-2015:1019-1","USN-2651-1"]},"timeline":[{"kind":"published","date":"2017-08-25T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-06T04:40:18.688Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 12% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,12,75],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.11501,"stale":false,"promoted":null},{"type":"cvss","source":"nvd","date":"2024-08-06T04:40:18.688Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.0","headline":true},{"type":"cvss","source":"nvd","date":"2024-08-06T04:40:18.688Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"AV:N/AC:L/Au:N/C:N/I:C/A:N","version":"2.0"},{"type":"cvss","source":"osv_ubuntu","date":"2024-08-06T04:40:18.688Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.0"},{"type":"cvss","source":"osv_debian","date":"2024-08-06T04:40:18.688Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.0"}],"epss":{"value":0.11501,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T03:19:02.979Z","stale":false,"partial":false}}