{"id":7943,"date":"2019-01-21T03:53:25","date_gmt":"2019-01-21T03:53:25","guid":{"rendered":"https:\/\/nsfocusglobal.com\/?p=7943"},"modified":"2026-04-17T18:07:55","modified_gmt":"2026-04-17T18:07:55","slug":"thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide","status":"publish","type":"post","link":"https:\/\/nsfocusglobal.com\/pt-br\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/","title":{"rendered":"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide"},"content":{"rendered":"<p><!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\"><br \/>\n<html><body><\/p>\n<h2><strong><a name=\"_Toc535485835\"><\/a>1 Vulnerability Overview<\/strong><\/h2>\n<p>Recently, ThinkPHP 5.0-5.0.23 was found to have a remote code execution (RCE) vulnerability. The NSFOCUS Falcon Team carried out tests and found that ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* were also prone to this vulnerability, which could be triggered in both Linux and Windows systems.<!--more--><\/p>\n<p>This vulnerability occurs because the method in the Request class does not properly handle user-controlled data. Overriding variables, an attacker could invoke any functions in the Request class. Crafting a request, he or she can overwrite the attribute value of the Request class. All related users should stay wary and take precautions as soon as possible.<\/p>\n<p>The test result is as follows:<\/p>\n<p><strong><a href=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-1.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-7945 alignnone\" src=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-1.jpg\" alt=\"Red circular no entry sign with a white horizontal bar.\" width=\"773\" height=\"315\" srcset=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-1.jpg 773w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-1-300x122.jpg 300w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-1-768x313.jpg 768w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/a><br \/>\n<\/strong><\/p>\n<h2><strong><a name=\"_Toc535485836\"><\/a>2 Scope of Impact<\/strong><\/h2>\n<p>Affected Versions<\/p>\n<ul>\n<li>ThinkPHP &lt; 5.0.24<\/li>\n<li>ThinkPHP &lt; 5.1.32<\/li>\n<li>ThinkPHP 5.2.*<\/li>\n<\/ul>\n<p>Unaffected Versions<\/p>\n<ul>\n<li>ThinkPHP 5.0.24<\/li>\n<li>ThinkPHP 5.1.32<\/li>\n<\/ul>\n<h2><strong><a name=\"_Toc535485837\"><\/a>3 Vulnerability Check<\/strong><\/h2>\n<h3><a name=\"_Toc535485838\"><\/a>3.1 Version Check<\/h3>\n<p>Use a text editor to open <strong>thinkphp\\base.php<\/strong> and then you can find the version number of the current framework from the section of code on constant definitions.<\/p>\n<p><a href=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-2.jpg\"><img decoding=\"async\" class=\"size-full wp-image-7946 alignnone\" src=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-2.jpg\" alt=\"Red circular no entry sign with a white horizontal bar.\" width=\"812\" height=\"284\" srcset=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-2.jpg 812w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-2-300x105.jpg 300w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-2-768x269.jpg 768w\" sizes=\"(max-width: 812px) 100vw, 812px\" \/><\/a><\/p>\n<p>If the version is vulnerable, please take precautions as soon as possible to fix the vulnerability.<\/p>\n<p>In addition, from V5.1.20, ThinkPHP adds a command to show the framework version. Users can run the following command to view the framework version.<\/p>\n<p><a href=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-3.jpg\"><img decoding=\"async\" class=\"size-full wp-image-7947 alignnone\" src=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-3.jpg\" alt=\"Red circular no entry sign with a white horizontal bar.\" width=\"336\" height=\"37\" srcset=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-3.jpg 336w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-3-300x33.jpg 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n<h2><strong><a name=\"_Toc535485839\"><\/a>4 Vulnerability Protection<\/strong><\/h2>\n<h3><a name=\"_Toc535485840\"><\/a>4.1 Code Fix<\/h3>\n<ul>\n<li>ThinkPHP 5.0.*<\/li>\n<\/ul>\n<p>Users of ThinkPHP 5.0.* can fix this vulnerability by modifying code. For details, visit the following link:<\/p>\n<p>https:\/\/github.com\/top-think\/framework\/commit\/4a4b5e64fa4c46f851b4004005bff5f3196de003<\/p>\n<p>Use the editor to open \\thinkphp\\library\\think\\Request.php and locate the code in lines 525 and 526:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7948 alignnone\" src=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-4.jpg\" alt=\"Red circular no entry sign with a white horizontal bar.\" width=\"787\" height=\"277\" srcset=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-4.jpg 787w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-4-300x106.jpg 300w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-4-768x270.jpg 768w\" sizes=\"(max-width: 787px) 100vw, 787px\" \/><\/a><\/p>\n<p>Save the changes.<\/p>\n<ul>\n<li>ThinkPHP 5.1.* and 5.2.*<\/li>\n<\/ul>\n<p>Users of ThinkPHP 5.1.* and 5.2.* can fix this vulnerability by performing the following steps:<\/p>\n<p>Use the editor to open \\thinkphp\\library\\think\\Request.php and locate the method function and then change it to the following code:<\/p>\n<p><a href=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7949 alignnone\" src=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-5.jpg\" alt=\"Red circular no entry sign with a white horizontal bar.\" width=\"885\" height=\"658\" srcset=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-5.jpg 885w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-5-300x223.jpg 300w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-5-768x571.jpg 768w\" sizes=\"(max-width: 885px) 100vw, 885px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h3><a name=\"_Toc535485841\"><\/a>4.2 Deployment of Security Products<\/h3>\n<p>NSFOCUS security protection products can be used for protecting against this vulnerability. For users who have deployed NSFOCUS NIPS, they can fix this vulnerability by updating rules as follows:<\/p>\n<table width=\"529\">\n<thead>\n<tr>\n<td width=\"108\">Product<\/td>\n<td width=\"140\">ThinkPHP Version<\/td>\n<td width=\"149\">Rule Base Version<\/td>\n<td width=\"131\">Rule ID<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td rowspan=\"2\" width=\"108\">NIPS<\/td>\n<td width=\"140\">ThinkPHP 5.0.*<\/td>\n<td width=\"149\">&Acirc;&Yuml;&Acirc;&nbsp; 5.6.7.752<\/p>\n<p>&Acirc;&Yuml;&Acirc;&nbsp; 5.6.8.756<\/p>\n<p>&Acirc;&Yuml;&Acirc;&nbsp; 5.6.9.19516<\/p>\n<p>&Acirc;&Yuml;&Acirc;&nbsp; 5.6.10.17650<\/td>\n<td width=\"131\">24375<\/td>\n<\/tr>\n<tr>\n<td width=\"140\">&Acirc;&Yuml;&Acirc;&nbsp; ThinkPHP 5.1.*<\/p>\n<p>&Acirc;&Yuml;&Acirc;&nbsp; ThinkPHP 5.2.*<\/td>\n<td width=\"149\">To be released<\/td>\n<td width=\"131\">To be released<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>To update rules, visit the following link:<\/p>\n<ul>\n<li>NSFOCUS NIPS: <a href=\"http:\/\/update.nsfocus.com\/update\/listIps\">http:\/\/update.nsfocus.com\/update\/listIps<\/a><\/li>\n<\/ul>\n<h3><a name=\"_Toc535485842\"><\/a>4.3 Version Upgrade<\/h3>\n<p>New versions of 5.0.* and 5.1.* have been released to patch the vulnerability in question. Affected users are advised to upgrade to the latest versions as soon as possible. ThinkPHP 5 allows users to use Composer for installation and upgrade. Users are advised to back up applications and modified directories, open a Command Prompt window in the root directory and then execute one of the following commands.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7950 alignnone\" src=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-6.jpg\" alt=\"Red circular no entry sign with a white horizontal bar.\" width=\"552\" height=\"107\" srcset=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-6.jpg 552w, https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2019\/01\/0121-6-300x58.jpg 300w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<p>Note: If the user uses an early ThinkPHP 5 version, a compatibility problem may arise during the upgrade. In this case, it is recommended that the user perform the upgrade according to the upgrade procedure described in the official user guide. To obtain the user guide, visit the following link:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.kancloud.cn\/manual\/thinkphp5\/163239\">https:\/\/www.kancloud.cn\/manual\/thinkphp5\/163239<\/a><\/li>\n<li>https:\/\/www.kancloud.cn\/manual\/thinkphp5_1\/354155<\/li>\n<\/ul>\n<h2><strong>&Acirc;&nbsp;Appendix<\/strong><\/h2>\n<ul>\n<li>\n<h3>Statement<\/h3>\n<\/li>\n<\/ul>\n<p>This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and\/or indirect consequences and losses caused by transmitting and\/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add\/delete any information to\/from it, or use this advisory for commercial purposes without permission from NSFOCUS.<\/p>\n<ul>\n<li>\n<h3>About NSFOCUS<\/h3>\n<\/li>\n<\/ul>\n<p>NSFOCUS IB is a wholly owned subsidiary of NSFOCUS, an enterprise application and network security provider, with operations in the Americas, Europe, the Middle East, Southeast Asia and Japan. NSFOCUS IB has a proven track record of combatting the increasingly complex cyber threat landscape through the construction and implementation of multi-layered defense systems. The company&#8217;s Intelligent Hybrid Security strategy utilizes both cloud and on-premises security platforms, built on a foundation of real-time global threat intelligence, to provide unified, multi-layer protection from advanced cyber threats.<\/p>\n<p>For more information about NSFOCUS, please visit:<\/p>\n<p>https:\/\/www.nsfocusglobal.com.<\/p>\n<p>NSFOCUS, NSFOCUS IB, and NSFOCUS, INC. are trademarks or registered trademarks of NSFOCUS, Inc. All other names and trademarks are property of their respective firms.<\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 Vulnerability Overview Recently, ThinkPHP 5.0-5.0.23 was found to have a remote code execution (RCE) vulnerability. The NSFOCUS Falcon Team carried out tests and found that ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* were also prone to this vulnerability, which could be triggered in both Linux and Windows systems.<\/p>\n","protected":false},"author":1,"featured_media":7707,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[6],"tags":[443,691],"class_list":["post-7943","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-emergency-response","tag-handling-guide","tag-thinkphp-vulnerability"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide - NSFOCUS<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide - NSFOCUS\" \/>\n<meta property=\"og:description\" content=\"1 Vulnerability Overview Recently, ThinkPHP 5.0-5.0.23 was found to have a remote code execution (RCE) vulnerability. The NSFOCUS Falcon Team carried out\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"NSFOCUS\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-21T03:53:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-17T18:07:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2018\/12\/ThinkPHP.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide - NSFOCUS\" \/>\n<meta name=\"twitter:description\" content=\"1 Vulnerability Overview Recently, ThinkPHP 5.0-5.0.23 was found to have a remote code execution (RCE) vulnerability. The NSFOCUS Falcon Team carried out\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2018\/12\/ThinkPHP.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#\\\/schema\\\/person\\\/fd9ab61c9c77a81bbd870f725cc0c61d\"},\"headline\":\"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide\",\"datePublished\":\"2019-01-21T03:53:25+00:00\",\"dateModified\":\"2026-04-17T18:07:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/\"},\"wordCount\":739,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/nsfocusglobal.com\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/ThinkPHP.jpg\",\"keywords\":[\"Handling Guide\",\"ThinkPHP Vulnerability\"],\"articleSection\":[\"Emergency Response\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/\",\"url\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/\",\"name\":\"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide - NSFOCUS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/nsfocusglobal.com\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/ThinkPHP.jpg\",\"datePublished\":\"2019-01-21T03:53:25+00:00\",\"dateModified\":\"2026-04-17T18:07:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/nsfocusglobal.com\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/ThinkPHP.jpg\",\"contentUrl\":\"https:\\\/\\\/nsfocusglobal.com\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/ThinkPHP.jpg\",\"width\":505,\"height\":289,\"caption\":\"ThinkPHP logo with green and white design.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nsfocusglobal.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#website\",\"url\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/\",\"name\":\"NSFOCUS\",\"description\":\"Security Made Smart and Simple\",\"publisher\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#organization\",\"name\":\"NSFOCUS\",\"url\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/nsfocusglobal.com\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/logo-ns.png\",\"contentUrl\":\"https:\\\/\\\/nsfocusglobal.com\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/logo-ns.png\",\"width\":248,\"height\":36,\"caption\":\"NSFOCUS\"},\"image\":{\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/#\\\/schema\\\/person\\\/fd9ab61c9c77a81bbd870f725cc0c61d\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d3dc987908fc59791d261b1006d84eb931d15287261476b9384e690ed0c568de?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d3dc987908fc59791d261b1006d84eb931d15287261476b9384e690ed0c568de?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d3dc987908fc59791d261b1006d84eb931d15287261476b9384e690ed0c568de?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/nsfocusglobal.com\"],\"url\":\"https:\\\/\\\/nsfocusglobal.com\\\/pt-br\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide - NSFOCUS","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"pt_BR","og_type":"article","og_title":"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide - NSFOCUS","og_description":"1 Vulnerability Overview Recently, ThinkPHP 5.0-5.0.23 was found to have a remote code execution (RCE) vulnerability. The NSFOCUS Falcon Team carried out","og_url":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/","og_site_name":"NSFOCUS","article_published_time":"2019-01-21T03:53:25+00:00","article_modified_time":"2026-04-17T18:07:55+00:00","og_image":[{"url":"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2018\/12\/ThinkPHP.jpg","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_title":"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide - NSFOCUS","twitter_description":"1 Vulnerability Overview Recently, ThinkPHP 5.0-5.0.23 was found to have a remote code execution (RCE) vulnerability. The NSFOCUS Falcon Team carried out","twitter_image":"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2018\/12\/ThinkPHP.jpg","twitter_misc":{"Escrito por":"admin","Est. tempo de leitura":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/#article","isPartOf":{"@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/"},"author":{"name":"admin","@id":"https:\/\/nsfocusglobal.com\/pt-br\/#\/schema\/person\/fd9ab61c9c77a81bbd870f725cc0c61d"},"headline":"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide","datePublished":"2019-01-21T03:53:25+00:00","dateModified":"2026-04-17T18:07:55+00:00","mainEntityOfPage":{"@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/"},"wordCount":739,"commentCount":0,"publisher":{"@id":"https:\/\/nsfocusglobal.com\/pt-br\/#organization"},"image":{"@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2018\/12\/ThinkPHP.jpg","keywords":["Handling Guide","ThinkPHP Vulnerability"],"articleSection":["Emergency Response"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/","url":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/","name":"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide - NSFOCUS","isPartOf":{"@id":"https:\/\/nsfocusglobal.com\/pt-br\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/#primaryimage"},"image":{"@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2018\/12\/ThinkPHP.jpg","datePublished":"2019-01-21T03:53:25+00:00","dateModified":"2026-04-17T18:07:55+00:00","breadcrumb":{"@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/#primaryimage","url":"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2018\/12\/ThinkPHP.jpg","contentUrl":"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2018\/12\/ThinkPHP.jpg","width":505,"height":289,"caption":"ThinkPHP logo with green and white design."},{"@type":"BreadcrumbList","@id":"https:\/\/nsfocusglobal.com\/thinkphp-5-0-5-0-23-5-1-0-5-1-31-and-5-2-remote-code-execution-vulnerability-handling-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nsfocusglobal.com\/"},{"@type":"ListItem","position":2,"name":"ThinkPHP 5.0-5.0.23, 5.1.0-5.1.31, and 5.2.* Remote Code Execution Vulnerability Handling Guide"}]},{"@type":"WebSite","@id":"https:\/\/nsfocusglobal.com\/pt-br\/#website","url":"https:\/\/nsfocusglobal.com\/pt-br\/","name":"NSFOCUS","description":"Security Made Smart and Simple","publisher":{"@id":"https:\/\/nsfocusglobal.com\/pt-br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nsfocusglobal.com\/pt-br\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/nsfocusglobal.com\/pt-br\/#organization","name":"NSFOCUS","url":"https:\/\/nsfocusglobal.com\/pt-br\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/nsfocusglobal.com\/pt-br\/#\/schema\/logo\/image\/","url":"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2024\/08\/logo-ns.png","contentUrl":"https:\/\/nsfocusglobal.com\/wp-content\/uploads\/2024\/08\/logo-ns.png","width":248,"height":36,"caption":"NSFOCUS"},"image":{"@id":"https:\/\/nsfocusglobal.com\/pt-br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/nsfocusglobal.com\/pt-br\/#\/schema\/person\/fd9ab61c9c77a81bbd870f725cc0c61d","name":"admin","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/d3dc987908fc59791d261b1006d84eb931d15287261476b9384e690ed0c568de?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d3dc987908fc59791d261b1006d84eb931d15287261476b9384e690ed0c568de?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d3dc987908fc59791d261b1006d84eb931d15287261476b9384e690ed0c568de?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/nsfocusglobal.com"],"url":"https:\/\/nsfocusglobal.com\/pt-br\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/posts\/7943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/comments?post=7943"}],"version-history":[{"count":0,"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/posts\/7943\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/media\/7707"}],"wp:attachment":[{"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/media?parent=7943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/categories?post=7943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsfocusglobal.com\/pt-br\/wp-json\/wp\/v2\/tags?post=7943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}