CVE-2021-31876: bitcoin Incorrect Authorization
Vulnerability summary
CVE-2021-31876 is a medium (CVSS 6.5) Incorrect Authorization vulnerability in bitcoin. EPSS estimates a 1.61% chance of exploitation in the next 30 days, higher than 75.9% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 13-05-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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 metrics
2 scores · 1 source · 2 versionsEPSS trend
Probability
1.61%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.61% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Bitcoin1 product
- bitcoin≥ 0.12.0, ≤ 0.21.1
1 vendor · 1 product
References
5 links- lists.linuxfoundation.org/pipermail/bitcoin-dev/2021-May/018893.htmlX Refsource MISCMailing ListThird Party Advisory