CVE-2023-48699: Eval Injection in fastbots

fastbots Updated 02 Oct 2025

Summary

21/11/2023
Yes i
High
8.4

CVE-2023-48699: Eval Injection in fastbots. Affects fastbots versions < 0.1.5. Fixed in 0.1.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Fastbots is a Python package available on PyPI that provides a framework for building and running web automation bots. It allows users to define locators for web elements and perform actions on them. The package is widely used for web scraping, testing, and other automation tasks. However, a vulnerability has been discovered in fastbots that allows an attacker to inject and execute arbitrary Python code through the locators.ini locator file. This can lead to remote code execution (RCE) on the affected system.

Vulnerability Detail

The vulnerability exists in the 'locator' function in the 'page.py' file of the fastbots package. This function is responsible for loading and executing locators from the 'locators.ini' file. However, it does not properly validate the content of the file before executing it. An attacker can exploit this by modifying the 'locators.ini' file and inserting malicious Python code. When the 'locator' function is called, the injected code will be executed, potentially leading to RCE. The vulnerable code snippet is as follows:

return eval(self._bot.locator(self._page_name, locator_name))

The impact of this vulnerability is significant, as it allows an attacker to execute arbitrary code on the affected system, potentially gaining unauthorized access and control.

How To Fix

Minimum fixed version

0.1.5

This is the first release that contains the fix.

pip install --upgrade "fastbots==0.1.5"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of fastbots as soon as possible.

Conclusion

The vulnerability in fastbots allows an attacker to inject and execute arbitrary Python code, potentially leading to remote code execution. To mitigate this issue, it is crucial to upgrade to fastbots version 0.1.5 or above. There is no known workaround for this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for fastbots →

Share this vulnerability

FAQ

Fastbots is a Python package used for building and running web automation bots. It provides a framework for defining locators for web elements and performing actions on them.

The vulnerability allows an attacker to inject and execute arbitrary Python code, potentially leading to remote code execution (RCE) on the affected system. This can result in unauthorized access and control.

To fix this vulnerability, it is recommended to upgrade to fastbots version 0.1.5 or above. The fix for this issue is included in fastbots version 0.1.5.

There is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of fastbots as soon as possible.

How To Fix

Minimum fixed version

0.1.5

This is the first release that contains the fix.

pip install --upgrade "fastbots==0.1.5"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback