CARPE (DIEM): CVE-2019-0211 Apache Local Privilege Escalation

CloudSEK’s flagship digital risk monitoring platform XVigil discovered a post on a cybercrime forum, mentioning a vulnerability in the Apache HTTP server 2.4.17 to 2.4.38, known as CVE-2019-0211.
Updated on
April 19, 2023
Published on
March 25, 2022
Read MINUTES
5
Subscribe to the latest industry news, threats and resources.
Category: Vulnerability IntelligenceCVSS: 7.8TLP: GREEN 
\

Executive Summary

  • CloudSEK’s flagship digital risk monitoring platform XVigil discovered a post on a cybercrime forum, mentioning a vulnerability in the Apache HTTP server 2.4.17 to 2.4.38, known as CVE-2019-0211.
  • CVE-2019-0211 is a local privilege escalation bug, hence to exploit the attacker must have initial access to the server.  
  • Threat actors can exploit this vulnerability to conduct various attacks, including, but not limited to, privilege escalation, lateral movement, and more.
Threat actor’s post on the cybercrime forum
Threat actor’s post on the cybercrime forum

Technical summary

CloudSEK’s XVigil runs routine application misconfiguration scans as a part of infrastructure monitoring. During such scans, we found that there are multiple assets that are still vulnerable to an older vulnerability given the name CARPE (DIEM): CVE-2019-0211.

This vulnerability was a critical vulnerability that came out in 2019 and lets an attacker execute unprivileged scripts, usually run by Apache with lowered privileges to take over the main Apache process. This can also lead to an attacker gaining root access to the server by simply running a script. 

CVE-2019-0211 poses a threat to web hosting services using the vulnerable versions in shared environments where root privilege can allow attackers to access files shared by other users on the host environment. Even if a vulnerable Apache server is not running in a shared environment, this vulnerability can be chained with other attack methods to execute code at a higher privilege level.

This vulnerability only impacts the Apache HTTP servers running on Unix operating systems. 

CVE-2019-0211 sustains in Apache Multi-Processing Modules (MPMs) such as mod_prefork, mod_worker and mod_event

According to the PoC published by the researcher who discovered this vulnerability, Apache uses a shared-memory area to keep tabs on worker processes managed by mod_prefork. To exploit the vulnerability, the attacker is required to gain read/write access to a worker process to in turn manipulate the shared-memory area to point to a rogue worker before an Apache graceful restart (apache2ctl graceful) is initiated by logrotate.

Exploit for CVE-2019-0211
Exploit for CVE-2019-0211

OSINT Information

Apache is the most popular web server and hence powers more than 40% of the Internet.   

This chart shows that more than 1.6 million servers are still running vulnerable versions of Apache.

The security engineer who discovered the Carpe Diem Apache HTTP Server bug has released an exploit for it. The vulnerability has been deemed critical and lets the attackers perform actions most hosting providers have worked to avoid.

Impact & Mitigation

ImpactMitigation
The ease of exploitation is very low whereas the impact is high. The threat actor can gain root privilege to the server. It is a threat to shared hosting providers that run multiple websites under the sale Apache process. It can result in your brand image being impacted negatively. It can result in a loss of trust by stakeholders.Update to Apache 2.4.39 or newer versions.

References

[1] Apache HTTP Server 2.4 vulnerabilities

[2] CARPE (DIEM): CVE-2019-0211 Apache Root Privilege Escalation

[3] PoC exploit for Carpe Diem Apache bug released - Help Net Security

[4] Apache HTTP Server Privilege Escalation (CVE-2019-0211) Explained | Rapid7 Blog

[5] Apache 2.4.17 < 2.4.38 - 'apache2ctl graceful' 'logrotate' Local Privilege Escalation - Linux local Exploit     

Get Global Threat Intelligence on Real Time

Protect your business from cyber threats with real-time global threat intelligence data.. 30-day free and No Commitment Trial.
Schedule a Demo
Real time Threat Intelligence Data
More information and context about Underground Chatter
On-Demand Research Services
Dashboard mockup
Global Threat Intelligence Feed

Protect and proceed with Actionable Intelligence

The Global Cyber Threat Intelligence Feed is an innovative platform that gathers information from various sources to help businesses and organizations stay ahead of potential cyber-attacks. This feed provides real-time updates on cyber threats, including malware, phishing scams, and other forms of cybercrime.
Trusted by 400+ Top organisations