CVE-2024-38365Btcd Project Btcd
Alta 8.1
Seguir: esta CVE · Btcd Project · Btcd Project Btcd Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 49
- CVSS 3.1
- 8.1
- EPSS
- 1.2% probabilidad de explotación en 30 días · percentil 69
- Requiere autenticación
- Sí
- Publicada
- 11 oct 2024
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-670
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Btcd.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Go | github.com/btcsuite/btcd |
< 0.24.2-beta.rc1 |
0.24.2-beta.rc1 |
go get github.com/btcsuite/btcd@v0.24.2-beta.rc1 |
| Go | github.com/btcsuite/btcd |
< 0.24.2-beta.rc1 |
0.24.2-beta.rc1 |
go get github.com/btcsuite/btcd@v0.24.2-beta.rc1 |
Según OSV / GitHub Advisories (GHSA-27vh-h6mc-q6g8, GO-2024-3189). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| btcd_project | btcd | ≥ 0.10.0 < 0.24.2 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- delvingbitcoin.org Issue Tracking
- github.com Patch
- github.com Release Notes
- github.com Vendor Advisory