Critical Vulnerability in Apache2: Digest Authentication Nonce Generation Flaw

apache2 Updated 02 Oct 2025

Summary

26/03/2018
N/A
Yes i
Critical
9.8

ALPINE-CVE-2018-1312: In Apache httpd 2.2.0 to 2.4.29, when generating an HTTP Digest authentication challenge, the nonce sent to prevent reply attacks was not correctly generated using a pseudo-random seed. Affects apache2 versions < 2.4.33-r0. Fixed in 2.4.33-r0. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache HTTP Server, commonly referred to as 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, power, and extensive feature set, including support for various protocols and authentication methods. However, a significant vulnerability has been identified in versions 2.2.0 to 2.4.29, which affects the security of HTTP Digest authentication, potentially allowing attackers to exploit nonce generation flaws.

Vulnerability Detail

The vulnerability arises from the improper generation of nonces used in HTTP Digest authentication challenges. Specifically, the nonce was not generated using a secure pseudo-random seed, which could allow an attacker to replay HTTP requests across a cluster of servers sharing the same authentication configuration. This flaw could lead to unauthorized access and data breaches, as attackers could impersonate legitimate users without detection.

How To Fix

Minimum fixed version

2.4.33-r0

This is the first release that contains the fix.

sudo apk add --upgrade apache2

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

Workaround

As a temporary workaround, consider disabling HTTP Digest authentication until the package is updated. This can be done by modifying the server configuration to use a different authentication method, such as Basic authentication, which does not rely on the flawed nonce generation.

Conclusion

The vulnerability in Apache2 regarding the improper nonce generation in HTTP Digest authentication poses a significant risk to web applications. It is crucial for users to update to the patched version 2.4.33-r0 to mitigate this risk. Additionally, utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 9.8, indicating a critical level of severity.

The affected versions are Apache2 versions 2.2.0 to 2.4.29.

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

If exploited, this vulnerability could allow attackers to replay authentication requests, potentially leading to unauthorized access to sensitive data and systems.

Yes, Vulert provides a service that monitors and alerts for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

2.4.33-r0

This is the first release that contains the fix.

sudo apk add --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