{"id":74637,"date":"2025-09-13T19:04:26","date_gmt":"2025-09-13T19:04:26","guid":{"rendered":""},"modified":"2025-10-03T23:55:45","modified_gmt":"2025-10-04T05:55:45","slug":"cve-2025-55849-sql-injection-vulnerability-in-weiphp-v5-0-and-earlier-versions","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-55849-sql-injection-vulnerability-in-weiphp-v5-0-and-earlier-versions\/","title":{"rendered":"<strong>CVE-2025-55849: SQL Injection Vulnerability in WeiPHP v5.0 and Earlier Versions<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The cybersecurity world is abuzz with the discovery of a new vulnerability in WeiPHP v5.0 and before, tagged as CVE-2025-55849. WeiPHP is a popular open-source framework used by programmers to build applications. However, this <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54594-critical-vulnerability-in-react-native-bottom-tabs-library-allows-for-arbitrary-code-execution\/\"  data-wpil-monitor-id=\"82253\">vulnerability may allow<\/a> an attacker to manipulate SQL queries, leading to unauthorized access to sensitive data, and potential system compromise. Given the widespread use of WeiPHP, the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-30403-heap-buffer-overflow-vulnerability-in-mvfst-impacts-quic-sessions\/\"  data-wpil-monitor-id=\"82311\">impact of this vulnerability<\/a> is potentially far-reaching, affecting numerous applications and by extension, organizations and their users.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-55849<br \/>\nSeverity: High (CVSS:8.4)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low<br \/>\nUser Interaction: None<br \/>\nImpact: Unauthorized <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-53496-unauthenticated-access-to-sensitive-components-in-my-site-v1-0-2-release\/\"  data-wpil-monitor-id=\"82652\">access to sensitive<\/a> data, potential system compromise<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-3056946913\" 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>WeiPHP | v5.0 and before<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-52451-improper-input-validation-vulnerability-in-salesforce-tableau-server\/\"  data-wpil-monitor-id=\"85920\">vulnerability stems from insufficient sanitization of user-supplied inputs<\/a> in the &#8216;SucaiController.class.php&#8217; file. An attacker can exploit this by <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54119-sql-injection-vulnerability-in-adodb-php-database-class-library\/\"  data-wpil-monitor-id=\"82621\">injecting malicious SQL<\/a> code into the application&#8217;s query string. This results in the application unknowingly running the malicious SQL query, which can lead to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7051-unauthorized-access-and-manipulation-of-syslog-configuration-in-n-central\/\"  data-wpil-monitor-id=\"84621\">unauthorized access<\/a> to sensitive data, modification of data, or even system compromise.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2143631506\" 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&#8217;s a conceptual example of how an attacker might exploit the vulnerability. Suppose the application accepts a parameter &#8216;template_id&#8217; in the URL to fetch some data:<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/SucaiController.class.php?template_id=100 HTTP\/1.1\nHost: vulnerable.example.com<\/code><\/pre>\n<p>An attacker could substitute &#8216;100&#8217; with a crafted SQL statement:<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/SucaiController.class.php?template_id=100;DROP%20TABLE%20users; HTTP\/1.1\nHost: vulnerable.example.com<\/code><\/pre>\n<p>This could lead to the &#8216;users&#8217; <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-42916-high-impact-database-table-deletion-vulnerability\/\"  data-wpil-monitor-id=\"88699\">table being dropped from the database<\/a> if the application directly includes the &#8216;template_id&#8217; parameter in a SQL query without sanitizing it first.<\/p>\n<p><strong>Mitigation Steps<\/strong><\/p>\n<p>To mitigate this vulnerability, users are advised to apply the patch provided by the vendor as soon as it&#8217;s available. In the interim, a Web Application Firewall (WAF) or an Intrusion Detection System (IDS) can be used to detect and block <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-53499-sql-injection-vulnerability-in-jeewms-v3-7-cgreportcontroller-api\/\"  data-wpil-monitor-id=\"82743\">SQL Injection<\/a> attacks. Additionally, developers should always sanitize user inputs before including them in <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-51092-sql-injection-vulnerability-in-login-signup-project-by-vishnusivadasvs\/\"  data-wpil-monitor-id=\"83093\">SQL queries to prevent such injection<\/a> attacks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The cybersecurity world is abuzz with the discovery of a new vulnerability in WeiPHP v5.0 and before, tagged as CVE-2025-55849. WeiPHP is a popular open-source framework used by programmers to build applications. However, this vulnerability may allow an attacker to manipulate SQL queries, leading to unauthorized access to sensitive data, and potential system compromise. [&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":[74],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-74637","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-sql-injection"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/74637","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=74637"}],"version-history":[{"count":9,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/74637\/revisions"}],"predecessor-version":[{"id":81512,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/74637\/revisions\/81512"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=74637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=74637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=74637"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=74637"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=74637"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=74637"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=74637"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=74637"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=74637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}