CVE-2019-20799
📋 TL;DR
CVE-2019-20799 is a memory corruption vulnerability in Cherokee web server that allows remote attackers to cause denial of service or potentially execute arbitrary code. It affects Cherokee web server versions through 1.2.104. Organizations running vulnerable Cherokee instances are at risk.
💻 Affected Systems
- Cherokee web server
📦 What is this software?
Cherokee by Cherokee Project
⚠️ Risk & Real-World Impact
Worst Case
Remote code execution leading to complete server compromise and potential lateral movement within the network
Likely Case
Denial of service causing server crashes and service disruption
If Mitigated
Limited impact with proper network segmentation and monitoring in place
🎯 Exploit Status
Multiple proof-of-concept examples exist in GitHub issues and security research blogs
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.2.105 and later
Vendor Advisory: https://github.com/cherokee/webserver/issues/1221
Restart Required: Yes
Instructions:
1. Download Cherokee 1.2.105 or later from official repository. 2. Stop Cherokee service. 3. Install updated version. 4. Restart Cherokee service.
🔧 Temporary Workarounds
Network segmentation and firewall rules
linuxRestrict access to Cherokee web server to trusted networks only
iptables -A INPUT -p tcp --dport 80 -s trusted_network -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -s trusted_network -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -p tcp --dport 443 -j DROP
🧯 If You Can't Patch
- Implement strict network access controls to limit exposure
- Deploy web application firewall (WAF) with memory corruption protection rules
🔍 How to Verify
Check if Vulnerable:
Check Cherokee version with 'cherokee -v' or 'cherokee-admin -v'
Check Version:
cherokee -v || cherokee-admin -v
Verify Fix Applied:
Verify version is 1.2.105 or later and monitor for crash logs
📡 Detection & Monitoring
Log Indicators:
- Segmentation fault errors in Cherokee logs
- Unexpected process termination
- Memory allocation failures
Network Indicators:
- Unusual HTTP requests causing server crashes
- Repeated connection attempts to Cherokee ports
SIEM Query:
source="cherokee.log" AND ("segmentation fault" OR "SIGSEGV" OR "memory corruption")
🔗 References
- https://github.com/cherokee/webserver/issues/1221
- https://github.com/cherokee/webserver/issues/1222
- https://github.com/cherokee/webserver/issues/1225
- https://github.com/cherokee/webserver/issues/1226
- https://logicaltrust.net/blog/2019/11/cherokee.html
- https://security.gentoo.org/glsa/202012-09
- https://github.com/cherokee/webserver/issues/1221
- https://github.com/cherokee/webserver/issues/1222
- https://github.com/cherokee/webserver/issues/1225
- https://github.com/cherokee/webserver/issues/1226
- https://logicaltrust.net/blog/2019/11/cherokee.html
- https://security.gentoo.org/glsa/202012-09