CVE-2026-136922: PyBioNetGen 0.8.7 Code Injection via sympify() of Model Parameter Expressions

Published Nov 25, 2026
·
Updated

PyBioNetGen 0.8.7 contains a code injection vulnerability in ParameterBlock.additem() and ModelBlock.additem() 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().

Affected Software

1 affected component
pypi/bionetgen=0.8.7

Event History

Nov 25, 2026
CVE Published
via MITRE·02:51 PM
Data Sourced
via MITRE·02:51 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness
Event
via NVD·03:17 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Users of PyBioNetGen 0.8.7 are exposed when they load a BNG-XML model file through bionetgen.bngmodel(). The code executes with the privileges of the user loading the model.

2

What does an attacker need to exploit it?

An attacker needs to provide a crafted BNG-XML model containing Python code in a Parameter expr or value attribute and have a user load that file. The issue requires user interaction, as reflected by the UI:R vector.

3

Are all model files equally risky?

The described attack path specifically relies on Parameter expr or value attributes that are processed through sympy.sympify() in ParameterBlock.add_item() or ModelBlock.add_item(). Treat BNG-XML models from untrusted sources as potentially malicious.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203