CVE-2015-5313 Path traversal in n/a
Local users with specific storage permissions can write to arbitrary files via directory traversal in libvirt when fine-grained ACLs are enabled.
- 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-2015-5313?
CVE-2015-5313 is a low-severity path traversal vulnerability in Redhat Libvirt, published on 11 Apr 2016. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Directory traversal vulnerability in the virStorageBackendFileSystemVolCreate function in storage/storage_backend_fs.c in libvirt, when fine-grained Access Control Lists (ACL) are in effect, allows local users with storage_vol:create ACL but not domain:write permission to write to arbitrary files via a .. (dot dot) in a volume name.
Weakness: CWE-22
Which versions are affected by CVE-2015-5313?
It affects 1 product.
Linux distribution packages (9)
libvirt SUSE:Linux Enterprise Desktop 11 SP4 | All versions | 1.2.5-12.3 |
libvirt SUSE:Linux Enterprise Desktop 12 SP1 | All versions | 1.2.18.2-8.1 |
libvirt SUSE:Linux Enterprise Server 11 SP4 | All versions | 1.2.5-12.3 |
libvirt SUSE:Linux Enterprise Server 12 SP1 | All versions | 1.2.18.2-8.1 |
libvirt SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | All versions | 1.2.5-12.3 |
libvirt SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | All versions | 1.2.18.2-8.1 |
libvirt SUSE:Linux Enterprise Software Development Kit 11 SP4 | All versions | 1.2.5-12.3 |
libvirt SUSE:Linux Enterprise Software Development Kit 12 SP1 | All versions | 1.2.18.2-8.1 |
libvirt SUSE:Linux Enterprise Workstation Extension 12 SP1 | All versions | 1.2.18.2-8.1 |
Products include Redhat Libvirt.
How do I fix CVE-2015-5313?
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-2015-5313 being exploited?
There is no known exploitation of CVE-2015-5313 in the wild and no public exploit code.
Other vulnerabilities in Redhat Libvirt
Sources
Also known as DEBIAN-CVE-2015-5313, GHSA-qr2q-8mvm-hxvr, MGASA-2016-0103, SUSE-SU-2016:0923-1, SUSE-SU-2016:0931-1, UBUNTU-CVE-2015-5313.