Freeing unallocated memory in php_pgsql_free_params()
Published Jun 16, 2022 · Updated Nov 3, 2026
Original summary
Normalized public record · Updated Nov 3, 2026
Freeing unallocated memory in php_pgsql_free_params()
Publisher and source text is retained separately from QFinch interpretation.
QFinch assessment
In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when using Postgres database extension, supplying invalid parameters to the parametrized query may lead to PHP attempting to free memory using uninitialized data as pointers. This could lead to RCE vulnerability or denial of service.
Evidence: public source recordsAffected products
| Affected package, product or range | Fix status |
|---|---|
| Consult the referenced vendor advisory for affected versions. | Consult source advisory |
Matching a version is only one part of assessing exposure. QFinch has not assessed your environment on this public page.
Remediation
Apply the vendor-supported fixed release or mitigation, then verify the affected component is no longer reachable.
- Confirm the affected product and reachable code path exist in your environment.
- Apply the vendor-supported patch or mitigation from the primary advisory.
- Rescan the exact deployed revision and retain verification evidence.
Evidence coverage
- SSVC priority
- MEDIUM
- Confidence
- Not available
- Aliases
- None reported
Scores appear only when corresponding evidence exists. Missing data is never interpreted as zero risk.
Sources and record history
- bugs.php.net ↗
- FEDORA-2022-0a96e5b9b1 ↗
- FEDORA-2022-f3fc52428e ↗
- DSA-5179 ↗
- security.netapp.com ↗
- GLSA-202209-20 ↗
- [debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security update ↗
Record history
Published Jun 16, 2022 · Last refreshed Nov 3, 2026