mirror of
https://github.com/0xMarcio/cve.git
synced 2026-05-13 05:54:46 +02:00
25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
### [CVE-2021-3177](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3177)
|
|

|
|

|
|

|
|
|
|
### Description
|
|
|
|
Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr 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 c_double.from_param. This occurs because sprintf is used unsafely.
|
|
|
|
### POC
|
|
|
|
#### Reference
|
|
- https://bugs.python.org/issue42938
|
|
- https://news.ycombinator.com/item?id=26185005
|
|
- https://www.oracle.com//security-alerts/cpujul2021.html
|
|
- https://www.oracle.com/security-alerts/cpujan2022.html
|
|
- https://www.oracle.com/security-alerts/cpujul2022.html
|
|
- https://www.oracle.com/security-alerts/cpuoct2021.html
|
|
|
|
#### Github
|
|
- https://github.com/TAPAKAH20/python_dos_demo
|
|
- https://github.com/leveryd/leveryd
|
|
- https://github.com/tianocore/edk2-edkrepo
|
|
|