Arbitrary Command Injection Affecting bitcoinrb package, versions <1.12.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-BITCOINRB-15265182
  • published11 Feb 2026
  • disclosed10 Feb 2026
  • creditUnknown

Introduced: 10 Feb 2026

New CVE NOT AVAILABLE CWE-77  (opens in a new tab)

How to fix?

Upgrade bitcoinrb to version 1.12.0 or higher.

Overview

bitcoinrb is an implementation of Bitcoin Protocol for Ruby

Affected versions of this package are vulnerable to Arbitrary Command Injection via the send function in rpc/http_server.rb, which runs as part of the experimental SPV node feature. An attacker can execute arbitrary system commands by supplying malicious values for the command and args parameters in a POST request.

PoC

curl -X POST http://127.0.0.1:18443 -H 'Content-Type: application/json' -d '{"method":"eval","params":["File.write(\"/tmp/pwned\",\"owned\")"]}'

CVSS Base Scores

version 4.0
version 3.1