Description (CNA)
Memos' webhook dispatch function safeDialContext (internal/webhook/webhook.go) resolves the target hostname via net.DefaultResolver.LookupHost and validates the resulting IPs against reserved ranges, but then dials net.JoinHostPort(host, port) using the original hostname rather than the already-validated IP address.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| usememos / memos | affected 0 through 0.29.1 |
CWE
CWE-367
References
- https://github.com/usememos/memos
- https://github.com/usememos/memos/blob/main/internal/webhook/webhook.go
ADP enrichment
No English description supplied.
No references supplied.