{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2025-5690",
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "state": "PUBLISHED",
        "assignerShortName": "PostgreSQL",
        "dateReserved": "2025-06-04T18:41:30.661Z",
        "datePublished": "2025-06-04T21:34:47.358Z",
        "dateUpdated": "2025-06-05T18:10:03.492Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
                "shortName": "PostgreSQL",
                "dateUpdated": "2025-06-04T21:34:47.358Z"
            },
            "title": "Cursor allows PostgreSQL Anonymizer masked user to gain unauthorized access to authentic data",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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"
                }
            ],
            "affected": [
                {
                    "defaultStatus": "unaffected",
                    "product": "PostgreSQL Anonymizer",
                    "vendor": "DALIBO",
                    "versions": [
                        {
                            "lessThan": "2.2.1",
                            "status": "affected",
                            "version": "1",
                            "versionType": "rpm"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-200",
                            "type": "CWE",
                            "description": "Exposure of Sensitive Information to an Unauthorized Actor"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/531"
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
                        "baseScore": 6.5,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "configurations": [
                {
                    "lang": "en",
                    "value": "Dynamic masking must be enabled"
                }
            ],
            "workarounds": [
                {
                    "lang": "en",
                    "value": "Disable dynamic masking"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "The PostgreSQL Anonymizer project thanks Jukka Heiskanen for reporting this problem."
                }
            ]
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-06-05T18:09:40.493423Z",
                                "id": "CVE-2025-5690",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-06-05T18:10:03.492Z"
                }
            }
        ]
    }
}