pgai — Rce (CVE-2025-52467)
Date: 2025-06
Attack vector: rce
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2025-52467
CWE: CWE-200
CVSS: 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):