CVE-2021-31876: Medium severity bitcoin vulnerability

Published May 13, 2021
·
Updated

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 = 0xffffffff, spending an unconfirmed parent with nSequence <= 0xfffffffd, 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.

Affected Software

1 affected component
Bitcoin Bitcoin>=0.12.0<=0.21.1

Event History

May 13, 2021
CVE Published
via MITRE·09:03 PM
Data Sourced
via MITRE·09:03 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-31876?

CVE-2021-31876 is considered a high severity vulnerability due to its potential to enable fund loss and denial of service attacks.

2

How do I fix CVE-2021-31876?

To fix CVE-2021-31876, it is recommended to upgrade to a version of Bitcoin Core later than 0.21.1.

3

What software versions are affected by CVE-2021-31876?

CVE-2021-31876 affects Bitcoin Core versions 0.12.0 to 0.21.1.

4

What impact does CVE-2021-31876 have on blockchain transactions?

CVE-2021-31876 can lead to a situation where attackers exploit transaction replacement policies, risking funds and affecting services like Lightning network nodes.

5

Is CVE-2021-31876 related to BIP125?

Yes, CVE-2021-31876 involves improper implementation of the replacement policy specified in BIP125.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203