CVE-2025-52467 pgai secrets exfiltration via `pull_request_target`
Attackers can exfiltrate GitHub secrets and gain write access to the repository via a pull_request_target workflow vulnerability in the pgai library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-52467?
CVE-2025-52467 is a critical vulnerability in timescale pgai, published on 19 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
pgai is a Python library that transforms PostgreSQL into a retrieval engine for RAG and Agentic applications. Prior to commit 8eb3567, the pgai repository was vulnerable to an attack allowing the exfiltration of all secrets used in one workflow. In particular, the GITHUB_TOKEN with write permissions for the repository, allowing an attacker to tamper with all aspects of the repository, including pushing arbitrary code and releases. This issue has been patched in commit 8eb3567.
Weakness: CWE-200
Which versions are affected by CVE-2025-52467?
How do I fix CVE-2025-52467?
No fix has been published for CVE-2025-52467 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-52467 being exploited?
There is no known exploitation of CVE-2025-52467 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-89qq-hgvp-x37m.