Race Condition Affecting github.com/btcsuite/btcd/txscript package, versions <0.24.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMBTCSUITEBTCDTXSCRIPT-6808763
  • published5 May 2024
  • disclosed5 May 2024
  • creditGuido Vranken

Introduced: 5 May 2024

CVE-2024-34478  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade github.com/btcsuite/btcd/txscript to version 0.24.0 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition due to the incorrect implementation of consensus rules as outlined in BIP 68 and BIP 112, specifically by treating the transaction version as a signed integer instead of unsigned. This misinterpretation can lead to a chain split and potential loss of funds by creating a discrepancy in the network consensus.

CVSS Scores

version 3.1