CVE-2026-136922
PyBioNetGen 0.8.7 contains a code injection vulnerability in ParameterBlock.add_item() and ModelBlock.add_item() that allows attackers to execute Python code b…
Impact
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().
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (RuleWorld)
| Product | Affected versions |
|---|---|
| PyBioNetGen | Version 0.8.7 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/RuleWorld/PyBioNetGen/issues/118
- https://github.com/RuleWorld/PyBioNetGen/pull/119
- https://github.com/RuleWorld/PyBioNetGen/commit/cbfa145819765a9eb758bc4086576951d9a2e16b
- https://github.com/RuleWorld/PyBioNetGen/blob/28bf351a9bbfc197e19487c26dedda683716bb64/bionetgen/modelapi/blocks.py#L257-L275
- https://www.vulncheck.com/advisories/pybionetgen-0.8.7-code-injection-via-sympify-of-model-parameter-expressions
- https://github.com/advisories/GHSA-4c2x-whwm-xj85
- https://nvd.nist.gov/vuln/detail/CVE-2026-136922