CVE-2013-0178: Input Validation

Published Jan 12, 2013
·
Updated

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

2 affected componentsFixes available
Redislabs Redis<2.6.0
debian/redis
5:6.0.16-1+deb11u25:6.0.16-1+deb11u85:7.0.15-1~deb12u65:8.0.2-3+deb13u15:8.0.5-1

Event History

Jan 12, 2013
Data Sourced
via Red Hat·10:55 PM
DescriptionSeverityAffected Software
Nov 1, 2019
CVE Published
via MITRE·06:25 PM
Data Sourced
via MITRE·06:25 PM
DescriptionWeakness
Feb 18, 2026
Data Sourced
via Debian·03:05 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2013-0178?

CVE-2013-0178 is an insecure temporary file vulnerability in Redis before version 2.6.

2

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.

3

What is the severity of CVE-2013-0178?

CVE-2013-0178 has a severity value of 5.5, which is considered medium.

4

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.

5

Is Redislabs Redis affected by CVE-2013-0178?

Yes, Redislabs Redis versions up to 2.6.0 are affected by CVE-2013-0178.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203