{"schemaVersion":3,"id":"CVE-2016-1247","aliases":["UBUNTU-CVE-2016-1247","USN-3114-1","DEBIAN-CVE-2016-1247","DSA-3701-1"],"status":"published","duplicateOf":null,"title":null,"description":"The nginx package before 1.6.2-5+deb8u3 on Debian jessie, the nginx packages before 1.4.6-1ubuntu3.6 on Ubuntu 14.04 LTS, before 1.10.0-0ubuntu0.16.04.3 on Ubuntu 16.04 LTS, and before 1.10.1-0ubuntu1.1 on Ubuntu 16.10, and the nginx ebuild before 1.10.2-r3 on Gentoo allow local users with access to the web server user account to gain root privileges via a symlink attack on the error log.","dates":{"published":"2016-11-29T17:00:00.000Z","modified":"2024-08-05T22:48:13.613Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.04863,"percentile":0.91946,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04863},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04863,"percentile":0.91946}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04863,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04863,"percentile":0.91946}]},"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":[{"id":"REF_0DFC375B48D87DB1","name":"Exploit Reference (youtube.com)","source":"reference","url":"https://www.youtube.com/watch?v=aTswN1k1fQs","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_D994369C29E725EF","name":"Exploit Reference (legalhackers.com)","source":"reference","url":"https://legalhackers.com/advisories/Nginx-Exploit-Deb-Root-PrivEsc-CVE-2016-1247.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_1D6F58706F017449","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/139750/Nginx-Debian-Based-Distros-Root-Privilege-Escalation.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"40768","name":"Nginx (Debian Based Distros + Gentoo) - 'logrotate' Local Privilege Escalation","source":"exploit-database","url":"https://www.exploit-db.com/exploits/40768","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"local","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"local","platform":"linux","file":"exploits/linux/local/40768.sh","codes":["CVE-2016-1247"]},"metasploit":null}],"exploitCount":4,"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":"debian","product":"nginx","name":"nginx","label":"nginx","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/nginx","purlType":"deb","versions":[{"text":"< 1.10.2-1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.6.2-5+deb8u3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.10.2-1 | < 1.6.2-5+deb8u3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"nginx","name":"nginx","label":"nginx","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nginx","purlType":"deb","versions":[{"text":"< 1.4.6-1ubuntu3.6","noFixRecorded":false,"fixedIn":null},{"text":"< 1.10.0-0ubuntu0.16.04.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.4.6-1ubuntu3.6 | < 1.10.0-0ubuntu0.16.04.3","eol":null,"hubHref":null},{"vendor":"f5","product":"nginx","name":"nginx","label":"nginx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.10.1","noFixRecorded":false,"fixedIn":null},{"text":"≤ 1.10.0","noFixRecorded":false,"fixedIn":null},{"text":"≤ 1.6.2","noFixRecorded":false,"fixedIn":null},{"text":"≤ 1.4.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.10.1 | ≤ 1.10.0 | ≤ 1.6.2 | ≤ 1.4.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"nginx","label":"nginx","category":"server-app"}},"hubHref":"/vendor/f5/nginx"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"33 | 34 | 35","eol":{"isEol":true,"eolDate":"2021-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"33","label":"33","eolFrom":"2021-11-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"}],"affectedCount":4,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://www.exploit-db.com/exploits/40768/","label":"www.exploit-db.com/exploits/40768/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"http://www.securityfocus.com/archive/1/539796/100/0/threaded","label":"www.securityfocus.com/archive/1/539796/100/0/threaded","hostname":"www.securityfocus.com","tags":["Mailing List","X Refsource BUGTRAQ","Third Party Advisory","VDB Entry"]},{"url":"http://www.debian.org/security/2016/dsa-3701","label":"www.debian.org/security/2016/dsa-3701","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN"]},{"url":"https://www.youtube.com/watch?v=aTswN1k1fQs","label":"www.youtube.com/watch?v=aTswN1k1fQs","hostname":"www.youtube.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/93903","label":"www.securityfocus.com/bid/93903","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://legalhackers.com/advisories/Nginx-Exploit-Deb-Root-PrivEsc-CVE-2016-1247.html","label":"legalhackers.com/advisories/Nginx-Exploit-Deb-Root-PrivEsc-CVE-2016-1247.html","hostname":"legalhackers.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"http://www.ubuntu.com/usn/USN-3114-1","label":"www.ubuntu.com/usn/USN-3114-1","hostname":"www.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU"]},{"url":"http://seclists.org/fulldisclosure/2017/Jan/33","label":"seclists.org/fulldisclosure/2017/Jan/33","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201701-22","label":"security.gentoo.org/glsa/201701-22","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"http://www.securitytracker.com/id/1037104","label":"www.securitytracker.com/id/1037104","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2016/Nov/78","label":"seclists.org/fulldisclosure/2016/Nov/78","hostname":"seclists.org","tags":["Mailing List","X Refsource FULLDISC","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/139750/Nginx-Debian-Based-Distros-Root-Privilege-Escalation.html","label":"packetstormsecurity.com/files/139750/Nginx-Debian-Based-Distros-Root-Privilege-Escalation.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P3WOO7E5R2HT5XVOIOFPEFALILVOWZUF/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ESTIADC7BDB6VTH4JAP6C6OCW2CQ4NHP/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBIZEKHBOCKO7FUMCO4X53ENMWU5OYFX/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://ubuntu.com/security/CVE-2016-1247","label":"ubuntu.com/security/CVE-2016-1247","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3114-1","label":"ubuntu.com/security/notices/USN-3114-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"http://legalhackers.com/advisories/Nginx-Exploit-Deb-Root-PrivEsc-CVE-2016-1247.html","label":"legalhackers.com/advisories/Nginx-Exploit-Deb-Root-PrivEsc-CVE-2016-1247.html","hostname":"legalhackers.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-1247","label":"www.cve.org/CVERecord?id=CVE-2016-1247","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-1247","label":"security-tracker.debian.org/tracker/CVE-2016-1247","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2016-11-29T17:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T22:48:13.613Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":42,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:56:53.156Z","stale":false,"partial":false}}