Prototype Pollution in PostgreSQL
CVE-2022-2625
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.
Vulnerability class: Mass Assignment
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.0 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.022, 82.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PostgreSQL — versions 15
- Fedoraproject Fedora — versions 36
- Red Hat Enterprise Linux — versions 6.0, 7.0, 8.0
- PostgreSQL — versions postgresql 14.5, postgresql 13.8, postgresql 12.12, postgresql 11.17, postgresql 10.22
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, lekctut/sdb-hw-13-01, pedr0alencar/vlab-metasploitable2). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- www.postgresql.org/about/news/postgresql-145-138-1212-1117-1022-and-15-beta-3-r… (Release Notes, Vendor Advisory)
- security.gentoo.org/glsa/202211-04 (vendor-advisory, Third Party Advisory)