CVE-2024-34478
HIGH 7.5CVSS 3.1btcd susceptible to consensus failures
btcd before 0.24.0 does not correctly implement the consensus rules outlined in BIP 68 and BIP 112, making it susceptible to consensus failures. Specifically, it uses the transaction version as a signed integer when it is supposed to be treated as unsigned. There can be a chain split and loss of funds.
- Published
- 5 May 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-436
- Also known as
- GHSA-3jgf-r68h-xfqmGO-2024-2818
- Sources
- NVDJSONOSV GHSA-3jgf-r68h-xfqmJSONOSV GO-2024-2818JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | btcd_project | btcdcpe:2.3:a:btcd_project:btcd:*:*:*:*:*:*:*:* |
< 0.24.0 | 0.24.0 |
| OSV | Go | github.com/btcsuite/btcd | < 0.24.0 | 0.24.0 |
References
- https://delvingbitcoin.org/t/disclosure-btcd-consensus-bugs-due-to-usage-of-signed-transaction-version/455 · Issue Tracking, WEB
- https://github.com/btcsuite/btcd/blob/e4c88c3a3ecb1813529bf3dddc7a865bd418a6b8/blockchain/chain.go#L383C1-L392C3 · Product, WEB
- https://github.com/btcsuite/btcd/blob/e4c88c3a3ecb1813529bf3dddc7a865bd418a6b8/txscript/opcode.go#L1172C1-L1178C3 · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-34478 · ADVISORY
- https://github.com/btcsuite/btcd/pull/1981 · WEB, FIX
- https://github.com/btcsuite/btcd/commit/253b688c68b89eca7eb75d4d5443dbdbc928db3c · WEB
- https://github.com/btcsuite/btcd · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-2818 · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 5 May 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 May 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 May 2024)