PYSEC-2026-543

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/smolagents/PYSEC-2026-543.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-543
Aliases
Published
2026-06-29T11:50:38.792590Z
Modified
2026-07-01T20:23:05.184038Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Hugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCE
Details

Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Hugging Face smolagents. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the parsing of pickle data. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-28312.

References

Affected packages

PyPI / smolagents

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.23.0

Affected versions

0.*
0.1.0
0.1.2
0.1.3
1.*
1.0.0
1.1.0
1.2.0
1.2.1
1.2.2
1.3.0
1.4.0
1.4.1
1.5.0
1.5.1
1.6.0
1.7.0
1.8.0
1.8.1
1.9.0
1.9.1
1.9.2
1.10.0
1.11.0
1.12.0
1.13.0
1.14.0
1.15.0
1.16.0
1.16.1
1.17.0
1.18.0
1.19.0
1.20.0
1.21.0
1.21.1
1.21.2
1.21.3
1.22.0
1.23.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/smolagents/PYSEC-2026-543.yaml"