Code injection in PyBioNetGen via parameter expressions
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-95.
Summary
PyBioNetGen 0.8.7 contains a code injection flaw in ParameterBlock.add_item() and ModelBlock.add_item() where parameter expressions are passed to sympy.sympify(), which evaluates them as Python code (CWE-95). An attacker who supplies a crafted BNG-XML model file with Python code in a Parameter expr or value attribute can run code as the user who loads it with bionetgen.bngmodel().
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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().
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
The sources list no fixed version for PyBioNetGen.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Timeline
- 2026-11-25 Threatist record created from CVE-2026-136922
- 2026-11-25 Alias added: GHSA-4c2x-whwm-xj85
References
Patch 2
Sources
- CVE-2026-136922 · CVE Program
- CVE-2026-136922 · NVD
- FIRST EPSS
- GHSA-4c2x-whwm-xj85 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences