Vulnerability · Published Jun 1, 2021 · Assigned by redhat

CVE-2021-3515

Medium 6.7

In plain English

A medium-severity command injection in pglogical. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.7Medium
Exploit odds (30 days)0.5%top 60.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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().

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pglogical2.3.3-3DEBIAN-CVE-2021-3515
Debian:13pglogical2.3.3-3DEBIAN-CVE-2021-3515
Debian:14pglogical2.3.3-3DEBIAN-CVE-2021-3515
Ubuntu:22.04:LTSpglogicalno fix listedUBUNTU-CVE-2021-3515
Ubuntu:24.04:LTSpglogicalno fix listedUBUNTU-CVE-2021-3515
Ubuntu:25.10pglogicalno fix listedUBUNTU-CVE-2021-3515
Ubuntu:26.04:LTSpglogicalno fix listedUBUNTU-CVE-2021-3515
Ubuntu:26.10pglogicalno fix listedUBUNTU-CVE-2021-3515

Affected products (as reported)

VendorProductVersions
n/a pglogical pglogical 2.3.4, pglogical 3.6.26

Weakness: CWE-77

References