httpx Ruby gemに信頼できないデータのデシリアライズによる脆弱性 遠隔でコードを実行されるおそれ
Summary
httpx Ruby gemの1.9.0では、JSON応答の解析でOjのオブジェクトモードが使われ、応答内容によって任意のRubyクラスのインスタンスが生成されるおそれがあります。適切なガジェットチェーンがあれば遠隔からコードを実行される可能性があり、CVSSは8.5です。修正版の1.9.1に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
httpx Ruby gemの1.9.0では、JSON応答の解析でOjのオブジェクトモードが使われ、応答内容によって任意のRubyクラスのインスタンスが生成されるおそれがあります。適切なガジェットチェーンがあれば遠隔からコードを実行される可能性があり、CVSSは8.5です。修正版の1.9.1に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| os85httpx |
≥ 1.9.0, < 1.9.1→ 1.9.1 |
1.9.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-129784 ruby-httpx No fixed version in this record
Original description The description as published by the source.
The httpx Ruby gem parses JSON response bodies through its transcoder layer. HTTPX::Response#json delegates to Transcoder::JSON.decode, and when the oj gem is loaded and multi_json is absent, the decoder falls back to json_load, which calls Oj.load(response.to_s) with no mode option. Oj.load defaults to :object mode, in which a response document can allocate any already-loaded Ruby class ("^o":"ClassName") and set its instance variables, or resolve a class or module reference ("^c":"Name"). An attacker who controls, or can influence, the URL an application fetches with HTTPX.get(url).json therefore controls object instantiation in the victim process. With a matching gadget chain, this issue can potentially cause remote code execution. Affects httpx 1.9.0; fixed in 1.9.1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- package gitlab.com
- patch github.com
- patch github.com
- patch gitlab.com
- web rubygems.org
- web github.com
- web github.com