{"id":17261,"date":"2026-07-31T07:35:57","date_gmt":"2026-07-31T07:35:57","guid":{"rendered":"https:\/\/techtrendfeed.com\/?p=17261"},"modified":"2026-07-31T07:35:58","modified_gmt":"2026-07-31T07:35:58","slug":"php-patches-3-safety-flaws-enabling-sql-injection-reminiscence-corruption-and-dos-assaults","status":"publish","type":"post","link":"https:\/\/techtrendfeed.com\/?p=17261","title":{"rendered":"PHP Patches 3 Safety Flaws Enabling SQL Injection, Reminiscence Corruption and DoS Assaults"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p class=\"wp-block-paragraph\">PHP maintainers have launched safety updates to handle three vulnerabilities affecting the PostgreSQL, BCMath, and Phar extensions. These vulnerabilities might <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/gbhackers.com\/multiple-php-vulnerabilities\/\" data-type=\"post\" data-id=\"147379\" target=\"_blank\" rel=\"noreferrer noopener\">doubtlessly result in SQL injection assaults<\/a>, out-of-bounds reminiscence writes, and denial-of-service assaults in weak purposes. <\/p>\n<p class=\"wp-block-paragraph\">The problems affect a number of actively maintained PHP launch branches and have been resolved in variations PHP 8.2.338.2, 8.3.338.3, 8.4.248.4, and eight.5.98.5, relying on the affected extension. <\/p>\n<p class=\"wp-block-paragraph\">Organizations working PHP purposes ought to prioritize upgrading, particularly if their purposes course of untrusted database enter, carry out BCMath operations on user-controlled values, or deal with Phar archives.<\/p>\n<h2 id=\"h-php-patches-3-security-flaws\" class=\"wp-block-heading\"><strong>PHP Patches 3 Safety Flaws<\/strong><\/h2>\n<p class=\"wp-block-paragraph\">Probably the most essential situation, <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/github.com\/php\/php-src\/security\/advisories\/GHSA-7qpv-r5mr-78m4\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">tracked as CVE-2026-17543<\/a> and GHSA-7qpv-r5mr-78m4, is a high-severity SQL injection vulnerability in PHP\u2019s PostgreSQL extension (ext-pgsql). <\/p>\n<p class=\"wp-block-paragraph\">This flaw is discovered within the operate php_pgsql_convert(), which is utilized by comfort features similar to pg_insert(), pg_update(), pg_select(), and pg_delete() to transform and escape user-supplied parameters. <\/p>\n<p class=\"wp-block-paragraph\">Earlier than the replace, this operate utilized PostgreSQL\u2019s PQescapeStringConn() operate. It wrapped the ensuing values in an escape string fixed formatted as E\u2019\u2026\u2019. <\/p>\n<p class=\"wp-block-paragraph\">This strategy turns into unsafe when PostgreSQL makes use of the standard_conforming_strings setting, which has been enabled by default since PostgreSQL model 9.19.<\/p>\n<p class=\"wp-block-paragraph\">With this configuration, PQescapeStringConn() fails to flee backslash characters appropriately for values that will likely be embedded inside an E\u2019\u2026\u2019 string. <\/p>\n<p class=\"wp-block-paragraph\">An attacker who can affect a parameter handed to one among these helper features might insert a backslash adopted by a quote, breaking out of the meant SQL string context. <\/p>\n<p class=\"wp-block-paragraph\">The remaining enter could then be handled as legitimate SQL syntax, permitting the attacker to change question logic, doubtlessly entry unauthorized data, or manipulate database content material, relying on the applying\u2019s privileges. <\/p>\n<p class=\"wp-block-paragraph\">PHP\u2019s repair alters the parameter dealing with logic to make use of non-escaping string constants as an alternative of wrapping escaped values in E\u2019\u2026\u2019. This vulnerability was reported by ExPatch-LLC, with evaluation and remediation supported by PHP contributors.<\/p>\n<p class=\"wp-block-paragraph\"><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/github.com\/php\/php-src\/security\/advisories\/GHSA-x692-q9x7-8c3f\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">A second high-severity vulnerability, CVE-2026-17544<\/a> (GHSA-x692-q9x7-8c3f), impacts the BCMath extension in PHP variations 8.48 and eight.58. <\/p>\n<p class=\"wp-block-paragraph\">This situation can result in an out-of-bounds write when an software calls the bccomp() operate with attacker-controlled numeric operands and a maliciously crafted scale worth. <\/p>\n<p class=\"wp-block-paragraph\">The error happens within the bc_str2num() operate when a manually specified scale truncates decimal digits, and subsequent logic removes trailing zeroes. <\/p>\n<p class=\"wp-block-paragraph\">Whereas the code reduces the calculated scale and allocates a smaller numeric buffer, it beforehand retained the unique pointer to the fractional finish through the copy operation.<\/p>\n<p class=\"wp-block-paragraph\">In consequence, PHP might find yourself copying extra knowledge than the newly allotted buffer can accommodate, doubtlessly corrupting stack or heap reminiscence. <\/p>\n<p class=\"wp-block-paragraph\">BCMath initially makes use of a small<a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/gbhackers.com\/google-unveils-gostringungarbler\/\" data-type=\"post\" data-id=\"122972\" target=\"_blank\" rel=\"noreferrer noopener\"> stack-based reminiscence space<\/a> earlier than switching to heap allocation, that means the affect could differ based mostly on the enter and execution atmosphere. <\/p>\n<p class=\"wp-block-paragraph\">Reminiscence corruption vulnerabilities can result in software crashes and, in sure circumstances, could present attackers with a path for extra extreme exploitation. <\/p>\n<p class=\"wp-block-paragraph\">The patch corrects the pointer dealing with after zero truncation, guaranteeing that copied knowledge aligns with the decreased allocation measurement. Safety researcher Recep Asan reported this flaw.<\/p>\n<p class=\"wp-block-paragraph\"><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/github.com\/php\/php-src\/security\/advisories\/GHSA-vc5h-9ppw-p5f3\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">The third vulnerability, CVE-2026-7260, <\/a>entails the Phar extension and is rated as reasonable severity. This situation, tracked as GHSA-vc5h-9ppw-p5f3, arises from uncontrolled recursion within the operate phar_get_link_source() when resolving symbolic hyperlinks in Phar archives. <\/p>\n<p class=\"wp-block-paragraph\">A malicious tar-based Phar archive containing round symbolic hyperlinks could trigger the operate to repeatedly observe hyperlinks with none recursion depth restrict or cycle detection mechanism. <\/p>\n<p class=\"wp-block-paragraph\">This unchecked recursion can exhaust the PHP course of\u2019s C stack, leading to a segmentation fault and course of termination.<\/p>\n<p class=\"wp-block-paragraph\">This Phar-related situation is assessed underneath CWE-400 (uncontrolled useful resource consumption) and CWE-674 (uncontrolled recursion). <\/p>\n<p class=\"wp-block-paragraph\">Its CVSS 3.1 vector means that exploitation requires native assault entry, has low complexity, requires no further privileges, requires consumer interplay, and has a major affect on availability. <\/p>\n<p class=\"wp-block-paragraph\">Though exploiting this vulnerability requires an software or consumer to course of a malicious archive, affected programs could also be in danger when add portals, construct pipelines, package-management workflows, or file-processing companies settle for untrusted .phar or .tar content material. <\/p>\n<p class=\"wp-block-paragraph\">The problem was reported by Calvin Younger of eWalker Consulting and Enoch Chow of Isomorph Cyber. Directors are urged to promptly improve PHP, evaluate dependencies that invoke the affected extensions, and keep away from counting on application-level enter filtering as an alternative choice to patched runtime variations.<\/p>\n<p class=\"has-text-align-center has-background wp-block-paragraph\" style=\"background:linear-gradient(135deg,rgb(238,238,238) 100%,rgb(169,184,195) 100%)\"><strong>ALERT: 20+ authorities websites delivered malware to companies and residents.\u00a0<a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/any.run\/cybersecurity-blog\/phantomenigma-research\/?utm_source=csn&amp;utm_medium=link+placement&amp;utm_campaign=phantomenigma&amp;utm_content=blog&amp;utm_term=210726\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">See full assault analysis<\/a>\u00a0to verify your personal publicity<\/strong>.<\/p>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>PHP maintainers have launched safety updates to handle three vulnerabilities affecting the PostgreSQL, BCMath, and Phar extensions. These vulnerabilities might doubtlessly result in SQL injection assaults, out-of-bounds reminiscence writes, and denial-of-service assaults in weak purposes. The problems affect a number of actively maintained PHP launch branches and have been resolved in variations PHP 8.2.338.2, 8.3.338.3, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17263,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[145,9985,527,6546,1812,1247,2759,6544,2218,211,1808],"class_list":["post-17261","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-attacks","tag-corruption","tag-dos","tag-enabling","tag-flaws","tag-injection","tag-memory","tag-patches","tag-php","tag-security","tag-sql"],"_links":{"self":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/17261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17261"}],"version-history":[{"count":1,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/17261\/revisions"}],"predecessor-version":[{"id":17262,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/17261\/revisions\/17262"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/media\/17263"}],"wp:attachment":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- This website is optimized by Airlift. Learn more: https://airlift.net. Template:. Learn more: https://airlift.net. Template: 69d9690a190636c2e0989534. Config Timestamp: 2026-04-10 21:18:02 UTC, Cached Timestamp: 2026-07-31 09:36:48 UTC -->