Advisories

Panda3D <= 1.10.16 Deploy-Stub Stack Exhaustion via Unbounded alloca()

Go Back
severity
medium
date
Affecting
  • Panda3D <= 1.10.16

CWE
  • CWE-457 Use of Uninitialized Variable
  • CWE-789 Memory Allocation with Excessive Size Value
CVSS
6.9
CVSS V4 Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Credit
Ron Edgerson
Description
Panda3D versions up to and including 1.10.16 deploy-stub contains a denial of service vulnerability due to unbounded stack allocation. The deploy-stub executable allocates argv_copy and argv_copy2 using alloca() based directly on the attacker-controlled argc value without validation. Supplying a large number of command-line arguments can exhaust stack space and propagate uninitialized stack memory into Python interpreter initialization, resulting in a reliable crash and undefined behavior.