{"schemaVersion":3,"id":"CVE-2019-13636","aliases":["ALPINE-CVE-2019-13636","RHSA-2020:1852","UBUNTU-CVE-2019-13636","DEBIAN-CVE-2019-13636","DLA-1856-1","CGA-67g2-w8g4-9m48","CGA-j5w6-3hgv-r93c"],"status":"published","duplicateOf":null,"title":null,"description":"In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files. This affects inp.c and util.c.","dates":{"published":"2019-07-17T20:04:00.000Z","modified":"2024-08-04T23:57:39.470Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/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":5.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Red hat","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Wolfi","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Chainguard","score":5.9,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true}]},"epss":{"probability":0.03895,"percentile":0.9014,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03895},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0367,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03895,"percentile":0.9014}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0367,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03895,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03895,"percentile":0.9014}]},"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-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"alpine","product":"patch","name":"patch","label":"patch","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/patch","purlType":"apk","versions":[{"text":"< 2.7.6-r5","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.5-r3","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.6-r5 | < 2.7.5-r3 | < 2.7.6-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"patch","name":"patch","label":"patch","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/patch","purlType":"apk","versions":[{"text":"< 2.7.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.6-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"patch","name":"patch","label":"patch","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/patch","purlType":"apk","versions":[{"text":"< 2.7.6-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.6-r3","eol":null,"hubHref":null},{"vendor":"debian","product":"patch","name":"patch","label":"patch","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/patch","purlType":"deb","versions":[{"text":"< 2.7.6-5","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.5-1+deb8u2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.6-5 | < 2.7.5-1+deb8u2","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.4+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.5-1ubuntu0.16.04.2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.7.6-2ubuntu1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.7.1-4ubuntu2.4+esm1 | < 2.7.5-1ubuntu0.16.04.2 | < 2.7.6-2ubuntu1.1","eol":null,"hubHref":null},{"vendor":"gnu","product":"patch","name":"patch","label":"patch","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 2.7.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 2.7.6","eol":null,"hubHref":"/vendor/gnu/patch"},{"vendor":"redhat","product":"patch","name":"patch","label":"patch","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/patch","purlType":"rpm","versions":[{"text":"< 0:2.7.6-11.el8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.7.6-11.el8","eol":null,"hubHref":null},{"vendor":"redhat","product":"patch-debuginfo","name":"patch-debuginfo","label":"patch-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/patch-debuginfo","purlType":"rpm","versions":[{"text":"< 0:2.7.6-11.el8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.7.6-11.el8","eol":null,"hubHref":null},{"vendor":"redhat","product":"patch-debugsource","name":"patch-debugsource","label":"patch-debugsource","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/patch-debugsource","purlType":"rpm","versions":[{"text":"< 0:2.7.6-11.el8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.7.6-11.el8","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://git.savannah.gnu.org/cgit/patch.git/commit/?id=dce4683cbbe107a95f1f0d45fabc304acfb5d71a","label":"git.savannah.gnu.org/cgit/patch.git/commit/?id=dce4683cbbe107a95f1f0d45fabc304acfb5d71a","hostname":"git.savannah.gnu.org","tags":["X Refsource MISC","Mailing List","Patch","Vendor Advisory","FIX"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/07/msg00016.html","label":"lists.debian.org/debian-lts-announce/2019/07/msg00016.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory","REPORT","Advisory"]},{"url":"https://usn.ubuntu.com/4071-1/","label":"usn.ubuntu.com/4071-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","WEB"]},{"url":"https://usn.ubuntu.com/4071-2/","label":"usn.ubuntu.com/4071-2/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","WEB"]},{"url":"https://www.debian.org/security/2019/dsa-4489","label":"www.debian.org/security/2019/dsa-4489","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Advisory"]},{"url":"https://seclists.org/bugtraq/2019/Jul/54","label":"seclists.org/bugtraq/2019/Jul/54","hostname":"seclists.org","tags":["Mailing List","X Refsource BUGTRAQ","WEB"]},{"url":"https://seclists.org/bugtraq/2019/Aug/29","label":"seclists.org/bugtraq/2019/Aug/29","hostname":"seclists.org","tags":["Mailing List","X Refsource BUGTRAQ","WEB"]},{"url":"http://packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","label":"packetstormsecurity.com/files/154124/GNU-patch-Command-Injection-Directory-Traversal.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","WEB"]},{"url":"https://security.gentoo.org/glsa/201908-22","label":"security.gentoo.org/glsa/201908-22","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVWWGISFWACROJJPVJJL4UBLVZ7LPOLT/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20190828-0001/","label":"security.netapp.com/advisory/ntap-20190828-0001/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Advisory"]},{"url":"https://github.com/irsl/gnu-patch-vulnerabilities","label":"github.com/irsl/gnu-patch-vulnerabilities","hostname":"github.com","tags":["X Refsource MISC","PACKAGE"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-13636","label":"security.alpinelinux.org/vuln/CVE-2019-13636","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2020:1852","label":"access.redhat.com/errata/RHSA-2020:1852","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.2_release_notes/index","label":"access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.2_release_notes/index","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1732781","label":"bugzilla.redhat.com/show_bug.cgi?id=1732781","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_1852.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_1852.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2019-13636","label":"access.redhat.com/security/cve/CVE-2019-13636","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-13636","label":"www.cve.org/CVERecord?id=CVE-2019-13636","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-13636","label":"nvd.nist.gov/vuln/detail/CVE-2019-13636","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://ubuntu.com/security/CVE-2019-13636","label":"ubuntu.com/security/CVE-2019-13636","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4071-1","label":"ubuntu.com/security/notices/USN-4071-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4071-2","label":"ubuntu.com/security/notices/USN-4071-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-13636","label":"security-tracker.debian.org/tracker/CVE-2019-13636","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-4489-1","MGASA-2020-0093","OPENSUSE-SU-2024:12060-1","SUSE-SU-2022:1925-1","SUSE-SU-2022:1932-1","USN-4071-1","USN-4071-2"],"duplicates":[],"related":["CGA-C376-CF8C-8GJ6","CGA-VXCR-QFM5-GCXR","OPENSUSE-SU-2024:12060-1","SUSE-SU-2022:1925-1","SUSE-SU-2022:1932-1","USN-4071-1","USN-4071-2"]},"timeline":[{"kind":"published","date":"2019-07-17T20:04:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T23:57:39.470Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T11:38:53.608Z","stale":false,"partial":false}}