CVE-2026-136922: PyBioNetGen 0.8.7 Code Injection via sympify() of Model Parameter Expressions
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
Event History
Frequently Asked Questions
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.
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.
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.