Impact
The vulnerability is an eval injection flaw in the default lf.query Python protocol of Google langfun. An attacker who can send a prompt to the model can cause the system to generate a Python expression that is then evaluated with the process’s full permissions. This flaw provides remote unauthenticated execution of arbitrary Python code, classified under CWE-1188 (Improper Neutralization of Directives) and CWE-95 (Improper Neutralization of Code).
Affected Systems
Google langfun versions earlier than 0.1.2 that expose the default lf.query protocol are affected. Any deployment that has enabled this protocol and is still running a pre‑0.1.2 release is at risk.
Risk and Exploitability
The CVSS score of 9.2 marks this issue as critical. The EPSS score is not provided, so the current exploitation likelihood cannot be quantified. The bug is exploitable remotely without any authentication, simply by sending a crafted prompt that prompts the model to return code evaluable by the host. Because the evaluation occurs without a sandbox, the attacker can gain control of the host process and potentially compromise confidentiality, integrity, and availability.
OpenCVE Enrichment