The httpx Ruby gem parses JSON response bodies through its transcoder layer.
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
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- Os85
- Product
- httpx
- CVSS v3.1
- 8.5 AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- Exploitation
- SSVC none, automatable no, impact total
- Fix
- available
- Weakness
- CWE-502
- Exposure class
- Developer platform
- NVD status
- Received
Why it ranks 38 (Notable)
- CVSS v3.1 8.5 high
- SSVC: total technical impact
- Product class: developer platform
- Fix available
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.