Technical impact
The vulnerability allows a prepared statement cached before a masking rule addition or role change to bypass PostgreSQL Anonymizer’s dynamic masking, exposing previously hidden data until the session ends. This constitutes a confidentiality breach as data intended for masking may be disclosed. The weakness matches CWE-200, highlighting inadequate protection of information. The CVSS score of 5.7 indicates moderate severity.
Affected Systems
Dalibo PostgreSQL Anonymizer is affected in all releases prior to version 3.3.0. Users running any older version without the patch risk that cached plans could reveal sensitive data after role changes or new masking rules are applied.
Risk and Exploitability
The CVSS score of 5.7 reflects moderate impact, and with no EPSS score available the likelihood of exploitation is uncertain but not negligible. The vulnerability can be exploited by an attacker who can influence or observe sessions that rely on prepared statements, such as by adding masking rules or altering roles, thereby causing cached plans to persist and expose unmasked data. The issue is not listed in CISA KEV, so no confirmed exploits are reported yet.