Skip to content
High 8.5

httpx Ruby gemに信頼できないデータのデシリアライズによる脆弱性 遠隔でコードを実行されるおそれ

CVE-2026-129784 First seen on SecPulse

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

PackageAffected → Fixed
os85httpx
≥ 1.9.0, < 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details