CVE-2021-3515: OS Command Injection

Published Apr 27, 2021
·
Updated

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

4 affected componentsFixes available
redhat/pglogical<2.3.4
2.3.4
redhat/pglogical<3.6.26
3.6.26
2ndquadrant Pglogical<2.3.4
2ndquadrant Pglogical>=3.0.0<3.6.26

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/pglogical to a version that resolves this vulnerability.

    Fixed in 2.3.4
  2. Upgrade

    Upgrade redhat/pglogical to a version that resolves this vulnerability.

    Fixed in 3.6.26
  3. Upgrade

    Upgrade pglogical to a version that resolves this vulnerability.

    Fixed in 2.3.4
  4. Upgrade

    Upgrade pglogical to a version that resolves this vulnerability.

    Fixed in 3.6.26

Event History

Apr 27, 2021
Data Sourced
via Red Hat·03:36 PM
DescriptionSeverityAffected Software
Jun 1, 2021
CVE Published
via MITRE·01:31 PM
Data Sourced
via MITRE·01:31 PM
DescriptionWeakness
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

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.

3

Who is affected by CVE-2021-3515?

CVE-2021-3515 affects users with CREATEDB privileges on PostgreSQL servers utilizing vulnerable pglogical versions.

4

What type of vulnerability is CVE-2021-3515?

CVE-2021-3515 is a shell injection vulnerability that enables executing unauthorized commands.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203