Critical File Read Vulnerability in mini-httpd Package

mini-httpd Updated 03 Oct 2025

Summary

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

UBUNTU-CVE-2018-18778: ACME mini_httpd before 1.30 lets remote users read arbitrary files. Affects mini-httpd versions < 1.19-9.3ubuntu0.1~esm1. Fixed in 1.19-9.3ubuntu0.1~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 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

The mini-httpd package is a lightweight HTTP server designed for embedded systems and low-resource environments. It is known for its simplicity and efficiency, making it a popular choice for serving static content. However, the package has been found to have a critical vulnerability that allows unauthorized remote users to read arbitrary files on the server, potentially exposing sensitive information.

Vulnerability Detail

The vulnerability, identified as CVE-2018-18778, affects versions of mini-httpd prior to 1.30. It allows remote attackers to exploit the server's configuration and access files that should be restricted. This can lead to unauthorized disclosure of sensitive data, which could be leveraged for further attacks or data breaches. The vulnerability arises from improper handling of file access permissions, making it crucial for users to address this issue promptly.

How To Fix

Minimum fixed version

1.19-9.3ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade mini-httpd

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 sensitive files by modifying the server's configuration to deny access to certain directories or files. This can be done by adding the following lines to the mini-httpd configuration file:

deny from all allow from <your_ip_address>

Conclusion

The mini-httpd package has a critical vulnerability (CVE-2018-18778) that allows unauthorized file access. Users are urged to update to the patched versions to mitigate risks. Temporary workarounds can be implemented, but updating is the best long-term solution.

See every vulnerability recorded for mini-httpd →

Share this vulnerability

FAQ

CVE-2018-18778 is a vulnerability in the mini-httpd package that allows remote users to read arbitrary files, potentially exposing sensitive information.

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

The vulnerability can lead to unauthorized access to sensitive files, which may result in data breaches or further exploitation of the server.

Yes, patched versions of the mini-httpd package are available for Ubuntu Pro users. It is recommended to update to the latest version.

Vulert monitors and alerts for open-source vulnerabilities in software using a manifest file like package-lock.json. It helps developers ensure their applications are secure.

Related vulnerabilities

Recent vulnerabilities recorded for mini-httpd.

How To Fix

Minimum fixed version

1.19-9.3ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-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