top of page
perceptive_background_267k.jpg

Memos' webhook dispatch function safeDialContext() (internal/webhook/webhook.go) resolves the target hostname via net.DefaultResolver.LookupHost() and validates…

Published:

4 August 2026 at 22:00:00

Alert date:

5 August 2026 at 14:10:56

Source:

nvd.nist.gov

Click to open the original link from this advisory

Web Technologies, Zero-Day Vulnerabilities

CVE-2026-71272 describes a Server-Side Request Forgery (SSRF) protection bypass in the Memos application's webhook dispatch function safeDialContext() located in internal/webhook/webhook.go. The vulnerability is a classic Time-of-Check/Time-of-Use (TOCTOU) race condition involving DNS rebinding. The function resolves a target hostname via net.DefaultResolver.LookupHost() and validates the resulting IP against reserved/internal ranges, but then dials the connection using the original hostname rather than the validated IP. Because net.Dialer.DialContext() performs its own independent DNS resolution, an attacker who controls DNS for the webhook hostname can serve a legitimate public IP during validation and switch to an internal IP at dial time. This allows an attacker to bypass SSRF protections and potentially access internal network resources. The fix requires dialing using the already-validated IP address rather than re-resolving the hostname.

Technical details

Mitigation steps:

Affected products:

Memos

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Disclaimer: Deze website toont informatie afkomstig van externe bronnen. Perceptive aanvaardt geen verantwoordelijkheid voor de inhoud, juistheid of volledigheid van deze informatie.

bottom of page