- Accueil
- Vulnérabilités
- CVE-2026-129784
CVE-2026-129784
Insecure deserializaiton in the httpx Ruby gem via unsafe Oj object-mode
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
os85 (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| httpx | de 1.9.0 (inclus) à 1.9.1 (exclu) |
— | CNA (éditeur ou attributeur) |
Correctif
Correctifsource officielle
Upgrade to httpx 1.9.1, which calls Oj.load with an explicit { mode: :strict } default. If upgrading is not possible, pass a safe mode at the call site (response.json(mode: :strict)), or set a safe process-wide default such as Oj.default_options = { mode: :strict } (or :rails) before any untrusted JSON is parsed. Do not rely on Oj's shipped :object default for data that arrived over the network.
Source : CNA (éditeur ou attributeur)
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Références
- https://github.com/HoneyryderChuck/httpx/commit/eeb785d3250eee9379494fb62c37c315a31e327cpatch
- https://github.com/HoneyryderChuck/httpx/releases/tag/v1.9.1patch
- https://gitlab.com/os85/httpx/-/commit/eeb785d3250eee9379494fb62c37c315a31e327cpatch
- https://github.com/HoneyryderChuck/httpxproduct
- https://rubygems.org/gems/httpxproduct
- https://github.com/ohler55/oj/blob/develop/pages/Security.mdtechnical-description
- https://gitlab.com/os85/httpxproduct
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H(CVSS 3.1, CNA:JFROG)- Faiblesse
- CWE-502 · Désérialisation