GitHub Advisory Database
GHSA-r5hm-mp3j-285g
sing-box vulnerable to improper authentication in the SOCKS inbound
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/sagernet/sing-box | All versions before 1.4.5 (fixed in 1.4.5) |
| Go | github.com/sagernet/sing-box | From 1.5.0-beta.1 before 1.5.0-rc.5 (fixed in 1.5.0-rc.5) |
| Go | github.com/sagernet/sing | All versions before 0.2.12-0.20230925092853-5b05b5c147d9 (fixed in 0.2.12-0.20230925092853-5b05b5c147d9) |
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/commit/5b05b5c147d9650e8accb4441e216c72a61f4859
- https://github.com/SagerNet/sing-box
- https://github.com/SagerNet/sing-box/releases/tag/v1.4.5