Improper Input Validation Affecting dalibo/postgresql_anonymizer package, versions [,1.3.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.55% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-DALIBOPOSTGRESQLANONYMIZER-6421109
  • published11 Mar 2024
  • disclosed8 Mar 2024
  • creditUnknown

Introduced: 8 Mar 2024

CVE-2024-2339  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade dalibo/postgresql_anonymizer to version 1.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation via the implementation of a masking function for a column that allows malicious code insertion. An attacker can execute arbitrary code and potentially escalate privileges by defining a malicious masking function that is executed when privileged users apply masking rules using static masking or the anonymous dump method.

Note:

This vulnerability is not exploitable by users who do not own a table, particularly masked users.

Workaround

This vulnerability can be mitigated by revoking the CREATE permission to non-superusers

References

CVSS Base Scores

version 3.1