CVE-2025-4218 Details
Description
A vulnerability was found in handrew browserpilot up to 0.2.51. It has been declared as critical. Affected by this vulnerability is the function GPTSeleniumAgent of the file browserpilot/browserpilot/agents/gpt_selenium_agent.py. The manipulation of the argument instructions leads to code injection. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used.
A critical code injection vulnerability has been identified in Handrew Browserpilot versions through 0.2.51. The issue arises in the GPTSeleniumAgent class, specifically within the __run_compiled_instructions function. The vulnerability is caused by the exec() function being used to execute the instructions parameter, which is sourced from the InstructionCompiler, without proper validation. This flaw allows attackers to inject malicious Python code that could be executed in the context of the running program, potentially leading to unauthorized access to system resources, data leakage, or complete system compromise.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 5, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/handrew/browserpilot/issues/20 | CISA-ADP | ExploitIssue Tracking |
| https://github.com/handrew/browserpilot/issues/20 | [email protected] | ExploitIssue Tracking |
| https://github.com/handrew/browserpilot/issues/20#issue-2999815850 | [email protected] | Exploit |
| https://vuldb.com/?ctiid.307195 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.307195 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.562383 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| andrewhhan browserpilot | <= 0.2.51 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2025 | Initial Analysis | [email protected] |
| May 5, 2025 | CVE Modified | CISA-ADP |
| May 2, 2025 | New CVE Received | [email protected] |