Medium
Cursor allows PostgreSQL Anonymizer masked user to gain unauthorized access to authentic data
Type: advisorySources: OSV
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
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-5690
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 02:40 UTC · Revision 1
Source evidence
Cursor allows PostgreSQL Anonymizer masked user to gain unauthorized access to authentic data
core-osv · Original sourcePublished 4 Jun 2025, 21:34 UTC
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
osv:CVE-2025-5690
Complete source record
{
"id": "2ebbfb74bfead90c3dde6924c2e3c8fb2110d1aec5ec0adabc5d44676d7088c4",
"url": "https://osv.dev/vulnerability/CVE-2025-5690",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Cursor allows PostgreSQL Anonymizer masked user to gain unauthorized access to authentic data",
"summary": "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",
"evidence": "osv:CVE-2025-5690",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-5690",
"aliases": [
"CVE-2025-5690"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitlab.com/dalibo/postgresql_anonymizer",
"type": "GIT",
"events": [
{
"introduced": "c79d5b610629a197f1eb4c868168c8cba9db4868"
},
{
"fixed": "cd28788d0dfb48615fc680dd36c021235b8c1c76"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1"
},
{
"fixed": "2.2.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.2.1"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-5690.json"
}
}
],
"modified": "2026-10-28T02:30:49.089725661Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5690.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-5690",
"https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/531"
],
"provider_metadata": {
"cwe_ids": [
"CWE-200"
],
"cna_assigner": "PostgreSQL",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5690.json"
}
},
"related_cves": [
{
"value": "CVE-2025-5690",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517436,
"published_at": "2025-06-04T21:34:47.358+00:00"
}