Apache HTTP Server Privilege Escalation
CVE-2019-0211 is a high-severity use after free vulnerability in Apache HTTP Server from Apache, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. Affected Apache HTTP Server versions: 2.4.17 to 2.4.38. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on November 3, 2021, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Check which version of Apache HTTP Server you run against the affected versions below, and install the vendor's latest release.
- CISA's required action: Apply updates per vendor instructions.
- Read the advisory on packetstormsecurity.com for workarounds and exact fixed builds.
Affected products and versions
Version data comes from the organisation that assigned the CVE; 2 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.8 | High | NVD |
| CVSS 3.1 | 7.8 | High | CISA (ADP) |
| CVSS 2.0 | 7.2 | High | NVD |
Official description
In Apache HTTP Server 2.4 releases 2.4.17 to 2.4.38, with MPM event, worker or prefork, code executing in less-privileged child processes or threads (including scripts executed by an in-process scripting interpreter) could execute arbitrary code with the privileges of the parent process (usually root) by manipulating the scoreboard. Non-Unix systems are not affected.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.
How developers prevent this class of flaw
- Choose a language that provides automatic memory management.
- When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- packetstormsecurity.com/files/152415/Slackware-Security-Advisory-httpd-Updates.htmlExploit, Third Party Advisory, VDB Entry
- httpd.apache.org/security/vulnerabilities_24.html
- oracle.com/technetwork/security-advisory/cpujul2019-5072835.htmlThird Party Advisory
- oracle.com/technetwork/security-advisory/cpuoct2019-5072832.htmlThird Party Advisory
Patches and release notes
- lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache…Mailing List
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ALIR5S3O7NRHEGFMIDMU…Release Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EZRMTEIGZKYFNGIDOTXN…Release Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WETXNQWNQLWHV6XNW6YT…Release Notes
- seclists.org/bugtraq/2019/Apr/16Mailing List, Third Party Advisory
- oracle.com/security-alerts/cpuapr2020.htmlThird Party Advisory
Third-party and government advisories
- packetstormsecurity.com/files/152386/Apache-2.4.38-Root-Privilege-Escalation.htmlThird Party Advisory, VDB Entry
- openwall.com/lists/oss-security/2019/04/02/3Mailing List, Third Party Advisory
- access.redhat.com/errata/RHBA-2019:0959Third Party Advisory
- access.redhat.com/errata/RHSA-2019:0746Third Party Advisory
- access.redhat.com/errata/RHSA-2019:0980Third Party Advisory
- access.redhat.com/errata/RHSA-2019:1296Third Party Advisory
- access.redhat.com/errata/RHSA-2019:1297Third Party Advisory
- access.redhat.com/errata/RHSA-2019:1543Third Party Advisory
- seclists.org/bugtraq/2019/Apr/5Mailing List, Third Party Advisory
- security.gentoo.org/glsa/201904-20Third Party Advisory
- security.netapp.com/advisory/ntap-20190423-0001/Third Party Advisory
- support.f5.com/csp/article/K32957101Third Party Advisory
- support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03950en_usThird Party Advisory
- usn.ubuntu.com/3937-1/Third Party Advisory
- debian.org/security/2019/dsa-4422Mailing List, Third Party Advisory
Technical write-ups (may include proof of concept)
- packetstormsecurity.com/files/152441/CARPE-DIEM-Apache-2.4.x-Local-Privilege-Escalation.htmlExploit, Third Party Advisory, VDB Entry
- exploit-db.com/exploits/46676/Exploit, Third Party Advisory, VDB Entry
Other references
- openwall.com/lists/oss-security/2019/07/26/7Mailing List
- lists.apache.org/thread.html/56c2e7cc9deb1c12a843d0dc251ea7fd3e7e80293cde02fcd65286ba%40%3Ccvs.httpd.apache.o…Mailing List
- lists.apache.org/thread.html/84a3714f0878781f6ed84473d1a503d2cc382277e100450209231830%40%3Ccvs.httpd.apache.o…Mailing List
- lists.apache.org/thread.html/890507b85c30adf133216b299cc35cd8cd0346a885acfc671c04694e%40%3Cdev.community.apac…Mailing List
- lists.apache.org/thread.html/b1613d44ec364c87bb7ee8c5939949f9b061c05c06e0e90098ebf7aa%40%3Cusers.httpd.apache…Mailing List
- lists.apache.org/thread.html/b2bdb308dc015e771ba79c0586b2de6fb50caa98b109833f5d4daf28%40%3Cdev.community.apac…Mailing List
- lists.apache.org/thread.html/de881a130bc9cb2f3a9ff220784520556884fb8ea80e69400a45509e%40%3Cdev.community.apac…Mailing List
- lists.apache.org/thread.html/fd110f4ace2d8364c7d9190e1993cde92f79e4eb85576ed9285686ac%40%3Ccvs.httpd.apache.o…Mailing List
- lists.apache.org/thread.html/r03ee478b3dda3e381fd6189366fa7af97c980d2f602846eef935277d%40%3Ccvs.httpd.apache…Mailing List
- lists.apache.org/thread.html/r06f0d87ebb6d59ed8379633f36f72f5b1f79cadfda72ede0830b42cf%40%3Ccvs.httpd.apache…Mailing List
- lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c%40%3Cannounce.apache.o…Mailing List
- lists.apache.org/thread.html/r76142b8c5119df2178be7c2dba88fde552eedeec37ea993dfce68d1d%40%3Ccvs.httpd.apache…Mailing List
- lists.apache.org/thread.html/rc998b18880df98bafaade071346690c2bc1444adaa1a1ea464b93f0a%40%3Ccvs.httpd.apache…Mailing List
- lists.apache.org/thread.html/rd18c3c43602e66f9cdcf09f1de233804975b9572b0456cc582390b6f%40%3Ccvs.httpd.apache…Mailing List
- lists.apache.org/thread.html/rd2fb621142e7fa187cfe12d7137bf66e7234abcbbcd800074c84a538%40%3Ccvs.httpd.apache…Mailing List
Other vulnerabilities in Apache HTTP Server
- 8.1 High severity
- 8.8 High severity
- 7.3 High severity
- 8.1 High severity
- 7.5 High severity
- 7.5 High severity
Recent Use After Free vulnerabilities
- 7.8 High severity
Adobe Flash Player Use-After-Free Exploited
- 7.5 High severity
- 7.8 High severity
Adobe Flash Player Use-After-Free Exploited
- 7.8 High severity
Microsoft Win32k Privilege Escalation Exploited
- 7.8 High severity
Microsoft Office Use-After-Free Exploited
- 8.8 High severity
Adobe Flash Player Use-After-Free Exploited
Spotted an error? Tell us.