RCE in 2ndquadrant Pglogical

CVE-2021-3515

A shell injection flaw was found in pglogical in versions before 2.3.4 and before 3.6.26. An attacker with CREATEDB privileges on a PostgreSQL server can craft a database name that allows execution of shell commands as the postgresql user when calling pglogical.create_subscription().

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.005 (37.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-3515?
CVE-2021-3515 is a medium-severity vulnerability in 2ndquadrant Pglogical, classified under Command Injection. CVSS score: 6.7/10. Published 2021-06-01.
How severe is CVE-2021-3515?
Medium severity. CVSS v3 base score is 6.7 out of 10.