PostgreSQL Anonymizer: SQL injection in the rules import functions
PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a JSON document and placing malicious code inside a particular key-value pair. If a superuser calls the import_database_rules() or import_roles_rules() functions, the malicious code is executed with superuser privileges. The problem is resolved in PostgreSQL Anonymizer 3.1.1 and further versions
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-11945
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 03:22 UTC · Revision 1
Source evidence
PostgreSQL Anonymizer: SQL injection in the rules import functions
core-osv · Original sourcePublished 11 Jun 2026, 15:53 UTC
PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a JSON document and placing malicious code inside a particular key-value pair. If a superuser calls the import_database_rules() or import_roles_rules() functions, the malicious code is executed with superuser privileges. The problem is resolved in PostgreSQL Anonymizer 3.1.1 and further versions
osv:CVE-2026-11945
Complete source record
{
"id": "bbe64ff69ebcd1d5209026c8dbee33984de067756b66eb6548ffb6e9269bc35f",
"url": "https://osv.dev/vulnerability/CVE-2026-11945",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "PostgreSQL Anonymizer: SQL injection in the rules import functions",
"summary": "PostgreSQL Anonymizer contains a vulnerability that allows a user to gain superuser privileges by creating a JSON document and placing malicious code inside a particular key-value pair. If a superuser calls the import_database_rules() or import_roles_rules() functions, the malicious code is executed with superuser privileges. The problem is resolved in PostgreSQL Anonymizer 3.1.1 and further versions",
"evidence": "osv:CVE-2026-11945",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-11945",
"aliases": [
"CVE-2026-11945"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://gitlab.com/dalibo/postgresql_anonymizer",
"type": "GIT",
"events": [
{
"introduced": "c79d5b610629a197f1eb4c868168c8cba9db4868"
},
{
"fixed": "93c55744e9e5bdf4a18e88082dbfa0ad0ff22f10"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1"
},
{
"fixed": "3.1.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"cpe": "cpe:2.3:a:dalibo:postgresql_anonymizer:*:*:*:*:*:postgresql:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.1.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-11945.json"
}
}
],
"modified": "2026-10-28T02:30:53.404758327Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/11xxx/CVE-2026-11945.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-11945",
"https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/643"
],
"provider_metadata": {
"cwe_ids": [
"CWE-89"
],
"cna_assigner": "PostgreSQL",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/11xxx/CVE-2026-11945.json"
}
},
"related_cves": [
{
"value": "CVE-2026-11945",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 522168,
"published_at": "2026-06-11T15:53:24.223+00:00"
}