CVE-2026-40070 json
bsv-sdk and bsv-wallet persist unverified certifier signatures in acquire_certificate (direct and issuance paths)
published 2026-04-09 7 mo ago modified 2026-10-26 13 d ago also GHSA-hc36-c89j-5f4j , EUVD-2026-20996
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 3%
- public exploits
- 0
- none known
Summary
BSV Ruby SDK is the Ruby SDK for the BSV blockchain. From 0.3.1 to before 0.8.2, BSV::Wallet::WalletClient#acquire_certificate persists certificate records to storage without verifying the certifier's signature over the certificate contents. In acquisition_protocol: 'direct', the caller supplies all certificate fields (including signature:) and the record is written to storage verbatim. In acquisition_protocol: 'issuance', the client POSTs to a certifier URL and writes whatever signature the response body contains, also without verification. An attacker who can reach either API (or who controls a certifier endpoint targeted by the issuance path) can forge identity certificates that subsequently appear authentic to list_certificates and prove_certificate.
Patch / fix
- rubygems bsv-sdk 0.8.2
- rubygems bsv-wallet 0.3.4
- sgbett bsv-wallet 0.3.4
- sgbett bsv_ruby_sdk 0.8.2
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/sgbett/bsv-ruby-sdk/security/advisories/GHSA-hc36-c89j-5f4j referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | bsv-sdk | >=0.3.1, <0.8.2 |
0.8.2 |
| rubygems | bsv-wallet | >=0.1.2, <0.3.4 |
0.3.4 |
Affected products
- sgbett bsv-ruby-sdk
- sgbett bsv-sdk
- sgbett bsv-wallet
Classification
- Weakness
-
- CWE-347 Improper Verification of Cryptographic Signature
References
-
github.com
/sgbett/bsv-ruby-sdk/pull/306
web, issue-tracking
-
github.com
/sgbett/bsv-ruby-sdk/commit/4992e8a265fd914a7eeb0405c69d1ff0122a84cc
web, release-notes
-
github.com
/sgbett/bsv-ruby-sdk/security/advisories/GHSA-hc36-c89j-5f4j
exploit, web, patch, vendor-advisory
-
github.com
/sgbett/bsv-ruby-sdk/issues/305
web, issue-tracking
-
brc.dev
/52
web, not-applicable
-
nvd.nist.gov
/vuln/detail/CVE-2026-40070
advisory
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/bsv-sdk/CVE-2026-40070.yml
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/bsv-wallet/CVE-2026-40070.yml
web
-
github.com
/sgbett/bsv-ruby-sdk
package
Sources
- CVE List CVE-2026-40070
- GitHub Advisory GHSA-hc36-c89j-5f4j
- NVD CVE-2026-40070
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.