CVE-2018-8097 Eve allows execution of arbitrary code

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code via the where parameter in the Eve Python framework.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-8097?

CVE-2018-8097 is a critical code injection vulnerability in n/a, published on 14 Mar 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

io/mongo/parser.py in Eve (aka pyeve) before 0.7.5 allows remote attackers to execute arbitrary code via Code Injection in the where parameter.

Weakness: CWE-94

Which versions are affected by CVE-2018-8097?

3 open source packages ship an affected version, including eve. It affects 1 product.

PackageAffectedFixed in
eve PyPIAll versions0.7.5
eve PyPIAll versions0.7.5
eve PyPIAll versions0.7.5

Products include Python-Eve Eve.

How do I fix CVE-2018-8097?

Upgrade eve to 0.7.5 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-8097 being exploited?

There is no known exploitation of CVE-2018-8097 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as GHSA-8jxq-75rw-fhj9, PYSEC-2018-8.

Is CVE-2018-8097 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free