CVE-2022-31625
HIGH8.1EPSS 1.5%Freeing unallocated memory in php_pgsql_free_params()
Published: 6/16/2022Modified: 4/28/2026
Description
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.
Affected packages (5)
- Bitnami/libphp>= 7.4.0, < 7.4.30, >= 8.0.0, < 8.0.20, >= 8.1.0, < 8.1.7
- Bitnami/php>= 7.4.0, < 7.4.30, >= 8.0.0, < 8.0.20, >= 8.1.0, < 8.1.7
- Bitnami/php-min>= 7.4.0, < 7.4.30, >= 8.0.0, < 8.0.20, >= 8.1.0, < 8.1.7
- Debian/php7.4from 0, < 7.4.30-1+deb11u1
- Debian/php7.4from 0, < 7.4.30-1+deb11u1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (9)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-31625
- WEBhttps://bugs.php.net/bug.php?id=81720
- WEBhttps://lists.debian.org/debian-lts-announce/2022/12/msg00030.html
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3T4MMEEZYYAEHPQMZDFN44PHORJWJFZQ/
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZZTZQKRGEYJT5UB4FGG3MOE72SQUHSL4/
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-31625
- WEBhttps://security.gentoo.org/glsa/202209-20
- WEBhttps://security.netapp.com/advisory/ntap-20220722-0005/
- WEBhttps://www.debian.org/security/2022/dsa-5179