{"id":"UBUNTU-CVE-2021-3515","details":"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().","modified":"2026-01-20T17:23:22.670204Z","published":"2021-06-01T14:15:00Z","upstream":["CVE-2021-3515"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-3515"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1954112"},{"type":"REPORT","url":"https://github.com/2ndQuadrant/pglogical/commit/95c0e8981485e09efab6821cf55a4e27b086efe5"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-3515"}],"affected":[{"package":{"name":"pglogical","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pglogical@2.1.1-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-1","2.1.0-1","2.1.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.1-1","binary_name":"postgresql-10-pglogical"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3515.json"}},{"package":{"name":"pglogical","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pglogical@2.3.0-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.2-1","2.3.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.3.0-1","binary_name":"postgresql-12-pglogical"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3515.json"}},{"package":{"name":"pglogical","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pglogical@2.4.1-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.3-3","2.4.0-2","2.4.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.1-1","binary_name":"postgresql-14-pglogical"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3515.json"}},{"package":{"name":"pglogical","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pglogical@2.4.4-1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.3-1ubuntu1","2.4.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.4-1","binary_name":"postgresql-16-pglogical"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3515.json"}},{"package":{"name":"pglogical","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pglogical@2.4.5-1build1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.5-1","2.4.5-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.5-1build1","binary_name":"postgresql-17-pglogical"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3515.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}