CVE-2013-10005 Infinite loop in github.com/btcsuite/go-socks
An infinite loop in the go-socks library causes a stack overflow and program crash, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2013-10005?
CVE-2013-10005 is a high-severity denial of service vulnerability in github.com/btcsuite/go-socks, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The RemoteAddr and LocalAddr methods on the returned net.Conn may call themselves, leading to an infinite loop which will crash the program due to a stack overflow.
Weakness: CWE-835
Which versions are affected by CVE-2013-10005?
6 open source packages ship an affected version, including github.com/btcsuite/go-socks and github.com/btcsuitereleases/go-socks. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/btcsuite/go-socks Go | All versions | 0.0.0-20130808000456-233bccbb1abe |
github.com/btcsuite/go-socks Go | All versions | 0.0.0-20130808000456-233bccbb1abe |
github.com/btcsuite/go-socks Go | All versions | 0.0.0-20130808000456-233bccbb1abe |
github.com/btcsuitereleases/go-socks Go | All versions | 0.0.0-20130808000456-233bccbb1abe |
github.com/btcsuitereleases/go-socks Go | All versions | 0.0.0-20130808000456-233bccbb1abe |
github.com/btcsuitereleases/go-socks Go | All versions | 0.0.0-20130808000456-233bccbb1abe |
Products include Socks5 Project Socks5.
How do I fix CVE-2013-10005?
Upgrade github.com/btcsuite/go-socks to 0.0.0-20130808000456-233bccbb1abe or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2013-10005 being exploited?
There is no known exploitation of CVE-2013-10005 in the wild and no public exploit code.
Sources
Also known as GHSA-gxgj-xjcw-fv9p, GO-2020-0024.