CVE-2026-129784 Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode
설명
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.
영향 받는 제품 제품 1개
-
해결 버전 있음
os85
httpx
영향 받는 버전
- 1.9.0 이상 1.9.1 미만
해결 버전
- 1.9.1 이상
참고 자료 7건
- github.com https://github.com/HoneyryderChuck/httpx (새 창)
- github.com https://github.com/HoneyryderChuck/httpx/commit/eeb785d3250eee9379494fb62c37c315a31e327c (새 창)
- github.com https://github.com/HoneyryderChuck/httpx/releases/tag/v1.9.1 (새 창)
- github.com https://github.com/ohler55/oj/blob/develop/pages/Security.md (새 창)
- gitlab.com https://gitlab.com/os85/httpx (새 창)
- gitlab.com https://gitlab.com/os85/httpx/-/commit/eeb785d3250eee9379494fb62c37c315a31e327c (새 창)
- rubygems.org https://rubygems.org/gems/httpx (새 창)