{"id":"CVE-2021-3515","aliases":["DEBIAN-CVE-2021-3515","EUVD-2021-26833","GHSA-pg8h-w6r7-prw8","UBUNTU-CVE-2021-3515"],"status":"published","title":"A shell injection flaw was found in pglogical in versions before 2.3.4 and before 3.6.26. An...","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().","severity":{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.0046,"percentile":0.4026,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77","CWE-78"],"published":"2021-06-01T13:31:40Z","modified":"2026-10-24T10:30:58Z","fixes":[{"ecosystem":"Debian:12","package":"pglogical","fixed_in":["2.3.3-3"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"pglogical","fixed_in":["2.3.3-3"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"pglogical","fixed_in":["2.3.3-3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.3-3"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.3-3"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.3-3"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.0.0-1","2.1.0-1","2.1.1-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.2-1","2.3.0-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.3-3","2.4.0-2","2.4.1-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.3-1ubuntu1","2.4.4-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.5-1","2.4.5-1build1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.6-2","2.4.7-1","2.4.8-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"pglogical","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.5-1build1","2.4.6-1","2.4.6-2"]}],"products":[{"vendor":"2ndquadrant","product":"pglogical"},{"vendor":"enterprisedb","product":"pglogical"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1954112","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3515"},{"url":"https://github.com/advisories/GHSA-pg8h-w6r7-prw8"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3515","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3515","tags":["report"]},{"url":"https://github.com/2ndQuadrant/pglogical/commit/95c0e8981485e09efab6821cf55a4e27b086efe5","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3515","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3515","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().","status":"published","published":"2021-06-01T13:31:40Z","modified":"2024-08-03T16:53:17.757Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:33:04.360272Z"}],"euvd":[{"id":"EUVD-2021-26833","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().","status":"published","published":"2021-06-01T13:31:40Z","modified":"2024-08-03T16:53:17Z","updated_at":"2026-11-03T03:25:13.052236Z"}],"ghsa":[{"id":"GHSA-pg8h-w6r7-prw8","title":"A shell injection flaw was found in pglogical in versions before 2.3.4 and before 3.6.26. An...","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().","status":"published","published":"2022-05-24T19:03:43Z","modified":"2023-01-28T05:07:40Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:44:33.554453Z"}],"nvd":[{"id":"CVE-2021-3515","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().","status":"published","published":"2021-06-01T14:15:10.337Z","modified":"2026-06-17T04:05:16.36Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:06:53.987491Z"}],"osv":[{"id":"CVE-2021-3515","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().","status":"published","published":"2021-06-01T14:15:10.337Z","modified":"2026-10-24T10:30:58.488089529Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-3515","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().","status":"published","published":"2021-06-01T14:15:10.337Z","modified":"2026-10-23T18:04:00.231037568Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-3515","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().","status":"published","published":"2021-06-01T14:15:00Z","modified":"2026-10-17T12:56:00.725105865Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:27.870979Z"}]}}
