CVE-2013-10005: Infinite loop in github.com/btcsuite/go-socks

github.com/btcsuite/go-socks Updated 02 Oct 2025

Summary

14/04/2021
Yes i
High
7.5

CVE-2013-10005: Infinite loop in github.com/btcsuite/go-socks. Affects github.com/btcsuite/go-socks versions < 0.0.0-20130808000456-233bccbb1abe. Fixed in 0.0.0-20130808000456-233bccbb1abe. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package github.com/btcsuite/go-socks is a Go implementation of the SOCKS protocol. It provides functionality for creating SOCKS proxy servers and clients. The package allows users to establish secure connections through SOCKS proxies. However, a vulnerability has been discovered in the package that can lead to an infinite loop and a stack overflow, causing the program to crash.

Vulnerability Detail

The vulnerability in github.com/btcsuite/go-socks is related to the RemoteAddr and LocalAddr methods on the returned net.Conn object. These methods may call themselves recursively, resulting in an infinite loop. This can lead to a stack overflow and cause the program to crash. The vulnerability can be exploited by an attacker to disrupt the functioning of the program and potentially execute arbitrary code.

How To Fix

Minimum fixed version

0.0.0-20130808000456-233bccbb1abe

This is the first release that contains the fix.

go get github.com/btcsuite/go-socks@v0.0.0-20130808000456-233bccbb1abe

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. Users are advised to update to a fixed version of the package as soon as possible.

Conclusion

The vulnerability in github.com/btcsuite/go-socks can lead to an infinite loop and stack overflow, causing the program to crash. Users are advised to update to a fixed version of the package to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/btcsuite/go-socks →

Share this vulnerability

FAQ

The vulnerability can lead to a stack overflow and program crash, potentially allowing an attacker to execute arbitrary code.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Gopkg.lock file and the playground will analyze it for vulnerabilities.

There are no known public exploits for this vulnerability at the moment. However, it is important to update to a fixed version to prevent potential attacks.

No, updating to a fixed version of the package is the only way to mitigate the risk associated with this vulnerability.

You can find more information about this vulnerability in the Go Vulnerability Database at https://pkg.go.dev/vuln/GO-2020-0024.

References

How To Fix

Minimum fixed version

0.0.0-20130808000456-233bccbb1abe

This is the first release that contains the fix.

go get github.com/btcsuite/go-socks@v0.0.0-20130808000456-233bccbb1abe

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.