The Apache HTTP Server is one of the most widely used web servers in the world. But like any software, it is not immune to vulnerabilities. And watch out, because this is a double flaw.
On July 4, a critical security flaw was discovered, affecting Apache version 2.4.60. This flaw is tracked as CVE-2024-39884.
The flaw allows the source code of PHP files to be disclosed. That is absolutely critical, because those files can contain, for example, database passwords or confidential proprietary code.
A fix was therefore released in Apache server version 2.4.61… Except that this fix did not properly fix the flaw! A second CVE was therefore issued, CVE-2024-40725, to re-identify this flaw that had ultimately not been fixed.
Here is a summary of these flaws and the fixes that were applied.
Update 07/30/2024: It is possible that this vulnerability is linked to a wave of hacks targeting sites hosted at o2switch. Nothing has been established with certainty, because the methods used to exploit these flaws and the scale of the problem are not yet public. I also have no information from my fellow web host about the Apache versions they use.
CVE-2024-39884
- Publication date: July 4, 2024
- Description: A regression in the core of Apache HTTP Server version 2.4.60 means that some configurations based on content type, such as “AddType”, are not handled correctly. In some cases, this can lead to the disclosure of the source code of local files, such as PHP scripts, which may be displayed as plain text instead of being interpreted.
- Solution: We recommend updating to version 2.4.61, which fixes this issue.
- Link: CVE-2024-39884
CVE-2024-40725
- Publication date: July 17, 2024
- Description: This flaw is an additional fix for CVE-2024-39884. It reveals that version 2.4.61 does not completely fix the original problem. Indeed, some configurations based on content type can still lead to the disclosure of the source code of local files in certain circumstances.
- Solution: We recommend updating to version 2.4.62, which definitively fixes this issue.
- Link: CVE-2024-40725
Fix Roadmap for Debian
Debian, the parent Linux distribution used by LRob, has also taken steps to fix these vulnerabilities across its various versions, through either the “security” repository or the native one, depending on the OS version. Here is the fix roadmap:
| Source Package | Release | Version | Status |
|---|---|---|---|
| apache2 (PTS) | bullseye | 2.4.59-1~deb11u1 | vulnerable |
| bullseye (security) | 2.4.61-1~deb11u1 | fixed | |
| bookworm | 2.4.59-1~deb12u1 | vulnerable | |
| bookworm (security) | 2.4.61-1~deb12u1 | fixed | |
| sid, trixie | 2.4.62-1 | fixed |
- Link: Debian fix roadmap
Status of LRob Servers
All LRob servers are already up to date and properly fix this flaw.
Conclusion
Apache HTTP Server administrators should check their server version immediately and update to the fixed versions (2.4.61-1[security] or 2.4.62) to avoid any unintended disclosure of source code.
The open-source community continues to monitor and quickly fix vulnerabilities to ensure the security and reliability of the software used by millions of servers around the world. Make sure you follow security updates and keep your infrastructure up to date to protect your data and that of your users.









Leave a Reply
You must be logged in to post a comment.