REDHAT-BUG-1918168: Buffer Overflow

Published Jan 20, 2021
·
Updated

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.

Reference:

https://bugs.python.org/issue42938 https://github.com/python/cpython/pull/24239

Affected Software

1 affected component
Python Python<=3.9.1

Event History

Jan 20, 2021
Data Sourced
via Red Hat·08:45 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-1918168?

The severity of REDHAT-BUG-1918168 is critical due to the potential for remote code execution.

2

How do I fix REDHAT-BUG-1918168?

To fix REDHAT-BUG-1918168, upgrade Python to version 3.9.2 or later.

3

What causes the vulnerability in REDHAT-BUG-1918168?

The vulnerability in REDHAT-BUG-1918168 is caused by a buffer overflow in the PyCArg_repr function when handling untrusted floating-point input.

4

Which versions of Python are affected by REDHAT-BUG-1918168?

REDHAT-BUG-1918168 affects Python versions 3.9.1 and earlier.

5

Can REDHAT-BUG-1918168 be exploited remotely?

Yes, REDHAT-BUG-1918168 can be exploited remotely if the application accepts untrusted floating-point numbers as input.

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