Critical Buffer Overflow Vulnerability in Apache2 Package - CVE-2017-7679

apache2 Updated 02 Oct 2025

Summary

20/06/2017
N/A
Yes i
Critical
9.8

ALPINE-CVE-2017-7679: In Apache httpd 2.2.x before 2.2.33 and 2.4.x before 2.4.26, mod_mime can read one byte past the end of a buffer when sending a malicious Content-Type response header. Affects apache2 versions < 2.4.26-r0. Fixed in 2.4.26-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 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

Apache HTTP Server, commonly referred to as Apache, 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, modules, and configurations. However, certain versions of Apache2 are vulnerable to a buffer overflow issue, specifically in the mod_mime module, which can lead to severe security risks.

Vulnerability Detail

The vulnerability identified as CVE-2017-7679 affects Apache HTTP Server versions 2.2.x before 2.2.33 and 2.4.x before 2.4.26. It arises from the mod_mime module's mishandling of Content-Type response headers, allowing it to read one byte past the end of a buffer. This flaw can be exploited by an attacker to execute arbitrary code, potentially leading to unauthorized access, data breaches, or service disruptions. The CVSS score for this vulnerability is 9.8, indicating a critical severity level.

How To Fix

Minimum fixed version

2.4.26-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, users can restrict access to the affected modules or disable mod_mime until the package is updated. This can be done by modifying the Apache configuration file to comment out the LoadModule directive for mod_mime.

Conclusion

The CVE-2017-7679 vulnerability in Apache HTTP Server poses a critical risk due to its potential for buffer overflow attacks. It is crucial for users to update their Apache2 packages to the patched version to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for apache2 →

Share this vulnerability

FAQ

CVE-2017-7679 is a critical vulnerability in the Apache HTTP Server that allows for buffer overflow due to improper handling of Content-Type response headers.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability can lead to unauthorized access, data breaches, and service disruptions, posing significant risks to affected systems.

You can update the Apache2 package by running the command: apk update && apk upgrade apache2 in your Alpine Linux environment.

Yes, you can temporarily disable mod_mime or restrict access to it in your Apache configuration as a workaround until the package is updated.

Related vulnerabilities

Recent vulnerabilities recorded for apache2.

How To Fix

Minimum fixed version

2.4.26-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