Medium severity · published Jun 4, 2025
CVE-2025-5690
Cursor allows PostgreSQL Anonymizer masked user to gain unauthorized access to authentic data
6.5
CVSS
0.3%
EPSS
No
On KEV
Description
PostgreSQL Anonymizer v2.0 and v2.1 contain a vulnerability that allows a masked user to bypass the masking rules defined on a table and read the original data using a database cursor or the --insert option of pg_dump. This problem occurs only when dynamic masking is enabled, which is not the default setting. The problem is resolved in version 2.2.1
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 28% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PA
PostgreSQL Anonymizer · DALIBO
1 before 2.2.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-5690
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-5690
gitlab.com
https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/531
More from PostgreSQL Anonymizer
8.8
CVE-2026-19633
PostgreSQL Anonymizer: unprivileged masked users can execute code via operators, domain casts and view subqueries
8.8
CVE-2026-9617
PostgreSQL Anonymizer: malicious column name allows SQL injection via anon.k_anonymity() function
8.8
CVE-2024-2339
Improper Input Validation in PostgreSQL Anonymizer 1.2 allows table owner to gain superuser privileges via masking rule
8.0
CVE-2026-2361
Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user with create privilege to gain superuser privileges
8.0
CVE-2026-2360
Improper search_path protection in PostgreSQL Anonymizer 2.5 allows any user to gain superuser privileges in PostgreSQL 14
