CVE-2024-38365
Last modified
CVE-2024-38365 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. btcd is an alternative full node bitcoin implementation written in Go (golang). The btcd Bitcoin client (versions 0.10 to 0.24) did not correctly re-implement Bitcoin Core's "FindAndDelete()" functionality. EPSS estimates a 1.02% chance of exploitation in the next 30 days.
Description
btcd is an alternative full node bitcoin implementation written in Go (golang). The btcd Bitcoin client (versions 0.10 to 0.24) did not correctly re-implement Bitcoin Core's "FindAndDelete()" functionality. This logic is consensus-critical: the difference in behavior with the other Bitcoin clients can lead to btcd clients accepting an invalid Bitcoin block (or rejecting a valid one). This consensus failure can be leveraged to cause a chain split (accepting an invalid Bitcoin block) or be exploited to DoS the btcd nodes (rejecting a valid Bitcoin block). An attacker can create a standard transaction where FindAndDelete doesn't return a match but removeOpCodeByData does making btcd get a different sighash, leading to a chain split. Importantly, this vulnerability can be exploited remotely by any Bitcoin user and does not require any hash power. This is because the difference in behavior can be triggered by a "standard" Bitcoin transaction, that is a transaction which gets relayed through the P2P network before it gets included in a Bitcoin block. `removeOpcodeByData(script []byte, dataToRemove []byte)` removes any data pushes from `script` that contain `dataToRemove`. However, `FindAndDelete` only removes exact matches. So for example, with `script = "<data> <data||foo>"` and `dataToRemove = "data"` btcd will remove both data pushes but Bitcoin Core's `FindAndDelete` only removes the first `<data>` push. This has been patched in btcd version v0.24.2. Users are advised to upgrade. There are no known workarounds for this issue.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Btcd Project | Btcd | >= 0.10.0, < 0.24.2 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-38365?
How severe is CVE-2024-38365?
How do I fix CVE-2024-38365?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-38358Wasmer is a web assembly (wasm) Runtime supporting WASIX, WA…2.9
- CVE-2024-38359The Lightning Network Daemon (lnd) - is a complete implement…6.5
- CVE-2024-38360Discourse is an open source platform for community discussio…4.9
- CVE-2024-38361Spicedb is an Open Source, Google Zanzibar-inspired permissi…5.3
- CVE-2024-38363Airbyte is a data integration platform for ELT pipelines. Ai…8.5
- CVE-2024-38364DSpace is an open source software is a turnkey repository ap…2.6
- CVE-2024-38366trunk.cocoapods.org is the authentication server for the Coa…10
- CVE-2024-38367trunk.cocoapods.org is the authentication server for the Coa…9.6
- CVE-2024-38368trunk.cocoapods.org is the authentication server for the Coa…9.3
- CVE-2024-38369XWiki Platform is a generic wiki platform offering runtime s…4.3
- CVE-2024-3837Use after free in QUIC in Google Chrome prior to 124.0.6367.…8.8
- CVE-2024-38370GLPI is a free asset and IT management software package. Sta…7.5
Are you affected by CVE-2024-38365?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
