Skip to main content
Vulnerability Database/CVE-2026-113728

CVE-2026-113728: Bulwark Webmail DNS Rebinding Vulnerability

CVE-2026-113728 is a DNS rebinding vulnerability in Bulwark Webmail that allows attackers to access internal HTTP responses through hostname manipulation. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-113728 Overview

CVE-2026-113728 is a Server-Side Request Forgery (SSRF) vulnerability in Bulwark Webmail, a self-hosted webmail client for Stalwart Mail Server. Versions prior to 1.9.2 are affected. The unauthenticated POST /api/fetch-ical endpoint validates a caller-supplied hostname with a single DNS lookup, then passes the URL to a separate fetch call that performs its own lookup. An attacker who controls authoritative DNS can return a public address during validation and rebind the hostname to a loopback, private, link-local, or cloud metadata address at connection time. The same check-then-fetch pattern existed in authenticated JMAP login and TOTP token-exchange flows.

Critical Impact

Remote unauthenticated attackers can coerce the server to fetch and return up to 10 MB of internal HTTP or HTTPS responses, including cloud metadata credentials and internal services.

Affected Products

  • Bulwark Webmail versions prior to 1.9.2
  • /api/fetch-ical unauthenticated endpoint
  • Authenticated JMAP login and TOTP token-exchange flows

Discovery Timeline

  • 2026-10-20 - CVE-2026-113728 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-113728

Vulnerability Analysis

The vulnerability [CWE-918] is a classic DNS rebinding Server-Side Request Forgery. Bulwark Webmail validates URLs by resolving the hostname and checking whether the result is a public IP address. The URL is then handed to fetch, which performs its own independent DNS resolution for the socket connection. This check-then-fetch race window allows an attacker-controlled authoritative DNS server to return different answers for the two lookups.

The unauthenticated /api/fetch-ical route reads up to 10 MB of the response body and returns it to the caller. This turns the SSRF into a read primitive against internal HTTP and HTTPS services. Affected assets include cloud instance metadata endpoints such as 169.254.169.254, loopback-bound admin consoles, Kubernetes APIs, and private-network services.

Root Cause

The isPublicHttpUrl guard function performed hostname validation independently from the subsequent fetch operation. No shared resolution state existed between the two phases, so the IP address observed during validation was not pinned for the connection phase.

Attack Vector

The attacker hosts an authoritative DNS zone with a very low TTL. The attacker submits a URL pointing at that hostname to /api/fetch-ical. During validation, the DNS server returns a public IP. Immediately after, the DNS server returns an internal address such as 127.0.0.1 or 169.254.169.254. The server connects to the internal target and returns the response body to the attacker.

typescript
// Patch: app/api/fetch-ical/route.ts
 import { NextRequest, NextResponse } from 'next/server';
-import { isPublicHttpUrl } from '@/lib/security/url-guard';
+import { getStalwartCredentials } from '@/lib/stalwart/credentials';
+import { DisallowedUrlError, fetchPublicUrl, type PublicFetchResponse } from '@/lib/security/url-guard';
 
 const MAX_RESPONSE_SIZE = 10 * 1024 * 1024; // 10MB
 const FETCH_TIMEOUT_MS = 15000;

Source: GitHub Commit 3288589. The fix replaces the pre-flight isPublicHttpUrl check with fetchPublicUrl, which pins the resolved IP at connect time and raises DisallowedUrlError when a disallowed address is observed.

Detection Methods for CVE-2026-113728

Indicators of Compromise

  • Outbound DNS queries from the Bulwark Webmail host to attacker-controlled domains with abnormally low TTL values.
  • Server-initiated HTTP connections to 127.0.0.0/8, 169.254.169.254, 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16 originating from the webmail process.
  • POST /api/fetch-ical requests from unauthenticated sources immediately followed by egress to internal IP ranges.
  • Access log entries referencing cloud metadata paths such as /latest/meta-data/ sourced from the webmail server.

Detection Strategies

  • Alert on repeated calls to /api/fetch-ical, /api/auth/totp-token-exchange, and JMAP login endpoints from a single external source.
  • Correlate DNS resolution results for hostnames submitted to the webmail API against the destination IP of the subsequent connection; flag mismatches.
  • Deploy egress filtering telemetry to log any attempt by the webmail service account to reach RFC1918, link-local, or metadata addresses.

Monitoring Recommendations

  • Enable verbose logging on reverse proxies in front of Bulwark Webmail and ship logs to a centralized analytics platform.
  • Monitor for sudden spikes in response sizes from fetch endpoints approaching the 10 MB cap.
  • Baseline normal outbound destinations for the webmail host and alert on deviations.

How to Mitigate CVE-2026-113728

Immediate Actions Required

  • Upgrade Bulwark Webmail to version 1.9.2 or later without delay.
  • Restrict egress from the webmail host so it cannot reach loopback, link-local, RFC1918, or cloud metadata addresses.
  • Rotate any cloud instance credentials or IMDS-accessible secrets if exploitation is suspected.
  • Audit access logs for prior invocations of /api/fetch-ical from unauthenticated sources.

Patch Information

The fix is available in Bulwark Webmail 1.9.2. Technical details are documented in GHSA-24w9-8r42-8jwm and the remediation commit. The patch introduces fetchPublicUrl, which pins the resolved IP at connect time to eliminate the DNS rebinding window.

Workarounds

  • Place Bulwark Webmail behind an egress proxy that enforces an allowlist of permitted external destinations.
  • Enforce IMDSv2 with hop-limit of 1 on AWS instances to block IMDS access from containerized workloads.
  • Block /api/fetch-ical at the reverse proxy for unauthenticated requests until the patch is applied.
bash
# Example iptables egress hardening for the Bulwark Webmail service user (uid 1500)
iptables -A OUTPUT -m owner --uid-owner 1500 -d 127.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner 1500 -d 169.254.0.0/16 -j REJECT
iptables -A OUTPUT -m owner --uid-owner 1500 -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner 1500 -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner 1500 -d 192.168.0.0/16 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.