Quick answers
- Is CVE-2026-61820 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-61820 being exploited in the wild.
- How severe is CVE-2026-61820?
- High severity, with a CVSS score of 8.5, published 18 September 2026.
- Which products and versions are affected?
- Pgpartman Pg Partman before 5.5.0.
- Is there a fix for CVE-2026-61820?
- A patch was published on 2026-07-22: Fixed in v5.5.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-61820 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2026-61820?
- Check whether you run Pgpartman Pg Partman at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The inherit_template_properties() function fails to escape double-quote characters in column names extracted from the pg_attribute system catalog before inserting them into an ALTER TABLE ADD PRIMARY KEY statement. A partman_user can craft a column name containing embedded quotes to break out of the identifier context and inject arbitrary SQL. The malicious SQL executes with the privileges of pg_partman_bgw.role, which defaults to PostgreSQL superuser. This is a second-order injection: the crafted identifier is stored in the catalog and exploited each time the background worker applies the key to new child partitions.
Affected products
- pgpartman pg_partman before 5.5.0
Timeline
- 2026-09-18: disclosed: CVE-2026-61820 published
- 2026-07-22: patched: Fixed in v5.5.0