# CVE-2024-34478: btcd susceptible to consensus failures

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2024-05-05T00:00:00.000Z
- Modified: 2026-06-17T07:33:30.000Z
- Also known as: GHSA-3jgf-r68h-xfqm, GO-2024-2818
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- btcd btcd: before 0.24.0
- github.com/btcsuite/btcd (Go): before 0.24.0
- btcd_project btcd: before 0.24.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: rating Medium

## 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> (fix, web)
- <https://github.com/btcsuite/btcd/commit/253b688c68b89eca7eb75d4d5443dbdbc928db3c> (web)
- <https://github.com/btcsuite/btcd> (package)
- <https://pkg.go.dev/vuln/GO-2024-2818> (web)

## Sources

- CVE List: [CVE-2024-34478](https://www.cve.org/CVERecord?id=CVE-2024-34478), CVE Terms of Use, modified 2024-08-07
- GitHub Advisory Database: [GHSA-3jgf-r68h-xfqm](https://github.com/advisories/GHSA-3jgf-r68h-xfqm), CC-BY-4.0, modified 2024-08-07
- Go Vulnerability Database: [GO-2024-2818](https://pkg.go.dev/vuln/GO-2024-2818), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2024-34478](https://nvd.nist.gov/vuln/detail/CVE-2024-34478), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-34478 · Whole record: https://cve.day/CVE-2024-34478.json · Rebuilt by cve.day 2026-11-25T22:58:39.942Z
