Critical File Read Vulnerability in mini_httpd - CVE-2018-18778

mini_httpd Updated 02 Oct 2025

Summary

29/10/2018
N/A
Yes i
Medium
6.5

ALPINE-CVE-2018-18778: ACME mini_httpd before 1.30 lets remote users read arbitrary files. Affects mini_httpd versions < 1.30-r0. Fixed in 1.30-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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

mini_httpd is a lightweight HTTP server designed for simplicity and efficiency, often used in embedded systems and small web applications. It provides basic web serving capabilities and is known for its minimal resource footprint. However, a vulnerability identified as CVE-2018-18778 allows remote users to read arbitrary files, posing a significant security risk.

Vulnerability Detail

The vulnerability arises from improper access controls in mini_httpd versions prior to 1.30. This flaw allows unauthorized remote users to exploit the server and read sensitive files on the host system. The potential ramifications include exposure of confidential information, which could lead to further attacks or data breaches. The vulnerability has a CVSS score of 6.5, indicating a medium severity level.

How To Fix

Minimum fixed version

1.30-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, you can restrict access to sensitive files by configuring the server to deny access to specific directories or files. This can be done by modifying the server's configuration file to include rules that prevent unauthorized access.

Conclusion

The CVE-2018-18778 vulnerability in mini_httpd poses a significant risk by allowing unauthorized file access. It is crucial to update to version 1.30-r0 or later to mitigate this risk. For those unable to update immediately, implementing access restrictions can serve as a temporary measure.

See every vulnerability recorded for mini_httpd →

Share this vulnerability

FAQ

CVE-2018-18778 is a vulnerability in mini_httpd that allows remote users to read arbitrary files on the server.

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

The risks include unauthorized access to sensitive files, which could lead to data breaches and further exploitation of the server.

Yes, the patched version of mini_httpd is 1.30-r0, which addresses this vulnerability.

If an immediate update is not possible, consider implementing access restrictions in the server configuration as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for mini_httpd.

How To Fix

Minimum fixed version

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