|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-12-08 17:53 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2018-12-08 17:53 UTC] cmb@php.net
[2018-12-16 01:03 UTC] stas@php.net
-Assigned To:
+Assigned To: stas
[2018-12-16 01:19 UTC] stas@php.net
[2018-12-30 02:01 UTC] stas@php.net
[2018-12-30 02:12 UTC] stas@php.net
-CVE-ID:
+CVE-ID: needed
[2018-12-30 08:50 UTC] hanno at hboeck dot de
[2019-01-07 08:09 UTC] stas@php.net
-PHP Version: 7.2.12
+PHP Version: 5.6.39
[2019-01-07 08:10 UTC] stas@php.net
[2019-01-07 08:10 UTC] stas@php.net
-Status: Verified
+Status: Closed
[2019-01-07 08:19 UTC] stas@php.net
[2019-01-07 08:19 UTC] stas@php.net
[2019-01-07 08:20 UTC] stas@php.net
[2019-01-07 08:20 UTC] stas@php.net
[2019-01-07 08:20 UTC] stas@php.net
[2019-01-07 08:20 UTC] stas@php.net
[2019-01-07 08:21 UTC] stas@php.net
[2019-01-07 08:21 UTC] stas@php.net
[2019-01-07 13:17 UTC] cmb@php.net
[2019-02-22 22:06 UTC] stas@php.net
-CVE-ID: needed
+CVE-ID: 2019-9020
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ Invalid input to the function xmlrpc_decode() can lead to an invalid memory access (heap out of bounds read). To see this php needs to be compiled with address sanitizer and USE_ZEND_ALLOC=0 needs to be set, otherwise PHP's memory allocator will hide the bug. Test script: --------------- $a=xmlrpc_decode(base64_decode("PD94bWwgdmVyc2lvbmVuY29kaW5nPSJJU084ODU5NyKkpKSkpKSkpKSkpKSkpKSkpKSkpKSk")); Expected result: ---------------- No memory safety violations. Actual result: -------------- Address Sanitizer reports an error: ==27114==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60b00008d528 at pc 0x000000439739 bp 0x7fffb217fad0 sp 0x7fffb217f278 READ of size 25 at 0x60b00008d528 thread T0 #0 0x439738 in __interceptor_strlen (/r/php/php+0x439738) #1 0x1614386 in format_converter /f/php/php-7.2.12/main/snprintf.c:997:15 #2 0x1614386 in strx_printv /f/php/php-7.2.12/main/snprintf.c:1252 #3 0x16104af in ap_php_snprintf /f/php/php-7.2.12/main/snprintf.c:1297:2 #4 0x15e19ab in xml_elem_parse_buf /f/php/php-7.2.12/ext/xmlrpc/libxmlrpc/xml_element.c:724:14 #5 0x15e3830 in XMLRPC_REQUEST_FromXML /f/php/php-7.2.12/ext/xmlrpc/libxmlrpc/xmlrpc.c:808:3 #6 0x15c4f7b in decode_request_worker /f/php/php-7.2.12/ext/xmlrpc/xmlrpc-epi-php.c:763:13 #7 0x15c4f7b in zif_xmlrpc_decode /f/php/php-7.2.12/ext/xmlrpc/xmlrpc-epi-php.c:818 #8 0x1bc7c08 in ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER /f/php/php-7.2.12/Zend/zend_vm_execute.h:617:2 #9 0x1980f8c in execute_ex /f/php/php-7.2.12/Zend/zend_vm_execute.h:59739:7 #10 0x1981875 in zend_execute /f/php/php-7.2.12/Zend/zend_vm_execute.h:63776:2 #11 0x17be1d1 in zend_eval_stringl /f/php/php-7.2.12/Zend/zend_execute_API.c:1083:4 #12 0x17beb0f in zend_eval_stringl_ex /f/php/php-7.2.12/Zend/zend_execute_API.c:1124:11 #13 0x17beb0f in zend_eval_string_ex /f/php/php-7.2.12/Zend/zend_execute_API.c:1135 #14 0x1d01706 in do_cli /f/php/php-7.2.12/sapi/cli/php_cli.c:1044:8 #15 0x1cfee22 in main /f/php/php-7.2.12/sapi/cli/php_cli.c:1407:18 #16 0x7f659b60c4ea in __libc_start_main (/lib64/libc.so.6+0x244ea) #17 0x423dc9 in _start (/r/php/php+0x423dc9) 0x60b00008d528 is located 0 bytes to the right of 104-byte region [0x60b00008d4c0,0x60b00008d528) allocated by thread T0 here: #0 0x4ce2b3 in __interceptor_malloc (/r/php/php+0x4ce2b3) #1 0x172646f in __zend_malloc /f/php/php-7.2.12/Zend/zend_alloc.c:2829:14 #2 0x1724cdd in _emalloc /f/php/php-7.2.12/Zend/zend_alloc.c:2429:11 #3 0x13d51d5 in zend_string_alloc /f/php/php-7.2.12/Zend/zend_string.h:134:36 #4 0x13d51d5 in php_base64_decode_ex /f/php/php-7.2.12/ext/standard/base64.c:136 #5 0x13d6282 in zif_base64_decode /f/php/php-7.2.12/ext/standard/base64.c:238:11 #6 0x1bc7c08 in ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER /f/php/php-7.2.12/Zend/zend_vm_execute.h:617:2 #7 0x1980f8c in execute_ex /f/php/php-7.2.12/Zend/zend_vm_execute.h:59739:7 #8 0x1981875 in zend_execute /f/php/php-7.2.12/Zend/zend_vm_execute.h:63776:2 #9 0x17be1d1 in zend_eval_stringl /f/php/php-7.2.12/Zend/zend_execute_API.c:1083:4 #10 0x17beb0f in zend_eval_stringl_ex /f/php/php-7.2.12/Zend/zend_execute_API.c:1124:11 #11 0x17beb0f in zend_eval_string_ex /f/php/php-7.2.12/Zend/zend_execute_API.c:1135 #12 0x1d01706 in do_cli /f/php/php-7.2.12/sapi/cli/php_cli.c:1044:8 #13 0x1cfee22 in main /f/php/php-7.2.12/sapi/cli/php_cli.c:1407:18 #14 0x7f659b60c4ea in __libc_start_main (/lib64/libc.so.6+0x244ea) #15 0x423dc9 in _start (/r/php/php+0x423dc9)