JLSEC-2026-1609: Buffer Overflow
Python 3.x through 3.9.1 has a buffer overflow in PyCArgrepr in ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input, as demonstrated by a 1e300 argument to cdouble.fromparam. This occurs because sprintf is used unsafely.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Python_jllto a version that resolves this vulnerability.Fixed in 3.8.8+0
Event History
Frequently Asked Questions
Which applications are realistically exposed to remote code execution?
Python applications are exposed when they accept attacker-controlled floating-point input and pass it through ctypes in a path that reaches c_double.from_param or the affected PyCArg_repr code. The issue is demonstrated with a 1e300 argument.
Does exploitation require authentication or local access?
No. The provided vector indicates network attack access, low attack complexity, and no authentication requirement. Exploitation still depends on the application accepting untrusted floating-point values in the affected ctypes usage path.
How can I determine whether my deployment is affected?
Check whether the bundled Python runtime is Python 3.x through 3.9.1 and whether the application uses ctypes with untrusted floating-point inputs, particularly c_double.from_param. The affected component is _ctypes/callproc.c.
What can be done if the runtime cannot be updated immediately?
Prevent untrusted floating-point values from reaching ctypes conversion paths that invoke c_double.from_param, and reject or constrain unusually large floating-point inputs such as 1e300.