CVE Professor
/
All CVEs
CVE-2026-140044

CVE-2026-140044 — Alpine Linux Busybox-extras-openrc — CWE-552

HIGH CVSS 8.7 Shodan

Alpine Linux busybox-extras-openrc 1.38.0-r8 starts BusyBox httpd without an explicit document root or reduced-privilege user when HTTPD_OPTS is unset. In the validated standard OpenRC boot path, the service runs as UID/GID 0 with / as its working directory and listens on port 80. Because BusyBox uses its current directory as the default HTTP home, an unauthenticated network client can retrieve URL-addressable files and special filesystem objects that the root process can open.

Alpine Linux busybox-extras-openrc 1.38.0-r8 starts BusyBox httpd without an explicit document root or reduced-privilege user when HTTPD_OPTS is unset. In the validated standard OpenRC boot path, the service runs as UID/GID 0 with / as its working directory and listens on port 80. Because BusyBox uses its current directory as the default HTTP home, an unauthenticated network client can retrieve URL-addressable files and special filesystem objects that the root process can open.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity None VI:N
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
Scope X S:X
AI Security Analysis & Remediation

🎯 What is this vulnerability?

ItemDetail
CVECVE‑2026‑140044
CWECWE‑552 – Files or Directories Accessible to Wrong Party
Affected componentbusybox-extras-openrc package (BusyBox httpd) shipped with Alpine Linux 1.38.0‑r8

