REDHAT-BUG-2487231: High severity DuckDB DuckDB vulnerability

Published Jun 9, 2026
·
Updated

Repository: migration-planner Priority: High Location: pkg/duckdbparser/inventorybuilder.go:65 → pkg/duckdbparser/builder.go

Description: Users upload RVTools .xlsx exports which DuckDB ingests safely. The inventory builder then runs SELECT DISTINCT "Cluster" FROM vinfo to enumerate cluster names and feeds each returned string back into ~27 query templates via text/template - unescaped, inside single quotes. A spreadsheet cell like x' UNION SELECT readtext('/var/run/secrets/kubernetes.io/serviceaccount/token') -- becomes executable SQL on the second pass.

Security Impact:

DuckDB worker runs in-process inside planner-api pod without sandbox

DuckDB's readtext()/readblob() enable arbitrary file read on pod

Can access Kubernetes service-account token, Postgres credentials, agent-JWT signing key

Single tenant's xlsx upload escalates to full SaaS compromise

Fix Suggestion: Apply existing escapeSQLString() helper (already used for ClusterFeaturesQuery) to every string field of queryParams before template execution. Patch covers all 27 call sites in builder.go. Long-term: prefer DuckDB prepared statements over text/template. See patches/f007.patch.

Affected Software

2 affected components
DuckDB DuckDB
migration-planner

Event History

Jun 9, 2026
Data Sourced
via Red Hat·06:31 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2487231?

The severity of REDHAT-BUG-2487231 is rated as high, with a score of 7.

2

What is the risk associated with REDHAT-BUG-2487231?

The risk associated with REDHAT-BUG-2487231 is classified as a risk level of 33.

3

How does REDHAT-BUG-2487231 affect DuckDB?

REDHAT-BUG-2487231 affects DuckDB by potentially allowing for enumeration of cluster names via improperly handled user-uploaded data.

4

What components are affected by REDHAT-BUG-2487231?

The affected components in REDHAT-BUG-2487231 include the inventory builder and the DuckDB parser.

5

When was REDHAT-BUG-2487231 published?

REDHAT-BUG-2487231 was published on June 9, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203