CVE-2021-3515: OS Command Injection
A flaw was found in pglogical 2.3.3 and earlier, 3.6.25 and earlier. A user having CREATEDB privilege on a PostgreSQL server can craft a database name that allows execution of shell commands as the postgresql user when calling pglogical.createsubscription().
Other sources
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.createsubscription().
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/pglogicalto a version that resolves this vulnerability.Fixed in 2.3.4 - Upgrade
Upgrade
redhat/pglogicalto a version that resolves this vulnerability.Fixed in 3.6.26 - Upgrade
Upgrade
pglogicalto a version that resolves this vulnerability.Fixed in 2.3.4 - Upgrade
Upgrade
pglogicalto a version that resolves this vulnerability.Fixed in 3.6.26
Event History
Frequently Asked Questions
What is the severity of CVE-2021-3515?
CVE-2021-3515 is categorized as a high-severity vulnerability due to its potential to allow shell command execution.
How do I fix CVE-2021-3515?
To mitigate CVE-2021-3515, upgrade to pglogical version 2.3.4 or 3.6.26 or later.
Who is affected by CVE-2021-3515?
CVE-2021-3515 affects users with CREATEDB privileges on PostgreSQL servers utilizing vulnerable pglogical versions.
What type of vulnerability is CVE-2021-3515?
CVE-2021-3515 is a shell injection vulnerability that enables executing unauthorized commands.
What actions should I take if I can't upgrade for CVE-2021-3515?
If unable to upgrade for CVE-2021-3515, consider revoking CREATEDB privileges from users until a fix is applied.