CVE-2018-20325 json
Code injection in Danijar Definitions
published 7y ago modified 4mo ago also GHSA-v4x4-98cg-wr4g , PYSEC-2018-82 , EUVD-2018-0031
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.5%
- EPSS 3.5% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
There is a vulnerability in load() method in definitions/parser.py in the Danijar Hafner definitions package for Python. It can execute arbitrary python commands resulting in command execution.
Is CVE-2018-20325 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
3.46% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/danijar/definitions/issues/14 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | definitions | <=0.2.0 all versions |
no fix listed |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/danijar/definitions/issues/14
web, exploit, third-party-advisory, report
-
nvd.nist.gov
/vuln/detail/CVE-2018-20325
advisory
-
github.com
/advisories/GHSA-v4x4-98cg-wr4g
advisory
-
github.com
/danijar/definitions
package
-
github.com
/pypa/advisory-database/tree/main/vulns/definitions/PYSEC-2018-82.yaml
web
Sources
- CVE List CVE-2018-20325
- GitHub Advisory GHSA-v4x4-98cg-wr4g
- NVD CVE-2018-20325
- OSV PYSEC-2018-82
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.