← Back to results
Vulnerability record · public intelligence
CVE-2022-31625
HIGH

Freeing unallocated memory in php_pgsql_free_params()

Published Jun 16, 2022 · Updated Nov 3, 2026

Severity · CVSSHIGH · Not scored
Known exploitationNot listed
EPSS / likelihood3.79%
QFinch risk scoreNot available

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 records

Affected products

Affected scope reported by the available public evidence
Affected package, product or rangeFix 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.

  1. Confirm the affected product and reachable code path exist in your environment.
  2. Apply the vendor-supported patch or mitigation from the primary advisory.
  3. Rescan the exact deployed revision and retain verification evidence.
Review primary references

Evidence coverage

FIRST-EPSSCVE-LIST-V5
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

  1. bugs.php.net ↗
  2. FEDORA-2022-0a96e5b9b1 ↗
  3. FEDORA-2022-f3fc52428e ↗
  4. DSA-5179 ↗
  5. security.netapp.com ↗
  6. GLSA-202209-20 ↗
  7. [debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security update ↗

Record history

Published Jun 16, 2022 · Last refreshed Nov 3, 2026