cve.bz

CVE-2022-2625 Prototype Pollution

8.0 highEPSS 2.2%

High (8.0). EPSS 2.2% estimated probability of exploitation activity in the next 30 days.

On this page
A vulnerability was found in PostgreSQL. This attack requires permission to create non-temporary objects in at least one schema, the ability to lure or wait for an administrator to create or update an affected extension in that schema, and the ability to lure or wait for a victim to use the object targeted in CREATE OR REPLACE or CREATE IF NOT EXISTS. Given all three prerequisites, this flaw allows an attacker to run arbitrary code as the victim role, which may be a superuser.

Severity

CVSS 3.1

8.0 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
2.2% (unchanged from 2.2% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-1321 Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution)
CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-2625 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-2625?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-2625?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-2625 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresqlfrom 10.0 before 10.22
postgresql:postgresqlfrom 11.0 before 11.17
postgresql:postgresqlfrom 12.0 before 12.12
postgresql:postgresqlfrom 13.0 before 13.8
postgresql:postgresqlfrom 14.0 before 14.5
postgresql:postgresql15:beta1
postgresql:postgresql15:beta2
fedoraproject:fedora36
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:enterprise_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10postgresql-1111.17-0+deb10u1DLA-3072-1
Ubuntu18.04:LTSpostgresql-1010.22-0ubuntu0.18.04.1UBUNTU-CVE-2022-2625 USN-5571-1
Ubuntu20.04:LTSpostgresql-1212.12-0ubuntu0.20.04.1UBUNTU-CVE-2022-2625 USN-5571-1
Ubuntu22.04:LTSpostgresql-1414.5-0ubuntu0.22.04.1UBUNTU-CVE-2022-2625 USN-5571-1
UbuntuPro:14.04:LTSpostgresql-9.3no fix listedUBUNTU-CVE-2022-2625
UbuntuPro:16.04:LTSpostgresql-9.5no fix listedUBUNTU-CVE-2022-2625
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.5.0+11354+78b3c9c5RHSA-2022:7128
Red Hatenterprise_linux:8::appstreampg_repack, pg_repack-debuginfo, pg_repack-debugsource0:1.4.6-3.module+el8.5.0+11357+bcc62552RHSA-2023:1576
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-5.module+el8.5.0+11354+78b3c9c5RHSA-2022:7128
Red Hatenterprise_linux:8::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.5.0-1.module+el8.4.0+8873+b821c30aRHSA-2023:1576
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.4.0+8873+b821c30aRHSA-2023:1576
Red Hatenterprise_linux:8::appstreampostgres-decoderbufs, postgres-decoderbufs-debuginfo, postgres-decoderbufs-debugsource0:0.10.0-2.module+el8.5.0+11354+78b3c9c5RHSA-2022:7128
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:10.23-1.module+el8.7.0+17280+3a452e1fRHSA-2023:0113
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:12.12-1.module+el8.6.0+16796+0abe6678RHSA-2022:7128
Red Hatenterprise_linux:8::appstreampostgresql, postgresql-docs, postgresql-test and 22 more0:13.10-1.module+el8.7.0+18279+1ca8cf12RHSA-2023:1576
Red Hatenterprise_linux:9::appstreampostgresql, postgresql-pltcl, postgresql-plperl and 18 more0:13.10-1.el9_1RHSA-2023:1693
Red Hatenterprise_linux:9::crbpostgresql-docs, postgresql-test, postgresql-static and 16 more0:13.10-1.el9_1RHSA-2023:1693
Red Hatrhel_aus:8.2::appstream, rhel_e4s:8.2::appstream, rhel_tus:8.2::appstreampgaudit, pgaudit-debuginfo, pgaudit-debugsource0:1.4.0-4.module+el8.2.0+9043+1dbb5661RHSA-2023:7667
15 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 13 morepostgresql1010.22-150100.8.50.1SUSE-SU-2022:2946-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morepostgresql12.0.1-150000.8.19.1SUSE-SU-2022:2893-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 morepostgresql1212.12-150100.3.33.1SUSE-SU-2022:2958-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 11 morepostgresql1414.5-150200.5.17.1SUSE-SU-2022:2989-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 10 morepostgresql1313.8-150200.5.31.1SUSE-SU-2022:2987-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morepostgresql1212.12-150200.8.35.1SUSE-SU-2022:2988-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morepostgresql1010.22-150000.4.42.1SUSE-SU-2022:2893-1
SUSELinux Enterprise Module for Package Hub 15 SP4postgresql1414.5-150200.5.17.1SUSE-SU-2022:2989-2
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 6 morepostgresql14-4.17.2SUSE-SU-2022:3193-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 6 morepostgresql1010.22-4.31.1SUSE-SU-2022:2914-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 6 morepostgresql1414.5-3.14.9SUSE-SU-2022:3269-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5postgresql1212.12-3.30.2SUSE-SU-2022:3193-1
1 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3, Leap 15.4postgresql1010.22-150100.8.50.1SUSE-SU-2022:2946-1
openSUSELeap 15.3, Leap 15.4postgresql1212.12-150200.8.35.1SUSE-SU-2022:2988-1
openSUSELeap 15.3, Leap 15.4postgresql1313.8-150200.5.31.1SUSE-SU-2022:2987-1
openSUSELeap 15.3, Leap 15.4postgresql1414.5-150200.5.17.1SUSE-SU-2022:2989-1
openSUSETumbleweedpostgresql1010.22-1.1openSUSE-SU-2024:12264-1
openSUSETumbleweedpostgresql1111.17-1.1openSUSE-SU-2024:12265-1
openSUSETumbleweedpostgresql1212.12-1.1openSUSE-SU-2024:12266-1
openSUSETumbleweedpostgresql1313.8-1.1openSUSE-SU-2024:12267-1
openSUSETumbleweedpostgresql1414.5-1.1openSUSE-SU-2024:12268-1
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+2760+1746ec94ALSA-2022:7128 ALSA-2023:1576
AlmaLinux8pg_repack1.4.6-3.module_el8.6.0+3095+ee60d910ALSA-2022:7128 ALSA-2023:1576
AlmaLinux8pgaudit1.4.0-5.module_el8.6.0+2758+4f4474dfALSA-2022:7128
AlmaLinux8pgaudit1.4.0-5.module_el8.6.0+3094+eb237fb8ALSA-2022:7128
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+2760+1746ec94ALSA-2023:1576
AlmaLinux8pgaudit1.5.0-1.module_el8.6.0+3095+ee60d910ALSA-2023:1576
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+2760+1746ec94ALSA-2022:7128 ALSA-2023:1576
AlmaLinux8postgres-decoderbufs0.10.0-2.module_el8.6.0+3095+ee60d910ALSA-2022:7128 ALSA-2023:1576
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 10 more10.23-1.module_el8.7.0+3379+54d21c26ALSA-2023:0113
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 10 more12.12-1.module_el8.6.0+3336+e779e518ALSA-2022:7128
AlmaLinux8postgresql, postgresql-docs, postgresql-test and 10 more13.10-1.module_el8.7.0+3498+cb1ef3c6ALSA-2023:1576
AlmaLinux9postgresql, postgresql-docs, postgresql-test and 11 more13.10-1.el9_1ALSA-2023:1693
Rocky Linux8pg_repack0:1.4.6-3.module+el8.5.0+684+c3892ef9RLSA-2022:7128 RLSA-2023:1576
Rocky Linux8pgaudit0:1.4.0-5.module+el8.5.0+686+20453eccRLSA-2022:7128
Rocky Linux8pgaudit0:1.5.0-1.module+el8.5.0+684+c3892ef9RLSA-2023:1576
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.4.0+424+71d47d9aRLSA-2022:7128
Rocky Linux8postgres-decoderbufs0:0.10.0-2.module+el8.5.0+684+c3892ef9RLSA-2022:7128 RLSA-2023:1576
Rocky Linux8postgresql0:10.23-1.module+el8.7.0+1118+c6c6f44aRLSA-2023:0113
Rocky Linux8postgresql0:12.12-1.module+el8.6.0+1049+f8fc4c36RLSA-2022:7128
Rocky Linux8postgresql0:13.10-1.module+el8.7.0+1175+026203e7RLSA-2023:1576
Alpinev3.13, v3.14postgresql13.8-r0ALPINE-CVE-2022-2625
Alpinev3.15, v3.16postgresql1414.5-r0ALPINE-CVE-2022-2625
Alpinev3.15, v3.16, v3.17 and 1 morepostgresql1212.12-r0ALPINE-CVE-2022-2625
Alpinev3.15, v3.16, v3.17 and 2 morepostgresql1313.8-r0ALPINE-CVE-2022-2625
Alpinev3.17, v3.18, v3.19 and 1 morepostgresql14, postgresql1514.5-r0ALPINE-CVE-2022-2625
Azure Linux2postgresql14.5-1AZL-10595

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Known-affected extensions include both PostgreSQL-bundled and non-bundled extensions. PostgreSQL blocks this attack in the core server, so there's no need to modify individual extensions.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8postgresql:12-8060020221003080350.ad008a3aFixed 2022-10-25RHSA-2022:7128
Red Hat Enterprise Linux 8postgresql:10-8070020221124143148.bd1311edFixed 2023-01-12RHSA-2023:0113
Red Hat Enterprise Linux 8postgresql:13-8070020230227142544.bd1311edFixed 2023-04-04RHSA-2023:1576
Red Hat Enterprise Linux 8.2 Advanced Update Supportpostgresql:12-8020020231128165246.4cda2c84Fixed 2023-12-06RHSA-2023:7667
Red Hat Enterprise Linux 8.2 Telecommunications Update Servicepostgresql:12-8020020231128165246.4cda2c84Fixed 2023-12-06RHSA-2023:7667
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutionspostgresql:12-8020020231128165246.4cda2c84Fixed 2023-12-06RHSA-2023:7667
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:12-8040020231127153301.522a0ee4Fixed 2023-12-07RHSA-2023:7694
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportpostgresql:13-8040020231127154806.522a0ee4Fixed 2023-12-07RHSA-2023:7695
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicepostgresql:12-8040020231127153301.522a0ee4Fixed 2023-12-07RHSA-2023:7694
Red Hat Enterprise Linux 8.4 Telecommunications Update Servicepostgresql:13-8040020231127154806.522a0ee4Fixed 2023-12-07RHSA-2023:7695
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionspostgresql:12-8040020231127153301.522a0ee4Fixed 2023-12-07RHSA-2023:7694
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionspostgresql:13-8040020231127154806.522a0ee4Fixed 2023-12-07RHSA-2023:7695
Red Hat Enterprise Linux 8.6 Extended Update Supportpostgresql:13-8060020231114115246.ad008a3aFixed 2023-11-29RHSA-2023:7580
Red Hat Enterprise Linux 9postgresql-0:13.10-1.el9_1Fixed 2023-04-11RHSA-2023:1693
Red Hat Enterprise Linux 9.0 Extended Update Supportpostgresql-0:13.13-1.el9_0Fixed 2023-11-28RHSA-2023:7545
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-postgresql10-postgresql-0:10.23-1.el7Fixed 2023-01-12RHSA-2023:0160
Red Hat Enterprise Linux 6postgresqlOut of support scope
Red Hat Enterprise Linux 7postgresqlOut of support scope
Red Hat Software Collectionsrh-postgresql12-postgresqlWill not fix
Red Hat Software Collectionsrh-postgresql13-postgresqlWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-2625.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON