
{"id":13758,"date":"2026-10-22T23:22:40","date_gmt":"2026-10-22T15:22:40","guid":{"rendered":"https:\/\/infernews.com\/blog\/?page_id=13758"},"modified":"2026-10-23T02:28:49","modified_gmt":"2026-10-22T18:28:49","slug":"php2shell-patch","status":"publish","type":"page","link":"https:\/\/infernews.com\/blog\/php2shell-patch\/","title":{"rendered":"PHP2Shell Ubuntu \u5b89\u5168\u5347\u7d1a (\u4e09\u5206\u9418\u652a\u6382)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img data-dominant-color=\"373c54\" data-has-transparency=\"false\" style=\"--dominant-color: #373c54;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/infernews.com\/blog\/wp-content\/uploads\/2026\/10\/PHP-1.jpg\" alt=\"\" class=\"wp-image-13777 not-transparent\" srcset=\"https:\/\/infernews.com\/blog\/wp-content\/uploads\/2026\/10\/PHP-1.jpg 1024w, https:\/\/infernews.com\/blog\/wp-content\/uploads\/2026\/10\/PHP-1-300x116.jpg 300w, https:\/\/infernews.com\/blog\/wp-content\/uploads\/2026\/10\/PHP-1-766x297.jpg 766w\" \/><\/figure>\n\n\n\n<style data-wp-block-html=\"css\">\nbody { background-color: #0f172a; color: #cbd5e1; font-family: 'Inter', 'PingFang TC', 'Microsoft JhengHei', sans-serif; }\n\n.alert {\n  background-color: #25121d;          \/* was bg-red-950\/40 *\/\n  border: 1px solid #7f2e37;          \/* was border-red-500\/50 *\/\n  border-radius: 12px; padding: 20px;\n  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);\n  display: flex; align-items: flex-start; gap: 16px;\n}\n.alert .icon { flex-shrink: 0; margin-top: 4px; }\n.alert .icon svg { width: 24px; height: 24px; color: #ef4444; }\n.alert h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: #f87171; }\n.alert p  { margin: 4px 0 0; font-size: 14px; line-height: 1.625; color: #f2a5a7; }\n.alert code {\n  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;\n  background-color: #82181d; color: #fca5a5;\n  padding: 2px 4px; border-radius: 4px; font-size: 12px;\n}\n<\/style>\n\n<div class=\"alert\">\n  <div class=\"icon\">\n    <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n      <path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\"><\/path>\n    <\/svg>\n  <\/div>\n  <div>\n    <h3>\u56b4\u91cd\u8cc7\u8a0a\u5b89\u5168\u8b66\u544a\uff1aPHP2Shell (CVE-2026-109618 \/ CVE-2026-109619)<\/h3>\n    <p>\n      \u5047\u8a2d\u76ee\u524d\u7684\u74b0\u5883\u5df2\u7d93\u904e\u6642 (Ubuntu 22.04 + Apache mod_php + PHP 8.1)\uff0c\u5b58\u5728\u6975\u9ad8\u7684\u9060\u7aef\u7a0b\u5f0f\u78bc\u57f7\u884c (RCE) \u98a8\u96aa\u3002\u7531\u65bc <code>mod_php<\/code> \u8207\u7db2\u9801\u4f3a\u670d\u5668\u5171\u7528\u8a18\u61b6\u9ad4\uff0c\u653b\u64ca\u8005\u53ef\u8f15\u6613\u89f8\u767c\u8a18\u61b6\u9ad4\u8017\u76e1 (OOM) \u932f\u8aa4\uff0c\u5728\u7121\u9700\u8eab\u5206\u9a57\u8b49\u7684\u60c5\u6cc1\u4e0b\u5b8c\u5168\u63a5\u7ba1\u4f3a\u670d\u5668\u3002\u60a8\u5fc5\u9808\u7acb\u5373\u5347\u7d1a\u81f3\u652f\u63f4\u7684 PHP 8.3 \u6216 8.4 \u7248\u672c\u3002\n    <\/p>\n  <\/div>\n<\/div>\n\n\n\n<style>\n\/* ==========================================================================\n   WordPress Scoped Article \u5b8c\u6574\u6a23\u5f0f\u8868\uff08\u5f37\u5236\u56fa\u5b9a\u5927\u5b57\u7d1a\u9632\u7e2e\u5c0f\u7248\uff09\n   ========================================================================== *\/\nhtml {\n  scroll-behavior: smooth;\n}\n\n\/* \u6838\u5fc3\u5bb9\u5668\uff1a\u5f37\u5236\u9396\u5b9a 21px \u57fa\u790e\u5b57\u7d1a\u8207 1.8 \u884c\u9ad8\uff0c\u675c\u7d55\u88ab\u4e3b\u984c\u8986\u84cb\u7e2e\u5c0f *\/\n.wp-scoped-article {\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Noto Sans TC\", sans-serif !important;\n  color: #1e293b !important;\n  line-height: 1.8 !important;\n  font-size: 21px !important;\n  margin: 1.5rem 0 !important;\n  box-sizing: border-box !important;\n}\n\n.wp-scoped-article * {\n  box-sizing: border-box !important;\n}\n\n\/* \u907f\u514d\u6587\u7ae0\u5167 header \/ footer \u7e7c\u627f\u885d\u7a81 *\/\n.wp-scoped-article header,\n.wp-scoped-article footer,\n.wp-scoped-article .in-article-header,\n.wp-scoped-article .in-article-footer {\n  position: static !important;\n  width: 100% !important;\n  background: transparent !important;\n  border: none !important;\n  box-shadow: none !important;\n  padding: 0 !important;\n  margin: 1.5rem 0 !important;\n  clear: both !important;\n}\n\n.wp-scoped-article footer,\n.wp-scoped-article .in-article-footer {\n  padding-top: 1.25rem !important;\n  border-top: 1px solid #e2e8f0 !important;\n}\n\n\/* \u6a19\u984c\u7cfb\u7d71 *\/\n.wp-scoped-article h2 {\n  font-size: 32px !important;\n  font-weight: 700 !important;\n  color: #0f172a !important;\n  margin-top: 2.25rem !important;\n  margin-bottom: 1rem !important;\n  padding-bottom: 0.5rem !important;\n  border-bottom: 2px solid #e2e8f0 !important;\n  display: flex !important;\n  align-items: center !important;\n  gap: 0.5rem !important;\n  scroll-margin-top: 80px !important;\n}\n\n.wp-scoped-article h3 {\n  font-size: 26px !important;\n  font-weight: 600 !important;\n  color: #1e293b !important;\n  margin-top: 1.6rem !important;\n  margin-bottom: 0.75rem !important;\n  scroll-margin-top: 80px !important;\n}\n\n\/* \u5167\u6587\u8207\u9023\u7d50 *\/\n.wp-scoped-article p,\n.wp-scoped-article li {\n  font-size: 21px !important;\n  line-height: 1.8 !important;\n  margin-bottom: 1.2rem !important;\n  color: #334155 !important;\n}\n\n.wp-scoped-article a {\n  color: #2563eb !important;\n  text-decoration: none !important;\n}\n\n.wp-scoped-article a:hover {\n  text-decoration: underline !important;\n}\n\n\/* \u76ee\u9304\u5c0e\u89bd (TOC) *\/\n.wp-scoped-article .in-toc {\n  background: #f8fafc !important;\n  border: 1px solid #e2e8f0 !important;\n  border-radius: 8px !important;\n  padding: 1.5rem !important;\n  margin: 1.5rem 0 !important;\n}\n\n.wp-scoped-article .in-toc ul {\n  list-style: none !important;\n  padding-left: 0 !important;\n  margin: 0 !important;\n}\n\n.wp-scoped-article .in-toc li {\n  margin-bottom: 0.5rem !important;\n  font-size: 19px !important;\n}\n\n.wp-scoped-article .in-toc a {\n  text-decoration: none !important;\n  color: #2563eb !important;\n}\n\n.wp-scoped-article .in-toc a:hover {\n  opacity: 0.8 !important;\n  text-decoration: none !important;\n}\n\n\/* \u6a19\u7c64\u81a0\u56ca\u6c23\u6ce1 *\/\n.wp-scoped-article .in-tag-group {\n  display: flex !important;\n  flex-wrap: wrap !important;\n  gap: 10px !important;\n  margin-bottom: 1.5rem !important;\n}\n\n.wp-scoped-article .in-tag,\n.wp-scoped-article a.in-tag {\n  display: inline-block !important;\n  padding: 6px 18px !important;\n  border-radius: 9999px !important;\n  font-size: 18px !important;\n  font-weight: 600 !important;\n  background-color: #eff6ff !important;\n  color: #1d4ed8 !important;\n  border: 1.5px solid #bfdbfe !important;\n  text-decoration: none !important;\n  line-height: 1.4 !important;\n  transition: all 0.2s ease-in-out !important;\n}\n\n.wp-scoped-article a.in-tag:hover {\n  background-color: #dbeafe !important;\n  border-color: #93c5fd !important;\n  color: #1e40af !important;\n  text-decoration: none !important;\n  transform: translateY(-1px) !important;\n}\n\n\/* \u5e8f\u865f\u5fbd\u7ae0 *\/\n.wp-scoped-article .in-badge {\n  display: inline-flex !important;\n  align-items: center !important;\n  justify-content: center !important;\n  width: 32px !important;\n  height: 32px !important;\n  border-radius: 6px !important;\n  background: #2563eb !important;\n  color: #ffffff !important;\n  font-size: 18px !important;\n  font-weight: 700 !important;\n  margin-right: 8px !important;\n  flex-shrink: 0 !important;\n}\n\n\/* \u63d0\u793a\u8a0a\u606f\u6846 *\/\n.wp-scoped-article .in-callout-info {\n  background-color: #eff6ff !important;\n  border-left: 5px solid #3b82f6 !important;\n  border-radius: 0 8px 8px 0 !important;\n  padding: 1.25rem 1.5rem !important;\n  margin: 1.5rem 0 !important;\n  font-size: 20px !important;\n}\n\n.wp-scoped-article .in-callout-danger {\n  background-color: #fef2f2 !important;\n  border-left: 5px solid #ef4444 !important;\n  border-radius: 0 8px 8px 0 !important;\n  padding: 1.25rem 1.5rem !important;\n  margin: 1.5rem 0 !important;\n  font-size: 20px !important;\n}\n\n\/* \u7d42\u7aef\u6a5f\u4ee3\u78bc\u5340\u584a *\/\n.wp-scoped-article .in-terminal-box {\n  background: #0d1117 !important;\n  border: 1px solid #30363d !important;\n  border-radius: 8px !important;\n  margin: 1.5rem 0 !important;\n  overflow: hidden !important;\n  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;\n}\n\n.wp-scoped-article .in-terminal-header {\n  background: #161b22 !important;\n  padding: 10px 16px !important;\n  display: flex !important;\n  align-items: center !important;\n  justify-content: space-between !important;\n  border-bottom: 1px solid #30363d !important;\n  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;\n  font-size: 16px !important;\n  color: #8b949e !important;\n}\n\n.wp-scoped-article .in-terminal-dots {\n  display: flex !important;\n  gap: 6px !important;\n}\n\n.wp-scoped-article .in-dot {\n  width: 12px !important;\n  height: 12px !important;\n  border-radius: 50% !important;\n  display: inline-block !important;\n}\n\n.wp-scoped-article .in-dot-red { background: #ff5f56 !important; }\n.wp-scoped-article .in-dot-yellow { background: #ffbd2e !important; }\n.wp-scoped-article .in-dot-green { background: #27c93f !important; }\n\n.wp-scoped-article pre.in-code {\n  margin: 0 !important;\n  padding: 18px !important;\n  background: #0d1117 !important;\n  color: #c9d1d9 !important;\n  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;\n  font-size: 17px !important;\n  line-height: 1.6 !important;\n  overflow-x: auto !important;\n  white-space: pre !important;\n  border: none !important;\n}\n\n\/* \u9ad8\u5c0d\u6bd4\u8868\u683c\uff08\u9396\u5b9a\u6e05\u6670\u5927\u5b57\u9ad4\uff09 *\/\n.wp-scoped-article div.in-table-wrapper {\n  overflow-x: auto !important;\n  margin: 1.5rem 0 !important;\n  border: 2px solid #94a3b8 !important;\n  border-radius: 8px !important;\n  background-color: #ffffff !important;\n}\n\n.wp-scoped-article .in-table-wrapper table.in-table,\n.wp-scoped-article table.in-table {\n  width: 100% !important;\n  border-collapse: collapse !important;\n  border-spacing: 0 !important;\n  font-size: 19px !important;\n  text-align: left !important;\n  margin: 0 !important;\n  border: none !important;\n}\n\n.wp-scoped-article .in-table-wrapper table.in-table th,\n.wp-scoped-article table.in-table th {\n  background-color: #e2e8f0 !important;\n  color: #0f172a !important;\n  font-weight: 700 !important;\n  padding: 14px 18px !important;\n  border-bottom: 2px solid #64748b !important;\n  border-right: 1px solid #cbd5e1 !important;\n  font-size: 19px !important;\n}\n\n.wp-scoped-article .in-table-wrapper table.in-table td,\n.wp-scoped-article table.in-table td {\n  padding: 14px 18px !important;\n  border-bottom: 1px solid #cbd5e1 !important;\n  border-right: 1px solid #cbd5e1 !important;\n  color: #334155 !important;\n  font-size: 19px !important;\n}\n\n.wp-scoped-article .in-table-wrapper table.in-table th:last-child,\n.wp-scoped-article .in-table-wrapper table.in-table td:last-child,\n.wp-scoped-article table.in-table th:last-child,\n.wp-scoped-article table.in-table td:last-child {\n  border-right: none !important;\n}\n\n.wp-scoped-article .in-table-wrapper table.in-table tbody tr:nth-child(even),\n.wp-scoped-article table.in-table tbody tr:nth-child(even) {\n  background-color: #f8fafc !important;\n}\n\n\/* \u7db2\u683c\u6838\u53d6\u6e05\u55ae *\/\n.wp-scoped-article .in-checklist {\n  display: grid !important;\n  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;\n  gap: 14px !important;\n  margin: 1.5rem 0 !important;\n}\n\n.wp-scoped-article .in-checklist-item {\n  display: flex !important;\n  align-items: center !important;\n  gap: 12px !important;\n  padding: 14px 18px !important;\n  background: #f8fafc !important;\n  border: 1px solid #e2e8f0 !important;\n  border-radius: 8px !important;\n  font-size: 19px !important;\n}\n\n.wp-scoped-article .in-check-icon {\n  color: #10b981 !important;\n  font-weight: bold !important;\n  font-size: 20px !important;\n}\n<\/style>\n\n<div class=\"wp-scoped-article\">\n  <div class=\"in-article-header\">\n    <div class=\"in-tag-group\">\n      <span class=\"in-tag\" style=\"background-color: #fee2e2 !important; color: #b91c1c !important; border-color: #fca5a5 !important;\">\u56b4\u91cd\u6027\u8a55\u5206 (CVSS v4.0): 9.2 Critical<\/span>\n      <span class=\"in-tag\">Ubuntu \/ Apache<\/span>\n      <span class=\"in-tag\">PHP 8.3 \u5b89\u5168\u5347\u7d1a<\/span>\n      <span class=\"in-tag\">\u6700\u5f8c\u66f4\u65b0\uff1a2026\u5e7410\u670822\u65e5<\/span>\n    <\/div>\n    <p>\n      \u672c\u6307\u5357\u5c07\u5e36\u9818\u60a8\u4e00\u6b65\u6b65\u5728 Ubuntu \u4f3a\u670d\u5668\uff08\u642d\u914d Apache\uff09\u4e0a\u5347\u7d1a\u81f3\u5b89\u5168\u7684 8.3.36 \u7248\u672c\uff0c\u4ee5\u5fb9\u5e95\u9632\u7bc4\u8fd1\u671f\u7206\u767c\u7684 PHP2Shell \u9060\u7aef\u7a0b\u5f0f\u78bc\u57f7\u884c\u6f0f\u6d1e\u3002\n    <\/p>\n  <\/div>\n\n  <div class=\"in-toc\">\n    <strong style=\"display: block; margin-bottom: 0.75rem; color: #0f172a; font-size: 20px;\">\u76ee\u9304\u5c0e\u89bd<\/strong>\n    <ul>\n      <li><a href=\"#intro\">1. \u95dc\u65bc PHP2Shell \u6f0f\u6d1e (CVE-2026-109618 \/ 109619)<\/a><\/li>\n      <li><a href=\"#step1\">2. \u65b0\u589e Ond\u0159ej Sur\u00fd PPA \u8edf\u9ad4\u5eab<\/a><\/li>\n      <li><a href=\"#step2\">3. \u5b89\u88dd 8.3.36 \u8207\u76f8\u95dc\u64f4\u5145\u5957\u4ef6<\/a><\/li>\n      <li><a href=\"#step3\">4. \u5207\u63db Apache \u6a21\u7d44 (\u505c\u7528\u820a\u7248)<\/a><\/li>\n      <li><a href=\"#step4\">5. \u91cd\u555f\u670d\u52d9\u8207\u9a57\u8b49<\/a><\/li>\n    <\/ul>\n  <\/div>\n\n  <h2 id=\"intro\">\n    <span class=\"in-badge\">1<\/span>\n    \u95dc\u65bc PHP2Shell \u6f0f\u6d1e (CVE-2026-109618 \/ 109619)\n  <\/h2>\n  <p>\n    <strong>PHP2Shell<\/strong> \u662f\u5b58\u5728\u65bc PHP \u6838\u5fc3\u8a18\u61b6\u9ad4\u7ba1\u7406\u4e2d\u7684\u56b4\u91cd\u6f0f\u6d1e\u3002\u7576\u4f7f\u7528 Apache \u7684 <code>mod_php<\/code> \u6a21\u7d44\u6642\uff0c\u653b\u64ca\u8005\u53ef\u4ee5\u900f\u904e\u69cb\u9020\u7279\u5b9a\u7684\u60e1\u610f\u8acb\u6c42\uff08\u4f8b\u5982\u89f8\u767c\u8a18\u61b6\u9ad4\u8017\u76e1\uff09\uff0c\u5229\u7528\u91cb\u653e\u5f8c\u4f7f\u7528 (Use-After-Free) \u7684\u7f3a\u9677\uff0c\u5728\u672a\u7d93\u8eab\u5206\u9a57\u8b49\u7684\u60c5\u6cc1\u4e0b\u65bc\u4f3a\u670d\u5668\u4e0a\u57f7\u884c\u4efb\u610f\u7a0b\u5f0f\u78bc (RCE)\u3002\n  <\/p>\n  \n  <div class=\"in-callout-danger\">\n    <strong style=\"color: #b91c1c !important; display: block; margin-bottom: 0.5rem; font-size: 21px;\">\u5f37\u70c8\u8b66\u544a\uff1aPHP 8.1 \u5df2\u7d42\u6b62\u652f\u63f4 (EOL)<\/strong>\n    PHP 8.1 \u53ca\u66f4\u820a\u7248\u672c (8.0, 7.x) \u5df2\u7d93\u9054\u5230\u751f\u547d\u9031\u671f\u7d42\u9ede (End-of-Life)\uff0c\u5b98\u65b9<strong>\u4e0d\u6703<\/strong>\u91dd\u5c0d\u9019\u4e9b\u7248\u672c\u91cb\u51fa PHP2Shell \u7684\u5b89\u5168\u4fee\u88dc\u7a0b\u5f0f\u3002\u7e7c\u7e8c\u4f7f\u7528 PHP 8.1 \u5c07\u4f7f\u60a8\u7684\u4f3a\u670d\u5668\u8655\u65bc\u6975\u9ad8\u98a8\u96aa\u4e4b\u4e2d\u3002\u552f\u6709\u5347\u7d1a\u81f3 PHP 8.2.35\u30018.3.36 \u6216 8.4.27 \u4ee5\u4e0a\u7248\u672c\u624d\u80fd\u78ba\u4fdd\u5b89\u5168\u3002\n  <\/div>\n\n  <h2 id=\"step1\">\n    <span class=\"in-badge\">2<\/span>\n    \u65b0\u589e Ond\u0159ej Sur\u00fd PPA \u8edf\u9ad4\u5eab\n  <\/h2>\n  <p>\n    Ubuntu \u9810\u8a2d\u7684\u8edf\u9ad4\u5eab\u901a\u5e38\u4e0d\u5305\u542b\u6700\u65b0\u7248\u672c\u7684 PHP\u3002\u6211\u5011\u9700\u8981\u52a0\u5165\u7531 Debian PHP \u7dad\u8b77\u8005 Ond\u0159ej Sur\u00fd \u6240\u63d0\u4f9b\u7684\u5b98\u65b9\u4fe1\u4efb PPA\u3002\n  <\/p>\n  \n  <div class=\"in-terminal-box\">\n    <div class=\"in-terminal-header\">\n      <div class=\"in-terminal-dots\">\n        <span class=\"in-dot in-dot-red\"><\/span>\n        <span class=\"in-dot in-dot-yellow\"><\/span>\n        <span class=\"in-dot in-dot-green\"><\/span>\n      <\/div>\n      <span>bash<\/span>\n    <\/div>\n    <pre class=\"in-code\">sudo apt update\nsudo apt install -y software-properties-common\nsudo add-apt-repository ppa:ondrej\/php\nsudo apt update<\/pre>\n  <\/div>\n\n  <h2 id=\"step2\">\n    <span class=\"in-badge\">3<\/span>\n    \u5b89\u88dd PHP 8.3 \u8207\u76f8\u95dc\u64f4\u5145\u5957\u4ef6\n  <\/h2>\n  <p>\n    \u63a5\u4e0b\u4f86\uff0c\u5b89\u88dd PHP 8.3 \u6838\u5fc3\u3001Apache \u6a21\u7d44\u4ee5\u53ca\u60a8\u7db2\u7ad9\u53ef\u80fd\u9700\u8981\u7684\u5e38\u898b\u64f4\u5145\u5957\u4ef6\uff08\u5982 MySQL\u3001cURL\u3001GD \u7b49\uff09\u3002\n  <\/p>\n\n  <div class=\"in-terminal-box\">\n    <div class=\"in-terminal-header\">\n      <div class=\"in-terminal-dots\">\n        <span class=\"in-dot in-dot-red\"><\/span>\n        <span class=\"in-dot in-dot-yellow\"><\/span>\n        <span class=\"in-dot in-dot-green\"><\/span>\n      <\/div>\n      <span>bash<\/span>\n    <\/div>\n    <pre class=\"in-code\">sudo apt install -y php8.3 libapache2-mod-php8.3 php8.3-mysql php8.3-xml php8.3-curl php8.3-mbstring php8.3-zip php8.3-gd php8.3-bz2 php-memcached<\/pre>\n  <\/div>\n\n  <h2 id=\"step3\">\n    <span class=\"in-badge\">4<\/span>\n    \u5207\u63db Apache \u6a21\u7d44 (\u505c\u7528\u820a\u7248)\n  <\/h2>\n  <p>\n    \u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u5fc5\u9808\u544a\u8a34 Apache \u505c\u6b62\u4f7f\u7528\u820a\u7248\u4e14\u6613\u53d7\u653b\u64ca\u7684 PHP \u6a21\u7d44\uff08\u5047\u8a2d\u60a8\u539f\u672c\u4f7f\u7528\u7684\u662f PHP 8.1\uff09\uff0c\u4e26\u555f\u7528\u5168\u65b0\u7684 PHP 8.3 \u6a21\u7d44\u3002\n  <\/p>\n\n  <div class=\"in-terminal-box\">\n    <div class=\"in-terminal-header\">\n      <div class=\"in-terminal-dots\">\n        <span class=\"in-dot in-dot-red\"><\/span>\n        <span class=\"in-dot in-dot-yellow\"><\/span>\n        <span class=\"in-dot in-dot-green\"><\/span>\n      <\/div>\n      <span>bash<\/span>\n    <\/div>\n    <pre class=\"in-code\">sudo a2dismod php8.1\nsudo a2enmod php8.3<\/pre>\n  <\/div>\n\n  <div class=\"in-callout-info\">\n    \ud83d\udca1 <strong>\u63d0\u793a\uff1a<\/strong>\u5982\u679c\u60a8\u539f\u672c\u4f7f\u7528\u7684\u662f\u5176\u4ed6\u7248\u672c\uff08\u4f8b\u5982 7.4 \u6216 8.0\uff09\uff0c\u8acb\u5c07\u4e0a\u8ff0\u6307\u4ee4\u4e2d\u7684 <code>php8.1<\/code> \u66ff\u63db\u70ba\u60a8\u5c0d\u61c9\u7684\u820a\u7248\u672c\u865f\u3002\n  <\/div>\n\n  <h2 id=\"step4\">\n    <span class=\"in-badge\">5<\/span>\n    \u91cd\u555f\u670d\u52d9\u8207\u9a57\u8b49\n  <\/h2>\n  <p>\n    \u91cd\u65b0\u555f\u52d5 Apache \u4f3a\u670d\u5668\u4ee5\u5957\u7528\u65b0\u7684\u6a21\u7d44\u8a2d\u5b9a\uff0c\u4e26\u5728\u547d\u4ee4\u5217\u6aa2\u67e5\u7576\u524d\u7684 PHP \u7248\u672c\u3002\n  <\/p>\n\n  <div class=\"in-terminal-box\">\n    <div class=\"in-terminal-header\">\n      <div class=\"in-terminal-dots\">\n        <span class=\"in-dot in-dot-red\"><\/span>\n        <span class=\"in-dot in-dot-yellow\"><\/span>\n        <span class=\"in-dot in-dot-green\"><\/span>\n      <\/div>\n      <span>bash<\/span>\n    <\/div>\n    <pre class=\"in-code\">sudo systemctl restart apache2\nphp -v<\/pre>\n  <\/div>\n\n  <p>\n    \u57f7\u884c <code>php -v<\/code> \u5f8c\uff0c\u60a8\u61c9\u8a72\u6703\u770b\u5230\u985e\u4f3c\u4ee5\u4e0b\u7684\u7d42\u7aef\u8f38\u51fa\uff0c\u78ba\u8a8d\u7248\u672c\u5df2\u6210\u529f\u5347\u7d1a\u81f3\u5b89\u5168\u7248\u672c\uff1a\n  <\/p>\n\n  <div class=\"in-terminal-box\">\n    <div class=\"in-terminal-header\">\n      <div class=\"in-terminal-dots\">\n        <span class=\"in-dot in-dot-red\"><\/span>\n        <span class=\"in-dot in-dot-yellow\"><\/span>\n        <span class=\"in-dot in-dot-green\"><\/span>\n      <\/div>\n      <span>output<\/span>\n    <\/div>\n    <pre class=\"in-code\">PHP 8.3.12 (cli) (built: Sep 26 2026 14:02:11) (NTS)\nCopyright (c) The PHP Group\nZend Engine v4.3.12, Copyright (c) Zend Technologies<\/pre>\n  <\/div>\n\n  <div class=\"in-article-footer\">\n    <div class=\"in-checklist\">\n      <div class=\"in-checklist-item\">\n        <span class=\"in-check-icon\">\u2713<\/span>\n        <span>\u5df2\u52a0\u5165 Ond\u0159ej Sur\u00fd \u5b98\u65b9\u4f86\u6e90<\/span>\n      <\/div>\n      <div class=\"in-checklist-item\">\n        <span class=\"in-check-icon\">\u2713<\/span>\n        <span>\u5df2\u5b89\u88dd PHP 8.3 \u64f4\u5145\u6a21\u7d44<\/span>\n      <\/div>\n      <div class=\"in-checklist-item\">\n        <span class=\"in-check-icon\">\u2713<\/span>\n        <span>\u5df2\u505c\u7528\u820a\u7248 mod_php<\/span>\n      <\/div>\n      <div class=\"in-checklist-item\">\n        <span class=\"in-check-icon\">\u2713<\/span>\n        <span>Apache \u91cd\u555f\u5b8c\u6210\u4e26\u901a\u904e\u7248\u672c\u9a57\u8b49<\/span>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u56b4\u91cd\u8cc7\u8a0a\u5b89\u5168\u8b66\u544a\uff1aPHP2Shell (CVE-2026-109618 \/ CVE-2026-109619) \u5047\u8a2d\u76ee\u524d\u7684\u74b0\u5883\u5df2\u7d93\u904e\u6642 (Ubuntu 22.04 + Apache mod_php + PHP 8.1)\uff0c\u5b58\u5728\u6975\u9ad8\u7684\u9060\u7aef\u7a0b\u5f0f\u78bc\u57f7\u884c (RCE) \u98a8\u96aa\u3002\u7531\u65bc mod_php \u8207\u7db2\u9801\u4f3a\u670d\u5668\u5171\u7528\u8a18\u61b6\u9ad4\uff0c\u653b\u64ca\u8005\u53ef\u8f15\u6613\u89f8\u767c\u8a18\u61b6\u9ad4\u8017\u76e1 (OOM) \u932f\u8aa4\uff0c\u5728\u7121\u9700\u8eab\u5206\u9a57\u8b49\u7684\u60c5\u6cc1\u4e0b\u5b8c\u5168\u63a5\u7ba1\u4f3a\u670d\u5668\u3002\u60a8\u5fc5\u9808\u7acb\u5373\u5347\u7d1a\u81f3\u652f\u63f4\u7684 PHP 8.3 \u6216 8.4 \u7248\u672c\u3002 \u56b4\u91cd\u6027\u8a55\u5206 (CVSS v4.0): 9.2 Critical Ubuntu \/ Apache PHP 8.3 \u5b89\u5168\u5347\u7d1a \u6700\u5f8c\u66f4\u65b0\uff1a2026\u5e7410\u670822\u65e5 \u672c\u6307\u5357\u5c07\u5e36\u9818\u60a8\u4e00\u6b65\u6b65\u5728 Ubuntu \u4f3a\u670d\u5668\uff08\u642d\u914d Apache\uff09\u4e0a\u5347\u7d1a\u81f3\u5b89\u5168\u7684 8.3.36 \u7248\u672c\uff0c\u4ee5\u5fb9\u5e95\u9632\u7bc4\u8fd1\u671f\u7206\u767c\u7684 PHP2Shell \u9060\u7aef\u7a0b\u5f0f\u78bc\u57f7\u884c\u6f0f\u6d1e\u3002 \u76ee\u9304\u5c0e\u89bd 1. \u95dc\u65bc PHP2Shell \u6f0f\u6d1e (CVE-2026-109618 \/ 109619) 2. \u65b0\u589e Ond\u0159ej [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"wpai_generated_summary":"","wpai_meta_description":"","footnotes":""},"class_list":["post-13758","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/pages\/13758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/comments?post=13758"}],"version-history":[{"count":8,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/pages\/13758\/revisions"}],"predecessor-version":[{"id":13778,"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/pages\/13758\/revisions\/13778"}],"wp:attachment":[{"href":"https:\/\/infernews.com\/blog\/wp-json\/wp\/v2\/media?parent=13758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}