CVE-2016-1247
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | nginx | Fixed | 1.10.0-0ubuntu0.16.04.3 | UBUNTU-CVE-2016-1247 |
| Ubuntu 14.04 | nginx | Fixed | 1.4.6-1ubuntu3.6 | UBUNTU-CVE-2016-1247 |
| Debian 14 | nginx | Fixed | 1.10.2-1 | DEBIAN-CVE-2016-1247 |
| Debian 13 | nginx | Fixed | 1.10.2-1 | DEBIAN-CVE-2016-1247 |
| Debian 12 | nginx | Fixed | 1.10.2-1 | DEBIAN-CVE-2016-1247 |
| Red Hat Enterprise Linux 9 | nginx | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-all-modules | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-core | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-filesystem | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-mod-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-mod-http-image-filter | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-mod-http-perl | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-mod-http-xslt-filter | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-mod-mail | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | nginx-mod-stream | Fix pending Affected |
What the vendor says
As published in the CVE record by debian, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.debian.org/security/2016/dsa-3701 (vendor-advisory)
- http://www.ubuntu.com/usn/USN-3114-1 (vendor-advisory)
- https://security.gentoo.org/glsa/201701-22 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://www.exploit-db.com/exploits/40768/
- http://www.securityfocus.com/archive/1/539796/100/0/threaded
- http://www.debian.org/security/2016/dsa-3701
- https://www.youtube.com/watch?v=aTswN1k1fQs
- http://www.securityfocus.com/bid/93903
- https://legalhackers.com/advisories/Nginx-Exploit-Deb-Root-PrivEsc-CVE-2016-1247.html
- http://www.ubuntu.com/usn/USN-3114-1
- http://seclists.org/fulldisclosure/2017/Jan/33
- https://security.gentoo.org/glsa/201701-22
- http://www.securitytracker.com/id/1037104
- http://seclists.org/fulldisclosure/2016/Nov/78
- http://packetstormsecurity.com/files/139750/Nginx-Debian-Based-Distros-Root-Privilege-Escalation.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P3WOO7E5R2HT5XVOIOFPEFALILVOWZUF/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ESTIADC7BDB6VTH4JAP6C6OCW2CQ4NHP/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBIZEKHBOCKO7FUMCO4X53ENMWU5OYFX/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.