Security Advisory: Privileged ClickHouse access through the Grafana data source in PMM

August 19, 2026
Author
Ben Judge
Share this Post:

Date of release: 19 August 2026
Severity: High
Affected product: PMM
Impacted versions: 3.9.0 and below

Summary

Percona has recently been made aware of a security vulnerability affecting PMM. We take the security of our products and the protection of our customers’ data with the utmost seriousness.
This advisory describes the vulnerability, the immediate steps you can take to protect your deployment, and the permanent fix.

Vulnerability details

  • CVE identifier number: Pending, this advisory will be updated once assigned 
  • CVSS score: 8.7 (High)

PMM’s Grafana instance allows signed-in users, including those with the Viewer role, to call raw data source APIs. If anonymous access has been explicitly enabled (it is off by default), unauthenticated users can also reach these APIs. 

Through the Grafana ClickHouse data source, such a user can submit arbitrary SQL. The data source connects to ClickHouse as the default identity, which holds global DDL, DML, and SOURCES privileges and can make outbound HTTP requests.

Chained together, this allows an attacker to reach AWS IMDSv1, obtain a live EC2 role session, read a Terraform remote-state object from S3, and authenticate as the PMM/Grafana administrator.

Impact

An unauthenticated attacker can cross the public Grafana boundary into internal databases, AWS instance metadata, S3 remote state, and the PMM administrator account. This yields renewable cloud credentials and a remote-state file that can contain many independently reusable secrets and private infrastructure details. 

The severity of impact depends on deployment configuration. The full IMDS-to-credential chain requires anonymous access to be enabled (off by default) and the PMM Server to be running on AWS EC2 with IMDSv1. 

All deployments are affected by the arbitrary SQL execution via the ClickHouse data source.

Remediation

This vulnerability is fixed in PMM 3.9.1, scheduled for release on August 19, 2026. Upgrade as soon as it is available.

Mitigation

If you cannot upgrade immediately, run the script below to close the exploitation path. It creates a least-privilege ClickHouse user for Grafana and points the ClickHouse data source at it, replacing the default superuser and making the exploitation of the vulnerability impossible. 

 

Before running the script, back up your PMM Server and save the pmm-data volume. 

Run the script as follows: 

Support & additional resources

If you require further clarification or assistance, we are available 24/7:

Contact

For questions about this advisory, upgrade planning, or to discuss options for unsupported major versions, open a case via the Percona Customer Portal or contact your Percona Customer Success Manager. 

For other security-related questions, write to [email protected].

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted

Resources

RELATED POSTS

Far
Enough.

Said no pioneer ever.
MySQL, PostgreSQL, InnoDB, MariaDB, MongoDB and Kubernetes are trademarks for their respective owners.
© 2026 Percona All Rights Reserved