| Root cause | The OpenRC init script that starts busybox httpd does not enforce a document‑root (-h) nor a non‑root user (-u/-g) when the environment variable HTTPD_OPTS is unset. In the default OpenRC boot path the service is launched as UID/GID 0, with working directory “/” and listening on TCP/80. BusyBox httpd uses its current working directory as the HTTP document root when -h is omitted. Consequently, any file that the root process can read (including /etc/shadow, private SSH keys, /proc/* entries, etc.) is directly addressable via an HTTP GET request. No authentication, no input validation, and no privilege‑dropping step is performed.

Why the CVSS vector looks the way it does

  • AV:N – The attacker can reach the service over the network (no local access required).
  • AC:L – Exploitation requires only a single HTTP request (low complexity).
  • AT:N – No additional tools or time‑based conditions are needed.
  • PR:N – No privileges are required on the target.
  • UI:N – No user interaction is needed.
  • VC:H – Confidentiality impact is high because arbitrary root‑owned files can be disclosed.
  • All other impact metrics are None (no integrity or availability impact is mandated by the spec, though DoS is possible).
  • The flaw is a classic mis‑configuration / missing hardening issue rather than a code‑level buffer overflow or injection bug.


    ⚡ Attack Chain

    Below is a realistic, step‑by‑step exploitation path that an unauthenticated remote attacker could follow.

    1. Discovery & Reconnaissance

    StepActionTools / Commands
    1.1Identify the OS and package version.nmap -sV -p80 <target> → often reveals “BusyBox httpd 1.38.0”. <br>Or grab the HTTP Server header (curl -I http://<target>).
    1.2Verify the service is running as root.nmap -p80 --script http-headers <target> (look for “Server: BusyBox httpd”). <br>Or, if you have limited internal access, ps -efgrep httpd on the host.
    1.3Check whether HTTPD_OPTS is set in the OpenRC configuration.ssh into the host (if you have any foothold) and inspect /etc/conf.d/httpd – the file will be empty or missing the HTTPD_OPTS line on vulnerable installations.
    1.4Enumerate files that are readable by root and useful to an attacker.Common targets: /etc/passwd, /etc/shadow, /root/.ssh/id_rsa, /var/lib/mysql/*.cnf, /proc/self/environ.
    Note: If you do not have any internal access, steps 1.1–1.3 can be performed purely from the outside using banner grabbing and OS fingerprinting. The presence of a root‑owned BusyBox httpd listening on port 80 is a strong indicator of vulnerability.

    2. Exploitation

    Because BusyBox httpd serves files relative to its current directory (/), any absolute path can be requested directly.

    2.1 Simple file retrieval (illustrative)

    # Retrieve /etc/shadow (illustrative – the exact path may be blocked by kernel hardening)
    curl -s http://<target>/etc/shadow -o shadow.txt

    2.2 Retrieve a private SSH key (illustrative)

    curl -s http://<target>/root/.ssh/id_rsa -o id_rsa

    2.3 Enumerate the entire filesystem (recursive download)

    # Using wget to mirror the root directory (illustrative)
    wget -r -np -nH --cut-dirs=0 -e robots=off http://<target>/
    Important: The above URLs are illustrative; the actual path depends on what the attacker wishes to read. Because the server’s document root is “/”, any absolute path works.

    2.4 Optional: Exploit special files

    # Read the process environment of the httpd daemon
    curl -s http://<target>/proc/$(pidof httpd)/environ -o environ.bin

    If the environment contains secrets (e.g., API keys), they are now exposed.

    3. Post‑Exploitation

    GoalHow the attacker proceeds
    Credential harvestingThe attacker now possesses /etc/shadow. Offline cracking (e.g., john or hashcat) yields local passwords.
    Privilege escalationWith a valid local password, the attacker can log in via SSH (if the host allows password auth) and obtain full root access.
    Key extractionPrivate SSH keys (/root/.ssh/id_rsa) enable password‑less SSH into any other host where the key is trusted.
    Configuration theftFiles such as /var/lib/mysql/*.cnf expose database credentials, enabling lateral movement into backend services.
    Further footholdThe attacker can upload a malicious script (if CGI is enabled) or replace a static file (e.g., a web admin page) to achieve persistent web‑shell access.
    Denial‑of‑serviceRepeated large‑file downloads can saturate the network or exhaust the host’s I/O, causing a DoS.

    🌍 Real‑World Impact

    CIAImpact
    Confidentiality (VC:H)High – Arbitrary root‑owned files are disclosed. This includes password hashes, private keys, configuration files, and any proprietary data stored on the filesystem.
    Integrity (VI:N)None – The vulnerability does not directly allow modification of files (unless the attacker can write via CGI, which is not guaranteed).
    Availability (VA:N)None by design, but an attacker can cause a resource‑exhaustion DoS by repeatedly downloading large files.

    Practical consequences

  • Credential leakage – Compromise of local accounts, SSH keys, and service credentials.
  • Lateral movement – Extracted database credentials or API tokens enable pivoting to other services.
  • Compliance violations – Exposure of /etc/shadow or private keys breaches PCI‑DSS, GDPR, HIPAA, etc.
  • Supply‑chain risk – Alpine Linux is widely used in containers; a compromised container image can propagate the flaw to many downstream services.

  • 🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    ActionDetails
    Upgrade the packageThe upstream Alpine maintainers released a fix in busybox‑extras‑openrc 1.38.0‑r9 (or later). Upgrade with: <br>apk upgrade busybox-extras-openrc <br>or reinstall the fixed version: <br>apk add --upgrade busybox-extras-openrc=1.38.0-r9
    Verify the fixAfter upgrade, inspect /etc/init.d/httpd – it now checks that HTTPD_OPTS is non‑empty and defaults to a safe configuration (-h /var/www -u nobody -g nogroup). Confirm the service starts with a non‑root UID/GID.

    2. Immediate Workarounds (if patch cannot be applied immediately)

    WorkaroundImplementation
    Explicitly set a safe document root and drop privilegesEdit /etc/conf.d/httpd (or create it if missing) and add: <br>``bash\nHTTPD_OPTS="-h /var/www -u nobody -g nogroup"\n` <br>Then restart the service: rc-service httpd restart.
    Disable the BusyBox httpd serviceIf the host does not need an HTTP server, run: <br>rc-update del httpd default <br>rc-service httpd stop.
    Network‑level blockingBlock inbound TCP/80 on the host firewall (iptables, nftables, or cloud‑security‑group). Example (iptables): <br>iptables -A INPUT -p tcp --dport 80 -j DROP`.
    Run the service inside a container with a read‑only root filesystemThis limits the set of files that can be exposed even if the service runs as root.

    3. Detection – Log & Telemetry Indicators

    IndicatorExample
    HTTP GET requests for system filesGET /etc/shadow HTTP/1.1 <br>GET /root/.ssh/id_rsa HTTP/1.1
    **Requests for /proc/* entriesGET /proc/1/environ HTTP/1.1
    Unusual User‑Agent strings (often automated scanners)User-Agent: curl/7.88.1 or User-Agent: sqlmap/1.6.0
    High‑volume GETs of large files** (potential DoS)Multiple GET /usr/lib/* within a short interval.
    Process list showing httpd running as UID 0ps -efgrep httpd → root 1234 1 0 12:34 ? 00:00:00 /bin/busybox httpd -f -v
    Open socket on 0.0.0.0:80 owned by rootnetstat -tlnpgrep ':80' → tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1234/busybox

    SIEM rule (pseudo‑logic)

    IF (destination_port == 80) AND
       (http_method == GET) AND
       (uri matches "^/(etc|root|proc|var|usr)/") AND
       (source_ip NOT IN internal_trusted_range)
    THEN alert "Possible BusyBox httpd file disclosure (CVE‑2026‑140044)"

    4. Hardening Recommendations

  • Run services with least privilege – Never start a network daemon as root unless absolutely required.
  • Define a static document root – Even for lightweight servers, -h /var/www (or an empty directory) prevents accidental exposure.
  • Apply defense‑in‑depth firewall rules – Block unused ports at the host and perimeter level.
  • Regularly audit init scripts – Ensure OpenRC, systemd, or other init systems do not omit security‑related options.
  • Container‑image hygiene – Scan Docker/OCI images for the presence of busybox httpd and enforce a non‑root user in the image manifest.

  • ⚠️ Urgency

  • CVSS 8.7 (HIGH) – High confidentiality impact, network‑accessible, no authentication required.
  • Exploit complexity – Low; a single HTTP request is sufficient.
  • Public awareness – The vulnerability was publicly disclosed on 1 December 2026; no known public exploit frameworks exist yet, but the low barrier makes a rapid development of exploit scripts likely.
  • CISA KEV – Not yet listed, but the lack of a KEV entry does not reduce risk; many organizations still run the vulnerable package in production.
  • Patch priority: Critical / Immediate.

  • Enterprise environments should schedule the upgrade within 24 hours and apply the “set HTTPD_OPTS” workaround in the meantime.

  • Container‑orchestrated workloads should rebuild images with the patched package or replace BusyBox httpd with a hardened web server (e.g., nginx or caddy).


Delaying remediation leaves the system exposed to wholesale credential theft and potential lateral movement across the network.


Bottom line: The vulnerable OpenRC start‑up of BusyBox httpd on Alpine Linux 1.38.0‑r8 effectively turns the host into a root‑owned file server on port 80. The fix is trivial (upgrade or set HTTPD_OPTS), but the impact of inaction is severe data leakage. Deploy the patch or the documented workaround now.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Alpine Linux busybox-extras-openrc"
CVSS Score
8.7 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-552
Affected Products (1)
Alpine Linux:busybox-extras-openrc
Related CVEs
8.2
CVE-2026-136372
Joomla Extension - joomboost.com - Invoice PDFs stored in publicly accessible folder in JoomInvoice extension
8.2
CVE-2025-15261
Ladybird before commit 3a9a8e38f85 allows a local HTML document opened with a file URL to read arbitrary files
3.7
CVE-2026-143976
HireZoot (formerly WP Job Openings) 1.6 before 4.2.1 contains an information disclosure vulnerability that all
7.5
CVE-2026-142043
In JetBrains Ktor before 3.6.2, 3.5.3 information disclosure was possible via servlet web resources
6.3
CVE-2026-82192
Joomla Extension - rsjoomla.com - Unauthenticated access to uploaded files in RSForm!Pro extension < 3.5.0 - F
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s