Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. smolagents
  4. ›
  5. CVE-2025-14931

CVE-2025-14931: Hugging Face smolagents: Unsafe deserialization in Remote Python Executor leads to RCE

December 23, 2025 (updated May 7, 2026)

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

  • github.com/advisories/GHSA-q9r5-6hrr-9ph7
  • github.com/huggingface/smolagents
  • nvd.nist.gov/vuln/detail/CVE-2025-14931
  • www.zerodayinitiative.com/advisories/ZDI-25-1143

Code Behaviors & Features

Detect and mitigate CVE-2025-14931 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.23.0

Solution

Unfortunately, there is no solution available yet.

Impact 10 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

pypi/smolagents/CVE-2025-14931.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:17:47 +0000.