CVE-2013-0178: Input Validation
Insecure temporary file vulnerability in Redis before 2.6 related to /tmp/redis-%p.vm.
Other sources
It seems that redis 2.4 use a predictible file name in /tmp/ as some kind of swap file :
server.vmswapfile = zstrdup("/tmp/redis-%p.vm");
this was removed in 2.6 ( deprecated code ), but 2.4 is in fedora 18 and epel 6 AFAIK.
Since redis do not care if the file exist or not before opening it ( and in fact, I think it try to reuse if it already exist ), this could be used by a attacker to erase a arbitrary file with a symlink to the file. Depending if redis is running as root or not, this could be dangerous, or just a minor nuisance.
— Red Hat
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is CVE-2013-0178?
CVE-2013-0178 is an insecure temporary file vulnerability in Redis before version 2.6.
How does CVE-2013-0178 affect Redis?
CVE-2013-0178 affects Redis versions before 2.6 and is related to an insecure temporary file issue.
What is the severity of CVE-2013-0178?
CVE-2013-0178 has a severity value of 5.5, which is considered medium.
What is the recommended fix for CVE-2013-0178 in Debian Redis?
To fix CVE-2013-0178 in Debian Redis, upgrade to one of the following versions: 5:5.0.14-1+deb10u2, 5:5.0.14-1+deb10u4, 5:6.0.16-1+deb11u2, 5:7.0.11-1, 5:7.0.13-2, or 5:7.0.14-1.
Is Redislabs Redis affected by CVE-2013-0178?
Yes, Redislabs Redis versions up to 2.6.0 are affected by CVE-2013-0178.