GHSA-r5hm-mp3j-285g
sing-box vulnerable to improper authentication in the SOCKS inbound
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Go | github.com/sagernet/sing-box | < 1.4.5 | 1.4.5 |
| Go | github.com/sagernet/sing-box | >= 1.5.0-beta.1, < 1.5.0-rc.5 | 1.5.0-rc.5 |
| Go | github.com/sagernet/sing | < 0.2.12-0.20230925092853-5b05b5c147d9 | 0.2.12-0.20230925092853-5b05b5c147d9 |
Details
As written in the advisory (Markdown source, shown as plain text).
### 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
External links from the advisory. They lead to third-party sites.
- 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