CVE-2023-22847
NixOS vulnerability analysis and mitigation

Overview

An information disclosure vulnerability exists in pg_ivm versions prior to 1.5.1. An Incrementally Maintainable Materialized View (IMMV) created by pg_ivm may reflect rows with Row-Level Security that the owner of the IMMV should not have access to. The vulnerability was discovered and disclosed in March 2023, affecting the PostgreSQL extension module pg_ivm (JVN Advisory, GitHub Release).

Technical details

The vulnerability occurs during view maintenance which is performed under the view owner privilege. When a modified table has Row Level Security (RLS) policy, rows in that table must be accessed by the privilege of the IMMV owner during view maintenance, and rows invisible to the view owner must not appear in the IMMV. However, the security check was not properly handled, allowing rows that should be inaccessible to the view owner to appear in the view contents when the view was refreshed incrementally during queries containing multiple types of commands, such as modifying CTE with INSERT and UPDATE, or MERGE commands. The vulnerability has been assigned a CVSS v3.1 base score of 4.3 MEDIUM (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) (NVD, JVN Advisory).

Impact

As a result of this vulnerability, information in tables protected by Row-Level Security may be retrieved by a user who is not authorized to access it. This could lead to unauthorized exposure of sensitive data that should be restricted by the Row-Level Security policies (GitHub Release).

Mitigation and workarounds

The vulnerability has been fixed in pg_ivm version 1.5.1. Users are advised to update to this version or later. The fix properly implements row level security checks during view maintenance to ensure that rows invisible to the view owner do not appear in the IMMV (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68120MEDIUM5.4
  • NixOSNixOS
  • go
NoYesDec 30, 2025
CVE-2025-69413MEDIUM5.3
  • NixOSNixOS
  • code.gitea.io/gitea
NoYesJan 01, 2026
CVE-2025-15412MEDIUM4.8
  • NixOSNixOS
  • wabt
NoNoJan 01, 2026
CVE-2025-15411MEDIUM4.8
  • NixOSNixOS
  • wabt
NoNoJan 01, 2026
CVE-2025-68932LOW2.9
  • NixOSNixOS
  • freshrss
NoYesDec 27, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management