CVE-2018-1063 Path traversal in policycoreutils
Local attackers can exploit symbolic links during SELinux relabeling to modify file contexts, potentially bypassing security restrictions and escalating privileges.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-1063?
CVE-2018-1063 is a medium-severity path traversal vulnerability in Redhat Enterprise Linux, published on 2 Mar 2018. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Context relabeling of filesystems is vulnerable to symbolic link attack, allowing a local, unprivileged malicious entity to change the SELinux context of an arbitrary file to a context with few restrictions. This only happens when the relabeling process is done, usually when taking SELinux state from disabled to enable (permissive or enforcing). The issue was found in policycoreutils 2.5-11.
Weakness: CWE-59
Which versions are affected by CVE-2018-1063?
It affects 2 products.
Linux distribution packages (39)
policycoreutils Red Hat:enterprise_linux:7::client | All versions | 0:2.5-22.el7 |
policycoreutils-debuginfo Red Hat:enterprise_linux:7::client | All versions | 0:2.5-22.el7 |
policycoreutils-devel Red Hat:enterprise_linux:7::client | All versions | 0:2.5-22.el7 |
policycoreutils-gui Red Hat:enterprise_linux:7::client | All versions | 0:2.5-22.el7 |
policycoreutils-newrole Red Hat:enterprise_linux:7::client | All versions | 0:2.5-22.el7 |
policycoreutils-python Red Hat:enterprise_linux:7::client | All versions | 0:2.5-22.el7 |
policycoreutils-restorecond Red Hat:enterprise_linux:7::client | All versions | 0:2.5-22.el7 |
policycoreutils-sandbox Red Hat:enterprise_linux:7::client | All versions | 0:2.5-22.el7 |
policycoreutils Red Hat:enterprise_linux:7::computenode | All versions | 0:2.5-22.el7 |
policycoreutils-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 0:2.5-22.el7 |
policycoreutils-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:2.5-22.el7 |
policycoreutils-gui Red Hat:enterprise_linux:7::computenode | All versions | 0:2.5-22.el7 |
policycoreutils-newrole Red Hat:enterprise_linux:7::computenode | All versions | 0:2.5-22.el7 |
policycoreutils-python Red Hat:enterprise_linux:7::computenode | All versions | 0:2.5-22.el7 |
policycoreutils-restorecond Red Hat:enterprise_linux:7::computenode | All versions | 0:2.5-22.el7 |
policycoreutils-sandbox Red Hat:enterprise_linux:7::computenode | All versions | 0:2.5-22.el7 |
policycoreutils Red Hat:enterprise_linux:7::server | All versions | 0:2.5-22.el7 |
policycoreutils-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:2.5-22.el7 |
policycoreutils-devel Red Hat:enterprise_linux:7::server | All versions | 0:2.5-22.el7 |
policycoreutils-gui Red Hat:enterprise_linux:7::server | All versions | 0:2.5-22.el7 |
policycoreutils-newrole Red Hat:enterprise_linux:7::server | All versions | 0:2.5-22.el7 |
policycoreutils-python Red Hat:enterprise_linux:7::server | All versions | 0:2.5-22.el7 |
policycoreutils-restorecond Red Hat:enterprise_linux:7::server | All versions | 0:2.5-22.el7 |
policycoreutils-sandbox Red Hat:enterprise_linux:7::server | All versions | 0:2.5-22.el7 |
policycoreutils Red Hat:enterprise_linux:7::workstation | All versions | 0:2.5-22.el7 |
policycoreutils-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 0:2.5-22.el7 |
policycoreutils-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:2.5-22.el7 |
policycoreutils-gui Red Hat:enterprise_linux:7::workstation | All versions | 0:2.5-22.el7 |
policycoreutils-newrole Red Hat:enterprise_linux:7::workstation | All versions | 0:2.5-22.el7 |
policycoreutils-python Red Hat:enterprise_linux:7::workstation | All versions | 0:2.5-22.el7 |
policycoreutils-restorecond Red Hat:enterprise_linux:7::workstation | All versions | 0:2.5-22.el7 |
policycoreutils-sandbox Red Hat:enterprise_linux:7::workstation | All versions | 0:2.5-22.el7 |
policycoreutils SUSE:Linux Enterprise Server 11 SP4 | All versions | 2.0.79-4.9.3.3 |
policycoreutils SUSE:Linux Enterprise Server 12 SP2 | All versions | 2.5-10.3.1 |
policycoreutils SUSE:Linux Enterprise Server 12 SP3 | All versions | 2.5-10.3.1 |
policycoreutils SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | All versions | 2.5-10.3.1 |
policycoreutils SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | All versions | 2.0.79-4.9.3.3 |
policycoreutils SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | All versions | 2.5-10.3.1 |
policycoreutils SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | All versions | 2.5-10.3.1 |
Products include Redhat Enterprise Linux, Selinux Project Selinux.
How do I fix CVE-2018-1063?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2018-1063 being exploited?
There is no known exploitation of CVE-2018-1063 in the wild and no public exploit code.
Other vulnerabilities in Redhat Enterprise Linux
- CVE-2018-14667 Red Hat JBoss RichFaces Framework Expression Language Injection
- CVE-2021-20325 Missing fixes for CVE-2021-40438 and CVE-2021-26691 in the versions of httpd, as shipped in Red Hat Enterprise Linux 8.5.0, causes a securit
- CVE-2018-25011 Memory corruption in libwebp
- CVE-2018-25014 Other in libwebp
- CVE-2014-3585 Supply chain in redhat-upgrade-tool
Sources
Also known as DEBIAN-CVE-2018-1063, GHSA-p5j6-rvwf-qchg, MGASA-2021-0032, RHSA-2018:0913, SUSE-SU-2018:0926-1, SUSE-SU-2018:0927-1 and 1 more.