Critical Vulnerabilities in Apache2 Package: Denial of Service Risks

apache2 Updated 03 Oct 2025

Summary

21/06/2021
N/A
Yes i
Unrated
Not published

USN-4994-2: apache2 vulnerabilities. Affects apache2 versions < 2.4.7-1ubuntu4.22+esm1. Fixed in 2.4.7-1ubuntu4.22+esm1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache2 is a widely used open-source web server software that enables the hosting of websites and web applications. It is known for its flexibility, scalability, and robust performance. However, recent vulnerabilities have been identified that could lead to denial of service attacks, affecting the availability of services hosted on Apache2.

Vulnerability Detail

The vulnerabilities stem from improper handling of certain modules within Apache2. Specifically, the mod_auth_digest and mod_session modules have been found to mishandle nonces and Cookie headers, respectively. This could allow remote attackers to exploit these weaknesses, potentially causing the server to crash and resulting in denial of service. The vulnerabilities are tracked under CVE-2020-35452, CVE-2021-26690, CVE-2021-26691, and CVE-2021-30641.

How To Fix

Minimum fixed version

2.4.7-1ubuntu4.22+esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, consider disabling the affected modules until the patch is applied. This can be done by running:

sudo a2dismod auth_digest
sudo a2dismod session

After disabling the modules, restart Apache2 with:

sudo systemctl restart apache2

Conclusion

The identified vulnerabilities in the Apache2 package pose significant risks, particularly in terms of denial of service. It is crucial for users to update their packages to the latest patched versions to ensure the security and availability of their web services.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

The main vulnerabilities include improper handling of nonces in mod_auth_digest and issues with Cookie headers in mod_session, leading to potential denial of service.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by these vulnerabilities without needing to sign up.

The impacted versions include Apache2 2.4.7 for Ubuntu 14.04 ESM and Apache2 2.4.18 for Ubuntu 16.04 ESM.

While the primary risk is denial of service, there is a potential for arbitrary code execution in some cases, which could lead to data loss.

It is recommended to regularly check for updates and apply patches as soon as they are available to minimize the risk of vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

2.4.7-1ubuntu4.22+esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade apache2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback