CVE DatabaseCVE-2019-16278
한국어 권고문 →
CVE-2019-162789.8/CRITICALCISA KEVCWE-22CWE-22

Nostromo nhttpd <= 1.9.6 Directory Traversal Remote Code Execution (RCE) Vulnerability (CVE-2019-16278) Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
nazgul
Affected Components
nostromo_nhttpd
Published Date
2019-10-14
CVSS v3.1
9.8
CRITICAL
EPSS (30d)
99.0%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Nostromo nhttpd web server versions 1.9.6 and prior

Impact

Unauthenticated remote attackers can execute arbitrary system commands with the privileges of the web server process via crafted HTTP requests

Mitigation

Immediately upgrade to the patched version (1.9.7 or later), or restrict web server execution privileges and block anomalous directory traversal paths

Affected Products & Version Scope

All versions of Nostromo nhttpd up to and including 1.9.6

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Download, compile, and install the patched version (1.9.7 or later) from the official Nostromo distribution channel.

bash
# Download and extract the secure version
wget http://www.nazgul.ch/dev/nostromo-1.9.7.tar.gz
tar -zxvf nostromo-1.9.7.tar.gz
cd nostromo-1.9.7

# Compile and install
make
sudo make install

# Restart service and verify version
sudo systemctl restart nhttpd
/usr/local/sbin/nhttpd -V

2. Temporary Workaround & Hardening Configuration

If patching cannot be applied immediately, deploy a reverse proxy (such as Nginx) in front of nhttpd to filter out directory traversal patterns.

nginx
# Nginx reverse proxy mitigation rule
server {
    listen 80;
    server_name your_domain.com;

    location / {
        # Block requests containing encoded traversal sequences
        if ($request_uri ~* '(\.\./|\.%2f%2f|%2e%2e%2f)') {
            return 403;
        }
        proxy_pass http://127.0.0.1:8080;
    }
}

3. Log Audit & IoC Verification Commands

Use the following commands to inspect web server access logs for directory traversal and shell execution attempts.

bash
# Scan nhttpd access logs for traversal and RCE patterns
grep -Ei '(\.\./|%2e%2e%2f|%2fbin/sh|%2fbin/bash)' /var/log/nhttpd/access_log

# Verify the running nhttpd binary version
strings /usr/local/sbin/nhttpd | grep -E 'nostromo|nhttpd'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Due to active exploitation in the wild, immediately upgrade Nostromo nhttpd to version 1.9.7 or higher, or disable the service.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability exists in the http_verify function of the Nostromo nhttpd web server, which fails to properly validate HTTP request paths. While nhttpd attempts to filter standard directory traversal sequences (../), it fails to adequately handle encoded characters such as %2f (slash) or specific control character segments. This bypass allows attackers to traverse outside the designated document root directory.

2. Exploitation Mechanics & Attack Scenario

An attacker sends a crafted HTTP POST or GET request containing directory traversal sequences (e.g., /..%2f..%2f..%2f..%2fbin/sh) in the URI. The http_verify function fails to detect the encoded traversal payload, allowing the request to bypass path validation. Combined with nhttpd's CGI execution mechanism, this allows the attacker to directly invoke system shells like /bin/sh and pass arbitrary commands via the HTTP request body, resulting in Remote Code Execution (RCE).

3. Infrastructure & Business Impact

With a CVSS score of 9.8 and its inclusion in the CISA KEV catalog, this vulnerability is actively exploited in the wild. Successful exploitation allows complete system compromise under the context of the web server process (typically daemon or root). This can lead to credential theft, lateral movement within the internal network, deployment of backdoors, or ransomware installation, posing a critical threat to business continuity.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2019-16278)

FAQ

Q1. How critical is CVE-2019-16278 and is it actively exploited in the wild?

CVE-2019-16278 is rated CVSS 9.8 (CRITICAL) with a 30-day EPSS exploitation probability of 99.0%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2019-16278?

Primary impacted vendors include nazgul across nostromo_nhttpd. Scope summary: All versions of Nostromo nhttpd up to and including 1.9.6

Q3. What temporary mitigations or workarounds exist for CVE-2019-16278 before patching?

[Mitigation] Immediately upgrade to the patched version (1.9.7 or later), or restrict web server execution privileges and block anomalous directory traversal paths Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2019-16278

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (nazgul)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2019-16278 Nostromo nhttpd <= 1.9.6 Directory Traversal Remote Code Execution (RCE) Vulnerability (CVE-2019-16278) Analysis and Mitigation Guide (CVSS 9.8) - Patch & Workaround | CVE Pulse