Skip to content

Conversation

whereswaldon
Copy link
Contributor

Technically loading system DLLs from relative paths with NewLazyDLL is vulnerable to DLL preloading attacks. See the warning on NewLazyDLL here [0].

[0] https://pkg.go.dev/golang.org/x/sys/windows?GOOS=windows#NewLazyDLL

We had this filed as a bug against us in Gio, and it prompted me to look through my dependency trees to try to help other people catch it.

Technically loading system DLLs from relative paths with NewLazyDLL is vulnerable to DLL preloading attacks. See the warning on NewLazyDLL here [0].

[0] https://pkg.go.dev/golang.org/x/sys/windows?GOOS=windows#NewLazyDLL
@mattn mattn merged commit 4503567 into mattn:master Jan 10, 2025
21 of 24 checks passed
@mattn
Copy link
Owner

mattn commented Jan 10, 2025

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants