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

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

Summary

28/12/2022
Yes i
High
7.5

CVE-2013-10005: socks Infinite Loop vulnerability. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The github.com/btcsuite/go-socks package is a Go implementation of the SOCKS protocol. It provides functionality for creating SOCKS servers and clients, allowing applications to communicate over the SOCKS proxy. The package is widely used in Go applications that require SOCKS proxy support.

Vulnerability Detail

The vulnerability identified as CVE-2013-10005 is an Infinite Loop vulnerability in the RemoteAddr and LocalAddr methods of the net.Conn returned by the github.com/btcsuite/go-socks package. When these methods are called, they may inadvertently call themselves, resulting in an infinite loop. This can lead to a stack overflow and crash the program. The vulnerability has a CVSS score of 7.5, indicating a high severity.

How To Fix

Latest published version: v0.0.0-20170105172521-4720035b7bfd as of 23 Oct 2026

go get github.com/btcsuite/go-socks@v0.0.0-20170105172521-4720035b7bfd

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

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. It is recommended to apply the fix by updating the package to a fixed version.

Conclusion

The socks Infinite Loop vulnerability in the github.com/btcsuite/go-socks package can lead to a stack overflow and program crash. It is recommended to update the package to a fixed version 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 cause a stack overflow and crash the program, leading to a denial-of-service condition. An attacker may be able to exploit this vulnerability to disrupt the functionality of affected applications.

To determine if your application is affected, you can use the Vulert Playground at Vulert Scanner. Simply upload your Gopkg.lock file to check if your application is using a vulnerable version of the github.com/btcsuite/go-socks package.

There are no known public exploits for this vulnerability at the time of this report. However, it is recommended to apply the fix as soon as possible to mitigate the risk.

No, there is no known workaround for this vulnerability. It is necessary to update the package to a fixed version.

How To Fix

Latest published version: v0.0.0-20170105172521-4720035b7bfd as of 23 Oct 2026

go get github.com/btcsuite/go-socks@v0.0.0-20170105172521-4720035b7bfd

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

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