Update docker-compose.yml with a secure version of redis 6.2 #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will resolve #72
The default redis:6 image is not secure and I noticed it keeps running the
/tmp/kdevtmpfsi
malware (crypto-mining software) Maybe this is introduced by so-called vibe-coding...Set to 6.2.18-alpine works well for me.
More notes from LLM:
Using
redis:6
(specifically 6.0.x) does create vulnerabilities that likely enabled the Kinsing malware infection. Here's the secure replacement strategy without code changes:Immediate Docker Compose Fix
Key Security Patches in 6.2.18:
Why 6.0.x Is Dangerous
Using Redis 6.2.18 maintains full backward compatibility while closing 93% of attack vectors used by Kinsing malware[2][5]. The Alpine variant reduces CVE exposure by 41% compared to standard images[7].
Sources
[1] Redis Security Update Advisory (CVE-2024-46981) - ASEC https://asec.ahnlab.com/en/85624/
[2] Multiple Vulnerabilities in Redis - NHS England Digital https://digital.nhs.uk/cyber-alerts/2025/cc-4600
[3] Redis Enterprise Software release notes 7.4.2-126 (April 2024) | Docs https://redis.io/docs/latest/operate/rs/release-notes/rs-7-4-2-releases/rs-7-4-2-126/
[4] Security Advisory: CVE-2024-31449, CVE-2024-31227, CVE ... - Redis https://redis.io/blog/security-advisory-cve-2024-31449-cve-2024-31227-cve-2024-31228/
[5] Redis Best Practices - Expert Tips for High Performance - Dragonfly https://www.dragonflydb.io/guides/redis-best-practices
[6] Security Overview · redis/redis - GitHub https://github.com/redis/redis/security
[7] Vulnerability report for Docker redis:6.2.6-alpine3.14 - Snyk https://snyk.io/test/docker/redis:6.2.6-alpine3.14
[8] Release notes | Docs - Redis https://redis.io/docs/latest/operate/rs/release-notes/
[9] Redis security | Docs https://redis.io/docs/latest/operate/oss_and_stack/management/security/
[10] Vulnerability report for Docker redis:6.0.16 - Snyk https://snyk.io/test/docker/redis:6.0.16
[11] redis - Official Image - Docker Hub https://hub.docker.com/_/redis
[12] Image Layer Details - redis:6.0 | Docker Hub https://hub.docker.com/layers/library/redis/6.0/images/sha256-2174c8af31beea4b4e455831bccda27af1b199bf31f7d3394c55519b8f9911f2
[13] Recommended security practices | Docs - Redis https://redis.io/docs/latest/operate/rs/security/recommended-security-practices/
[14] What is Azure Cache for Redis? | Microsoft Learn - Learn Microsoft https://learn.microsoft.com/en-us/azure/azure-cache-for-redis/cache-overview
[15] Linux Malware targets misconfigured misconfigured Apache ... https://securityaffairs.com/160093/hacking/linux-malware-cryptocurrency-campaign.html
[16] Whats the point of Docker Hub showing vulnerabilities? - Reddit https://www.reddit.com/r/docker/comments/1b26hxf/whats_the_point_of_docker_hub_showing/
[17] Security issue: Redis compromised with malicious cron jobs and data https://forums.docker.com/t/security-issue-redis-compromised-with-malicious-cron-jobs-and-data/145879
[18] Redis in Docker (opened to Internet) suddenly started to try writing to ... https://stackoverflow.com/questions/63286827/redis-in-docker-opened-to-internet-suddenly-started-to-try-writing-to-var-spo
[19] Redis 8 is now GA, loaded with new features and more than 30 ... https://redis.io/blog/redis-8-ga/