{"api_version":"1","generated_at":"2026-07-24T23:43:15+00:00","cve":"CVE-2021-3515","urls":{"html":"https://cve.report/CVE-2021-3515","api":"https://cve.report/api/cve/CVE-2021-3515.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3515","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3515"},"summary":{"title":"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().","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2021-06-01 14:15:00","updated_at":"2022-10-07 20:46:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1954112","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1954112","refsource":"MISC","tags":[],"title":"1954112 – (CVE-2021-3515) CVE-2021-3515 pglogical: Shell injection by pglogical users with CREATEDB access","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3515","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3515","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3515","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"2ndquadrant","cpe5":"pglogical","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3515","qid":"180454","title":"Debian Security Update for pglogical (CVE-2021-3515)"},{"cve":"CVE-2021-3515","qid":"690110","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for pglogical (45b8716b-c707-11eb-b9a0-6805ca0b3d42)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-3515","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"pglogical","version":{"version_data":[{"version_value":"pglogical 2.3.4, pglogical 3.6.26"}]}}]}}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-77"}]}]},"references":{"reference_data":[{"refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1954112","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1954112"}]},"description":{"description_data":[{"lang":"eng","value":"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()."}]}},"nvd":{"publishedDate":"2021-06-01 14:15:00","lastModifiedDate":"2022-10-07 20:46:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"HIGH","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":6.7,"baseSeverity":"MEDIUM"},"exploitabilityScore":0.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":7.2},"severity":"HIGH","exploitabilityScore":3.9,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:2ndquadrant:pglogical:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.6.26","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:2ndquadrant:pglogical:*:*:*:*:*:*:*:*","versionEndExcluding":"2.3.4","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3515","Ordinal":"207138","Title":"CVE-2021-3515","CVE":"CVE-2021-3515","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3515","Ordinal":"1","NoteData":"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().","Type":"Description","Title":null},{"CveYear":"2021","CveId":"3515","Ordinal":"2","NoteData":"2021-06-01","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"3515","Ordinal":"3","NoteData":"2021-06-01","Type":"Other","Title":"Modified"}]}}}