Critical Buffer Overflow Vulnerability in mini_httpd: Remote Code Execution Risk

mini_httpd Updated 02 Oct 2025

Summary

06/02/2018
N/A
Yes i
Critical
9.8

ALPINE-CVE-2017-17663: The htpasswd implementation of mini_httpd before v1.28 and of thttpd before v2.28 is affected by a buffer overflow that can be exploited remotely to perform code execution. Affects mini_httpd versions < 1.29-r0. Fixed in 1.29-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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

mini_httpd is a lightweight HTTP server designed for simplicity and efficiency, often used in embedded systems and low-resource environments. It provides essential web server functionalities, including support for CGI scripts and basic authentication. However, versions prior to 1.29 are vulnerable to a critical buffer overflow issue that can be exploited remotely, leading to potential code execution.

Vulnerability Detail

The vulnerability, identified as CVE-2017-17663, originates from the htpasswd implementation in mini_httpd versions before 1.28. This flaw allows an attacker to exploit a buffer overflow remotely, which can result in unauthorized code execution on the server. The severity of this vulnerability is underscored by its CVSS score of 9.8, indicating a high risk to affected systems.

How To Fix

Minimum fixed version

1.29-r0

This is the first release that contains the fix.

sudo apk add --upgrade mini_httpd

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

Workaround

As a temporary measure, users can disable the htpasswd functionality or restrict access to the affected server until the package is updated. This can be achieved by modifying the server configuration to limit access to trusted IP addresses only.

Conclusion

The buffer overflow vulnerability in mini_httpd poses a significant risk to users of the affected versions. It is crucial to update to version 1.29-r0 or later to mitigate the risk of remote code execution. Users are encouraged to monitor their systems and utilize tools like Vulert for real-time vulnerability alerts.

See every vulnerability recorded for mini_httpd →

Share this vulnerability

FAQ

CVE-2017-17663 is a critical vulnerability in mini_httpd that allows remote code execution due to a buffer overflow in the htpasswd implementation.

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

Failure to address this vulnerability could lead to unauthorized access and control over the affected server, potentially compromising sensitive data.

Yes, you can temporarily disable the htpasswd functionality or restrict server access to trusted IP addresses until the patch is applied.

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

Related vulnerabilities

Recent vulnerabilities recorded for mini_httpd.

How To Fix

Minimum fixed version

1.29-r0

This is the first release that contains the fix.

sudo apk add --upgrade mini_httpd

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