{"id":"CVE-2025-1735","state":"PUBLISHED","title":"pgsql extension does not check for errors during escaping","description":"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.","publishedAt":"2025-07-13T22:27:48.299Z","updatedAt":"2025-11-04T21:09:33.172Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"php"},"assigner":"php","products":["PHP Group PHP"],"affected":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"version":"8.1.*","status":"affected","lessThan":"8.1.33","versionType":"semver"},{"version":"8.2.*","status":"affected","lessThan":"8.2.29","versionType":"semver"},{"version":"8.3.*","status":"affected","lessThan":"8.3.23","versionType":"semver"},{"version":"8.4.*","status":"affected","lessThan":"8.4.10","versionType":"semver"}],"modules":["pgsql","pdo_pgsql"]}],"references":["https://github.com/php/php-src/security/advisories/GHSA-hrwm-9436-5mv3","https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html","http://www.openwall.com/lists/oss-security/2025/07/11/4"],"weaknesses":["CWE-89","CWE-476"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/1xxx/CVE-2025-1735.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-1735","state":"PUBLISHED","datePublished":"2025-07-13T22:27:48.299Z","dateUpdated":"2025-11-04T21:09:33.172Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2025-02-27T04:04:57.553Z"},"containers":{"cna":{"title":"pgsql extension does not check for errors during escaping","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"version":"8.1.*","status":"affected","lessThan":"8.1.33","versionType":"semver"},{"version":"8.2.*","status":"affected","lessThan":"8.2.29","versionType":"semver"},{"version":"8.3.*","status":"affected","lessThan":"8.3.23","versionType":"semver"},{"version":"8.4.*","status":"affected","lessThan":"8.4.10","versionType":"semver"}],"modules":["pgsql","pdo_pgsql"]}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-hrwm-9436-5mv3"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","description":"CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-476","description":"CWE-476 NULL Pointer Dereference","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"php","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateUpdated":"2025-07-13T22:27:48.299Z"},"credits":[{"lang":"en","type":"reporter","value":"Andres Freund"}],"datePublic":"2025-07-03T12:27:00.000Z","source":{"advisory":"GHSA-hrwm-9436-5mv3","discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-07-14T15:58:08.629332Z","id":"CVE-2025-1735","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-07-14T15:58:13.474Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html"},{"url":"http://www.openwall.com/lists/oss-security/2025/07/11/4"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-04T21:09:33.172Z"}}]}}}