Impact
This vulnerability allows specially crafted requests to bypass authentication, affecting all SOCKS inbounds with user authentication.
Patches
Update to sing-box 1.4.5 or 1.5.0-rc.5 and later versions.
Workarounds
Don't expose the SOCKS5 inbound to insecure environments.
References:- https://github.com/SagerNet/sing-box/security/advisories/GHSA-r5hm-mp3j-285g
- https://nvd.nist.gov/vuln/detail/CVE-2023-43644
- https://github.com/SagerNet/sing-box/commit/9891fd672f5da9f20f59a1693271a946727f49e2
- https://github.com/SagerNet/sing-box/releases/tag/v1.4.5
- https://github.com/SagerNet/sing/commit/5b05b5c147d9650e8accb4441e216c72a61f4859
- https://github.com/advisories/GHSA-r5hm-mp3j-285g