pgsql extension does not check for errors during escaping
In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* pgsql and pdo_pgsql escaping functions do not check if the underlying quoting functions returned errors. This could cause crashes if Postgres server rejects the string as invalid.
- BDU:2025-10413
- ALSA-2025:23309
- ALSA-2026:1409
- ALSA-2026:1412
- ALSA-2026:2470
- DLA-4254-1
- DSA-5967-1
- openSUSE-SU-2025:15340-1
- RHSA-2025:23309
- RHSA-2026:1409
- RHSA-2026:1412
- RHSA-2026:2470
- RLSA-2025:23309
- RLSA-2026:1409
- RLSA-2026:1412
- RLSA-2026:2470
- SUSE-SU-2025:02462-1
- SUSE-SU-2025:02463-1
- SUSE-SU-2025:02473-1
- SUSE-SU-2025:02474-1
- Published
- Jul 13, 2025
- Updated
- Jun 17, 2026
- EPSS
- 1.0% · 61th percentile
- CWE
- CWE-89
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
30
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.0%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 7.5
- CNA · php
- 5.9
- 1.6 point gap
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php8.1.0 and later · before 8.1.33
- php php8.2.0 and later · before 8.2.29
- php php8.3.0 and later · before 8.3.23
- php php8.4.0 and later · before 8.4.10
Versions reported by the vendor
Affected version ranges reported by the assigning authority (php). Independent of NVD's CPE analysis and usually ahead of it.
PHP Group PHP
- 8.1.* and later · before 8.1.33affected · semver
- 8.2.* and later · before 8.2.29affected · semver
- 8.3.* and later · before 8.3.23affected · semver
- 8.4.* and later · before 8.4.10affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | apcu-panel | before 5.1.18-1.module_el8.6.0+2750+78feabcb | 5.1.18-1.module_el8.6.0+2750+78feabcb |
| AlmaLinux:8 | apcu-panel | before 5.1.23-1.module_el8.10.0+3796+30ed3ef7 | 5.1.23-1.module_el8.10.0+3796+30ed3ef7 |
| AlmaLinux:8 | libzip | before 1.6.1-1.module_el8.10.0+3935+28808425 | 1.6.1-1.module_el8.10.0+3935+28808425 |
| AlmaLinux:8 | libzip | before 1.6.1-1.module_el8.6.0+3239+bedf0508 | 1.6.1-1.module_el8.6.0+3239+bedf0508 |
| AlmaLinux:8 | libzip | before 1.7.3-1.module_el8.10.0+3796+30ed3ef7 | 1.7.3-1.module_el8.10.0+3796+30ed3ef7 |
| AlmaLinux:8 | libzip | before 1.6.1-1.module_el8.6.0+2750+78feabcb | 1.6.1-1.module_el8.6.0+2750+78feabcb |
| AlmaLinux:8 | libzip-devel | before 1.7.3-1.module_el8.10.0+3796+30ed3ef7 | 1.7.3-1.module_el8.10.0+3796+30ed3ef7 |
| AlmaLinux:8 | libzip-devel | before 1.6.1-1.module_el8.6.0+3239+bedf0508 | 1.6.1-1.module_el8.6.0+3239+bedf0508 |
| AlmaLinux:8 | libzip-devel | before 1.6.1-1.module_el8.10.0+3935+28808425 | 1.6.1-1.module_el8.10.0+3935+28808425 |
| AlmaLinux:8 | libzip-tools | before 1.6.1-1.module_el8.6.0+3239+bedf0508 | 1.6.1-1.module_el8.6.0+3239+bedf0508 |
| AlmaLinux:8 | libzip-tools | before 1.6.1-1.module_el8.10.0+3935+28808425 | 1.6.1-1.module_el8.10.0+3935+28808425 |
| AlmaLinux:8 | libzip-tools | before 1.6.1-1.module_el8.6.0+2750+78feabcb | 1.6.1-1.module_el8.6.0+2750+78feabcb |
| AlmaLinux:8 | libzip-tools | before 1.7.3-1.module_el8.10.0+3796+30ed3ef7 | 1.7.3-1.module_el8.10.0+3796+30ed3ef7 |
| AlmaLinux:8 | php | before 7.4.33-3.module_el8.10.0+4114+3b36c618 | 7.4.33-3.module_el8.10.0+4114+3b36c618 |
| AlmaLinux:8 | php | before 8.2.30-1.module_el8.10.0+4108+cff35472 | 8.2.30-1.module_el8.10.0+4108+cff35472 |
| AlmaLinux:8 | php-bcmath | before 8.2.30-1.module_el8.10.0+4108+cff35472 | 8.2.30-1.module_el8.10.0+4108+cff35472 |
| AlmaLinux:8 | php-bcmath | before 7.4.33-3.module_el8.10.0+4114+3b36c618 | 7.4.33-3.module_el8.10.0+4114+3b36c618 |
| AlmaLinux:8 | php-cli | before 8.2.30-1.module_el8.10.0+4108+cff35472 | 8.2.30-1.module_el8.10.0+4108+cff35472 |
| AlmaLinux:8 | php-cli | before 7.4.33-3.module_el8.10.0+4114+3b36c618 | 7.4.33-3.module_el8.10.0+4114+3b36c618 |
| AlmaLinux:8 | php-common | before 7.4.33-3.module_el8.10.0+4114+3b36c618 | 7.4.33-3.module_el8.10.0+4114+3b36c618 |
| AlmaLinux:8 | php-common | before 8.2.30-1.module_el8.10.0+4108+cff35472 | 8.2.30-1.module_el8.10.0+4108+cff35472 |
| AlmaLinux:8 | php-dba | before 8.2.30-1.module_el8.10.0+4108+cff35472 | 8.2.30-1.module_el8.10.0+4108+cff35472 |
| AlmaLinux:8 | php-dba | before 7.4.33-3.module_el8.10.0+4114+3b36c618 | 7.4.33-3.module_el8.10.0+4114+3b36c618 |
| AlmaLinux:8 | php-dbg | before 8.2.30-1.module_el8.10.0+4108+cff35472 | 8.2.30-1.module_el8.10.0+4108+cff35472 |
+96
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle queKEV99Now
- CVE-2018-7584In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while pa65This week
- CVE-2018-19518University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launches an rsh command (by means of 59Plan
- CVE-2016-3078Multiple integer overflows in php_zip.c in the zip extension in PHP before 7.0.6 allow remote attackers to cause a denial of service (heap-b56Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| PHP Group PHP | 8.1.33 | Vendor (CNA) |
| PHP Group PHP | 8.2.29 | Vendor (CNA) |
| PHP Group PHP | 8.3.23 | Vendor (CNA) |
| PHP Group PHP | 8.4.10 | Vendor (CNA) |
| cbl2 php 8.1.32-1 on CBL Mariner 2.0 | 8.1.33-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 php 8.1.33-1 on CBL Mariner 2.0 | 8.1.33-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| almalinux:apcu-panel | 5.1.23-1.module_el9.6.0+151+5f31e576 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-bcmath | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-cli | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-common | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-dba | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-dbg | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-devel | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-embedded | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-enchant | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-ffi | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:php-fpm | 8.3.26-1.module_el9.7.0+197+324afee8 · AlmaLinux:9 | Package registry (OSV) |
| debian:php7.4 | 7.4.33-1+deb11u9 · Debian:11 | Package registry (OSV) |
| debian:php8.2 | 8.2.29-1~deb12u1 · Debian:12 | Package registry (OSV) |
| debian:php8.4 | 8.4.10-1 · Debian:13 | Package registry (OSV) |
| opensuse:apache2-mod_php7 | 7.4.33-150400.4.51.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:php7 | 7.4.33-150400.4.51.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:php7-embed | 7.4.33-150400.4.51.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:php7-fastcgi | 7.4.33-150400.4.51.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:php7-fpm | 7.4.33-150400.4.51.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:php7-test | 7.4.33-150400.4.51.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| red hat:apcu-panel | 0:5.1.23-1.module+el9.6.0+22647+1741ae35 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:php | 0:8.3.26-1.module+el9.7.0+23549+c13c2ce3 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:php-bcmath | 0:8.3.26-1.module+el9.7.0+23549+c13c2ce3 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
+30
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- Andres Freundreporter
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2026-17543382 days apartSQL injection in ext-pgsql via E'...' backslash breakout32Monitor
- CVE-2025-14179301 days apartSQL injection in pdo_firebird via NUL bytes in quoted strings29Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Root cause
The query text is built by concatenating user input. The database cannot tell where the data ends and the command begins.
The bug in code
The whole CWE-89 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const owner = req.query.owner;const rows = await db.query( "SELECT * FROM files WHERE owner = '" + owner + "'");Fixed
const owner = req.query.owner;const rows = await db.query( "SELECT * FROM files WHERE owner = $1", [owner]);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Expanding Control over the Operating System from the DatabaseCAPEC-470Very High
- SQL InjectionCAPEC-66likelihood: High · High
- Blind SQL InjectionCAPEC-7likelihood: High · High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/php/php-src/security/advisories/GHSA-hrwm-9436-5mv3
- www.openwall.com/lists/oss-security/2025/07/11/4
- lists.debian.org/debian-lts-announce/2025/07/msg00017.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.