Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted BNG-XML model file to victim
-
ExploitVictim loads model via bionetgen.bngmodel()
-
ExecutionMalicious Parameter expr reaches sympy.sympify() eval
-
ImpactExecute arbitrary Python as the user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to load an attacker-supplied BioNetGen model file (BNG-XML, parsed into Parameter/Model blocks) through bionetgen.bngmodel(); the malicious payload must be placed in a Parameter 'expr' or 'value' attribute, which ParameterBlock.add_item()/ModelBlock.add_item() pass unvalidated to sympy.sympify(). No authentication or special privileges are needed (PR:N), but the attack is NOT remote or automatic: it is local (AV:L) and gated on user interaction (UI:P) - a user must actively open the untrusted model file. Limiting factors for defenders: it only triggers for users who process third-party/untrusted model files, affects only PyBioNetGen 0.8.7, and is fixed by the vendor patch (PR #119) which routes expressions through an ast allowlist (fold_numeric) before SymPy. |
| Impact | This is a code-injection flaw (CWE-95) in PyBioNetGen 0.8.7 where attacker-controlled Parameter 'expr'/'value' strings from a BNG-XML model file flow into sympy.sympify(), which internally calls Python eval, yielding arbitrary code execution as the loading user. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H, score 8.5) is internally consistent with the description: exploitation is local and requires a victim to load a malicious model (UI:P), but needs no privileges or authentication (PR:N) and fully compromises confidentiality, integrity and availability of the user's session. The signals point to a genuine but non-wormable issue: impact is high, yet the local vector plus required user interaction keep it out of mass-exploitation territory - consistent with the vendor's 'this_week' decision label rather than an emergency/act_now. No EPSS score and no CISA KEV status are provided, so exploitation is not confirmed in the wild; the VulnCheck advisory and GitHub issue #118 describe the technique but the input does not mark any reference as confirmed working exploit code. Net: a real priority to patch for anyone who loads third-party BNG-XML/BNGL models, but not a remote, unauthenticated, network-facing emergency. Missing data to note: no EPSS probability and no explicit POC-confirmation field were provided. |
| Exploit ScenarioDerived | An attacker publishes or sends a BioNetGen model file (BNG-XML/BNGL) whose Parameter expr or value attribute embeds a Python payload instead of a numeric expression. When a researcher opens it with bionetgen.bngmodel(), add_item() passes the string to sympy.sympify(), whose underlying eval runs the payload as the victim's user. The VulnCheck advisory and issue #118 describe this technique, though the input does not confirm packaged working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Code injection in PyBioNetGen 0.8.7 allows an attacker-supplied BNG-XML model file to execute arbitrary Python as the user who loads it, because Parameter 'expr' and 'value' strings are passed unfiltered into sympy.sympify(), which internally reaches Python eval. The attack is local (AV:L) and gated on user interaction: a victim must actively open a third-party model file through bionetgen.bngmodel(), with no authentication or privileges required (PR:N), yielding high confidentiality, integrity and availability impact on that user's account. No public exploit code was identified at the time of analysis and there is no CISA KEV entry; the issue is fixed upstream by PR #119 (commit cbfa145), which replaces the sympify call with an AST allowlist, and it is prioritised as 'this_week' by VulnCheck-sourced triage.
RemediationAI
Apply the upstream fix: merge PR #119 (https://github.com/RuleWorld/PyBioNetGen/pull/119) or, preferably, cherry-pick commit cbfa145819765a9eb758bc4086576951d9a2e16b, which adds bionetgen/core/utils/safe_expr.py with the ast allowlist and routes the affected add_item() paths through fold_numeric() instead of sympy.sympify(); this is upstream fix availability via PR/commit and a tagged release containing it was not independently confirmed in the data, so pin to the commit or verify the release notes before relying on a package version. Patched behaviour means non-numeric or out-of-allowlist expressions are retained as literal text rather than folded to numbers, which can change results for models that relied on sympify evaluating unusual expressions. Where patching is not immediately possible: treat BNG-XML as executable content, so only load first-party model files with bionetgen.bngmodel() and inspect Parameter 'expr'/'value' attributes of third-party models, rejecting any that contain call syntax, dunder or underscore-prefixed names, imports or attribute access, with the trade-off that legitimate expressions using functions outside the numeric math set will be refused; and run parsing of untrusted models in a sandboxed low-privilege process or container with no network access and read-only filesystem mounts, accepting the operational overhead as the cost of containment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PyBioNetGen is the Python interface to the BioNetGen modelling framework; it parses BNGL and BNG-XML model files into block objects (ParameterBlock, ModelBlock) in bionetgen/modelapi/blocks.py. In 0.8.7 the add_item() methods of those blocks took the string held in an item's 'value'/'expr' attribute and handed it directly to sympy.sympify() in order to fold constant expressions such as arithmetic and powers (BNGL writes '^' for exponentiation). sympy.sympify on a plain string ultimately ends in Python eval, so any text in the model file was attacker-controlled code; the surrounding bare try/except swallowed errors but did not prevent execution. This is CWE-95 (eval injection) rather than a memory-safety or logic bug. The upstream fix introduces bionetgen/core/utils/safe_expr.py, which parses the expression with ast in eval mode and only permits numeric constants, names that do not start with an underscore, the binary operators Add/Sub/Mult/Div/Pow/BitXor, unary +/- and a fixed list of math functions (exp, ln, log, sqrt, sin/cos/tan and relatives, min/max, floor/ceiling, etc.), with a 1000-character cap; anything else, and any expression that does not fold to a number, is returned unchanged as text. The same fold_numeric helper is wired into bionetgen/network/blocks.py as well as the model-API blocks. Note the CPE string uses a wildcard product-version range while the advisory and code history scope the flaw to 0.8.7.
Know when Pybionetgen gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local because a model file must be delivered and loaded (AV:L, UI:R); no auth needed (PR:N); eval-grade code execution gives full C/I/A:H with no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
PyBioNetGen 0.8.7 contains a code injection vulnerability in ParameterBlock.add_item() and ModelBlock.add_item() that allows attackers to execute Python code by passing parameter expressions to sympy.sympify(). Attackers can supply a crafted BNG-XML model file with Python code in a Parameter expr or value attribute to execute code as the user when loaded with bionetgen.bngmodel().
Articles & Coverage 1
Executive ViewAI
A high-severity code injection vulnerability in PyBioNetGen 0.8.7 could allow an attacker to execute arbitrary code on a user's machine when they open a maliciously crafted model file, potentially compromising the user's account and data. This poses a risk to research and development teams using the tool for computational modeling, as successful exploitation could lead to data breaches, model tampering, or service disruption.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-135422
GHSA-4c2x-whwm-xj85
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB