Incorrect Authorization Affecting bitcoin/bitcoin package, versions [0.12.0,]


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.3% (70th 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 Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-BITCOINBITCOIN-3003850
  • published26 Jan 2022
  • disclosed13 May 2021
  • creditUnknown

Introduced: 13 May 2021

CVE-2021-31876  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

There is no fixed version for bitcoin/bitcoin.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization. Bitcoin Core 0.12.0 through 0.21.1 does not properly implement the replacement policy specified in BIP125, which makes it easier for attackers to trigger a loss of funds, or a denial of service attack against downstream projects such as Lightning network nodes. An unconfirmed child transaction with nSequence = 0xff_ff_ff_ff, spending an unconfirmed parent with nSequence <= 0xff_ff_ff_fd, should be replaceable because there is inherited signaling by the child transaction. However, the actual PreChecks implementation does not enforce this. Instead, mempool rejects the replacement attempt of the unconfirmed child transaction.

CVSS Scores

version 3.1