2 lines
4.3 KiB
JSON
2 lines
4.3 KiB
JSON
{"affected":[{"affectedData":[{"product":"huggingface/transformers","vendor":"huggingface","versions":[{"lessThan":"v5.0.0rc3","status":"affected","version":"unspecified","versionType":"custom"}]}],"source":"security@huntr.dev"}],"configurations":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*","matchCriteriaId":"501E3796-D201-494C-B59D-FA598DC36738","versionEndExcluding":"5.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:huggingface:transformers:5.0.0:rc0:*:*:*:*:*:*","matchCriteriaId":"70A12094-61B0-49E7-9663-73E5B874E819","vulnerable":true},{"criteria":"cpe:2.3:a:huggingface:transformers:5.0.0:rc1:*:*:*:*:*:*","matchCriteriaId":"424574B4-B321-4D5A-BE48-95A61D9F3752","vulnerable":true},{"criteria":"cpe:2.3:a:huggingface:transformers:5.0.0:rc2:*:*:*:*:*:*","matchCriteriaId":"B3F5BCCD-1960-4809-9519-4ADDACAFB3D3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"cveTags":[],"descriptions":[{"lang":"en","value":"A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. This issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3."},{"lang":"es","value":"Una vulnerabilidad en la biblioteca HuggingFace Transformers, específicamente en la clase “Trainer”, permite la ejecución de código arbitrario. El método “_load_rng_state()” en “src/transformers/trainer.py” en la línea 3059 llama a “torch.load()” sin el parámetro “weights_only=True”. Este problema afecta a todas las versiones de la biblioteca que soportan “torchmayor o igual que 2.2” cuando se usan con versiones de PyTorch inferiores a 2.6, ya que el gestor de contexto “safe_globals()” no proporciona protección en estas versiones. Un atacante puede explotar esta vulnerabilidad suministrando un archivo de punto de control malicioso, como “rng_state.pth”, que puede ejecutar código arbitrario cuando se carga. El problema está resuelto en la versión v5.0.0rc3."}],"id":"CVE-2026-1839","lastModified":"2026-10-26T22:10:00.163","metrics":{"cvssMetricV30":[{"cvssData":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:H","version":"3.0"},"exploitabilityScore":1.0,"impactScore":5.5,"source":"security@huntr.dev","type":"Secondary"}],"cvssMetricV31":[{"cvssData":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"exploitabilityScore":1.8,"impactScore":5.9,"source":"nvd@nist.gov","type":"Primary"}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"id":"CVE-2026-1839","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","timestamp":"2026-04-07T13:27:38.099805Z","version":"2.0.3"}}]},"published":"2026-04-07T06:16:41.490","references":[{"source":"security@huntr.dev","tags":["Patch"],"url":"https://github.com/huggingface/transformers/commit/03c8082ba4594c9b8d6fe190ca9bed0e5f8ca396"},{"source":"security@huntr.dev","tags":["Exploit","Third Party Advisory"],"url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","tags":["Exploit","Third Party Advisory"],"url":"https://huntr.com/bounties/3c77bb97-e493-493d-9a88-c57f5c536485"}],"sourceIdentifier":"security@huntr.dev","vulnStatus":"Analyzed","weaknesses":[{"description":[{"lang":"en","value":"CWE-502"}],"source":"security@huntr.dev","type":"Secondary"}]}
|