CVE-2018-20325: Code injection in definitions

definitions Updated 02 Oct 2025

Summary

26/12/2018
No i
High
9.8

CVE-2018-20325: Code injection in Danijar Definitions. Affects definitions versions < 0.2.0. No fix is published. 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

The definitions package for Python, available on PyPI, is a library that provides functionality for parsing and loading definitions. It is commonly used in various Python applications. However, versions prior to 0.2.0 are vulnerable to a code injection vulnerability in the load() method of the definitions/parser.py module. This vulnerability allows an attacker to execute arbitrary Python commands, potentially leading to command execution.

Vulnerability Detail

The vulnerability originates from improper input validation in the load() method of the definitions/parser.py module. By crafting a malicious input, an attacker can inject arbitrary Python commands, which are then executed when the load() method is called. This can result in the execution of unauthorized commands with the privileges of the application or user running the vulnerable code. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the patched version of the definitions package to mitigate the risk.

Conclusion

The code injection vulnerability in the definitions package for Python can lead to the execution of arbitrary Python commands. To mitigate this risk, it is crucial to update to version 0.2.0 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for definitions →

Share this vulnerability

FAQ

This vulnerability allows an attacker to execute arbitrary Python commands, potentially leading to command execution. The impact depends on the privileges of the application or user running the vulnerable code.

There is no known exploit publicly available at this time. However, it is crucial to update to the patched version to prevent potential exploitation.

No, only versions prior to 0.2.0 are affected. It is recommended to update to version 0.2.0 or later to mitigate the vulnerability.

Yes, this vulnerability can be exploited remotely if the vulnerable code is exposed to untrusted input from external sources.

Yes, the CVSS score for this vulnerability is 9.8, indicating a critical severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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