CVE-2018-8097: Code Injection in Eve Package

eve Updated 02 Oct 2025

Summary

12/07/2018
Yes i
Critical
9.8

CVE-2018-8097: Eve allows execution of arbitrary code. Affects eve versions < 0.7.5. Fixed in 0.7.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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Eve package, also known as pyeve, is a Python library that provides a framework for building RESTful APIs. It is commonly used for creating web applications and services. The package allows developers to define data models and endpoints, which can be accessed and manipulated through HTTP requests. However, a vulnerability has been discovered in versions prior to 0.7.5 that allows for code injection through the 'where' parameter. This parameter is used for filtering data queries and can be exploited to execute arbitrary code.

Vulnerability Detail

The vulnerability in Eve arises from improper input validation and sanitization in the 'where' parameter of the package. By injecting malicious code into this parameter, an attacker can execute arbitrary code on the server hosting the Eve application. This can lead to various consequences, including unauthorized access to sensitive data, modification or deletion of data, and even remote code execution. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Minimum fixed version

0.7.5

This is the first release that contains the fix.

pip install --upgrade "eve==0.7.5"

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

Workaround

As a workaround, developers can manually validate and sanitize the 'where' parameter before using it in queries. This can be done by implementing input validation and sanitization functions that strip out any potentially malicious code or characters. Here is an example of how this can be achieved in Python:

def sanitize_where(where):
    # Remove any potentially malicious code or characters
    sanitized_where = where.replace('$', '')
    return sanitized_where

Conclusion

In conclusion, the Eve package prior to version 0.7.5 is vulnerable to code injection through the 'where' parameter. This can result in unauthorized code execution and other security risks. To mitigate this vulnerability, it is crucial to upgrade to version 0.7.5 or later and implement proper input validation and sanitization. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for eve →

Share this vulnerability

FAQ

The vulnerability allows for code injection, which can lead to various consequences such as unauthorized access to sensitive data, data manipulation or deletion, and remote code execution.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, the vulnerability has been fixed in version 0.7.5 of the Eve package. It is recommended to upgrade to this version or any subsequent releases to mitigate the risk.

As mentioned earlier, developers can manually validate and sanitize the 'where' parameter to prevent code injection. Implementing input validation and sanitization functions can help strip out any potentially malicious code or characters.

The CVSS score of this vulnerability is 9.8, indicating its critical severity.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0.7.5

This is the first release that contains the fix.

pip install --upgrade "eve==0.7.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