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-102577 Overview
CVE-2026-102577 is a Server-Side Request Forgery (SSRF) vulnerability in Moodle's URL downloader component [CWE-918]. The flaw stems from incorrect handling of IPv4-mapped IPv6 addresses inside the host-blocking logic. An authenticated remote user can submit a crafted URL that evades the blocklist and forces the Moodle server to issue requests to restricted internal destinations. This exposes internal services, metadata endpoints, and other network resources that should not be reachable from the application.
Critical Impact
Authenticated attackers can bypass Moodle's host-blocking controls and coerce the server into making arbitrary internal HTTP requests, enabling reconnaissance of internal infrastructure.
Affected Products
- Moodle Learning Management System (URL downloader component)
- Distributions tracked by Red Hat via advisory CVE-2026-102577
- Deployments referencing upstream fix MDL-88779
Discovery Timeline
- 2026-09-30 - CVE-2026-102577 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-102577
Vulnerability Analysis
Moodle's URL downloader validates destination hosts against a blocklist before issuing outbound HTTP requests. The validation logic evaluates IPv4 and IPv6 addresses independently and fails to normalize IPv4-mapped IPv6 addresses of the form ::ffff:a.b.c.d. When an attacker supplies such a URL, the blocklist check treats the address as an unrestricted IPv6 host, while the underlying network stack ultimately resolves it to the equivalent IPv4 target. This mismatch allows requests to reach hosts that administrators explicitly blocked, including RFC1918 ranges and loopback interfaces.
Exploitation requires an authenticated session with permission to invoke the URL downloader, which limits the attack to registered users. The requirement matches the CVSS attack profile of low privileges and no user interaction.
Root Cause
The root cause is inconsistent address normalization inside the host-blocking routine. IPv4-mapped IPv6 addresses are not canonicalized to their IPv4 representation before comparison against the blocklist. As a result, entries that block 127.0.0.1 or internal subnets do not match the IPv6-mapped equivalents such as [::ffff:127.0.0.1]. The upstream fix is tracked under Moodle issue MDL-88779.
Attack Vector
An authenticated user submits a URL containing an IPv4-mapped IPv6 host to any Moodle feature that consumes the URL downloader. The server performs blocklist validation, misclassifies the destination as safe, and dispatches the outbound request. The attacker receives response metadata or timing signals that reveal the presence of internal services. Typical targets include cloud instance metadata endpoints, internal APIs, and administrative interfaces bound to loopback.
Refer to the Red Hat CVE-2026-102577 Advisory and Moodle Commit Search MDL-88779 for source-level detail.
Detection Methods for CVE-2026-102577
Indicators of Compromise
- Outbound HTTP requests from Moodle web workers to loopback or RFC1918 addresses that are not part of normal application behavior.
- Web server access logs containing URLs with IPv4-mapped IPv6 hosts such as [::ffff:127.0.0.1] or [::ffff:169.254.169.254].
- Unexpected access attempts to cloud metadata endpoints originating from the Moodle application tier.
Detection Strategies
- Inspect Moodle audit logs for URL downloader invocations that reference bracketed IPv6 hosts containing ::ffff: prefixes.
- Correlate application logs with egress firewall logs to identify blocked-host bypass patterns.
- Alert on outbound requests from Moodle servers to internal IP ranges that should be unreachable per policy.
Monitoring Recommendations
- Enable egress logging on the Moodle application tier and forward events to a centralized analytics platform.
- Monitor authenticated user actions that trigger the URL downloader and baseline expected destinations.
- Track anomalous DNS resolutions and connection attempts to metadata service IPs from web application processes.
How to Mitigate CVE-2026-102577
Immediate Actions Required
- Apply the upstream Moodle patch associated with MDL-88779 to all production instances.
- Restrict outbound network access from Moodle servers using host-based or network firewalls that block RFC1918 and metadata endpoints.
- Review user roles to limit which authenticated accounts can invoke URL downloader functionality.
Patch Information
The fix is tracked upstream as MDL-88779. Review the Moodle Commit Search MDL-88779 for the corrected host-blocking logic. Distribution-specific packages are tracked in the Red Hat Bugzilla Report #2543604 and the Moodle Forum Discussion #482495.
Workarounds
- Enforce egress filtering at the network layer to block Moodle traffic to internal subnets and cloud metadata IPs.
- Deploy an outbound HTTP proxy that performs address canonicalization and rejects IPv4-mapped IPv6 destinations.
- Disable or restrict features that expose the URL downloader when patching cannot be performed immediately.
# Example iptables rules to block Moodle egress to metadata and loopback ranges
iptables -A OUTPUT -m owner --uid-owner www-data -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner www-data -d 127.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner www-data -d 10.0.0.0/8 -j REJECT
ip6tables -A OUTPUT -m owner --uid-owner www-data -d ::ffff:0:0/96 -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

