# CVE-2021-3515: A shell injection flaw was found in pglogical in versions before 2.3.4 and before 3.6.26.

- Severity: Medium 6.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2021-06-01T13:31:40.000Z
- Modified: 2026-06-17T04:05:16.360Z
- Weaknesses: CWE-77, CWE-78
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- pglogical: pglogical 2.3.4, pglogical 3.6.26
- 2ndquadrant pglogical: before 2.3.4; from 3.0.0 before 3.6.26

## Every score

- NVD: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1954112> (issue-tracking, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3515](https://www.cve.org/CVERecord?id=CVE-2021-3515), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3515](https://nvd.nist.gov/vuln/detail/CVE-2021-3515), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3515 · Whole record: https://cve.day/CVE-2021-3515.json · Rebuilt by cve.day 2026-11-25T22:58:01.609Z
