Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
6DescriptionCVE.org
A weakness has been identified in premAI-io premsql up to 0.2.1. Affected is the function eval of the file premsql/agents/baseline/workers/followup.py. This manipulation of the argument result causes code injection. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
AnalysisAI
Remote code execution in premAI-io premsql up to version 0.2.1 allows authenticated remote attackers to achieve arbitrary code execution through code injection via manipulation of the result argument in the eval function located in premsql/agents/baseline/workers/followup.py. Publicly available exploit code exists for this vulnerability, and the vendor has not responded to early disclosure attempts, leaving affected deployments without an official patch.
Technical ContextAI
premAI-io premsql is a Python-based SQL agent library that processes and evaluates SQL-related operations. The vulnerability stems from unsafe use of the eval() function in the followup.py worker module, which is classified as CWE-94 (Improper Control of Generation of Code or Code Injection). The eval() function executes arbitrary Python code derived from user-supplied input (the result argument), bypassing any code boundary restrictions. This is a classic code injection vulnerability pattern where dynamically constructed code is executed without proper sanitization or sandboxing. The attack surface is exposed through the baseline agents workflow, which processes followup queries and results.
RemediationAI
No vendor-released patch identified at time of analysis; the vendor was contacted early but has not responded. Users of premAI-io premsql should immediately upgrade to a version greater than 0.2.1 if one becomes available, or discontinue use of the affected component until vendor updates are released. As an interim mitigation, restrict network access and authentication to the premsql agent endpoints to trusted users only, implement strict input validation on result arguments before they reach the eval function if source code modification is feasible, and monitor for suspicious code execution patterns within premsql process logs. Additional guidance may be found in VulDB records at https://vuldb.com/vuln/355388 and the public issue documentation at https://github.com/Ka7arotto/cve/blob/main/premsql-rce/issue.md.
Same weakness CWE-94 – Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-19121
GHSA-2vh4-chw9-2wfj