Skip to main content
Vulnerability Database/CVE-2026-100387

CVE-2026-100387: pgPointcloud Information Disclosure Flaw

CVE-2026-100387 is an information disclosure vulnerability in pgPointcloud that enables authenticated users to read adjacent heap memory through crafted pcpatch values. This post covers technical details, affected versions, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-100387 Overview

CVE-2026-100387 is a heap out-of-bounds read vulnerability [CWE-125] in pgPointcloud through version 1.2.5. The flaw resides in the dimensional patch Well-Known Binary (WKB) deserialization routine in lib/pc_bytes.c. Authenticated PostgreSQL users can supply crafted pcpatch values with attacker-controlled size fields. The deserializer trusts these size fields without bounds validation, causing it to copy adjacent heap memory into stored patches. Attackers can retrieve this memory through subsequent queries to exfiltrate sensitive data from the PostgreSQL backend process, or trigger a crash resulting in denial of service.

Critical Impact

Authenticated attackers can read adjacent heap memory from the PostgreSQL backend and exfiltrate sensitive data or crash the database server.

Affected Products

  • pgPointcloud versions through 1.2.5
  • PostgreSQL deployments with the pgPointcloud extension installed
  • Spatial database environments relying on pgPointcloud for point cloud storage

Discovery Timeline

  • 2026-09-25 - CVE-2026-100387 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-100387

Vulnerability Analysis

The vulnerability exists in the dimensional patch WKB deserialization code path within pc_bytes.c (lines 1347-1373 in v1.2.5). pgPointcloud reads size fields from attacker-supplied WKB payloads to determine how many bytes to copy into the resulting patch structure. The code does not validate that these declared sizes fit within the actual payload buffer. As a result, memory copy operations extend past the end of the input buffer and into unrelated heap memory. The copied bytes are then stored inside the resulting pcpatch value and returned to the client on subsequent reads.

Root Cause

The root cause is missing bounds validation during deserialization of untrusted binary input. The deserializer treats the embedded size fields as authoritative rather than cross-checking them against the actual length of the supplied WKB blob. This classic input-validation failure [CWE-125] allows the parser to walk beyond allocated memory. Because the oversized read result is persisted into database-stored patches, the leaked heap contents become readable through normal SQL queries.

Attack Vector

Exploitation requires an authenticated database role with permission to insert or update pcpatch values. The attacker crafts a WKB blob whose header advertises a size larger than the payload actually contains. When pgPointcloud deserializes the blob, it reads adjacent heap memory belonging to the PostgreSQL backend process. The attacker then queries the stored patch to extract the leaked bytes. Alternatively, read operations that cross unmapped memory pages trigger a segmentation fault, terminating the backend and causing denial of service. See the VulnCheck Advisory for PointCloud and GitHub Issue #387 for technical details.

Detection Methods for CVE-2026-100387

Indicators of Compromise

  • Unexpected PostgreSQL backend crashes with SIGSEGV signals correlated with pgPointcloud queries
  • INSERT or UPDATE statements targeting pcpatch columns from non-administrative database roles
  • Abnormally sized or malformed WKB payloads submitted to pgPointcloud functions
  • SELECT queries returning pcpatch values with unusual binary content inconsistent with legitimate point cloud data

Detection Strategies

  • Audit PostgreSQL logs for repeated backend terminations tied to pgPointcloud function calls
  • Inventory PostgreSQL instances to identify extensions at or below pgPointcloud 1.2.5
  • Enable log_statement = 'mod' to capture INSERT/UPDATE operations against point cloud tables for review

Monitoring Recommendations

  • Monitor PostgreSQL postmaster restart events and backend crash counters
  • Track database role activity against point cloud schemas and flag unexpected writers
  • Alert on query patterns that insert binary patches followed by immediate selective reads of the same rows

How to Mitigate CVE-2026-100387

Immediate Actions Required

  • Identify all PostgreSQL databases with the pgPointcloud extension installed and record their versions
  • Restrict INSERT and UPDATE privileges on pcpatch columns to trusted roles only
  • Review recent writes to point cloud tables for suspicious or malformed WKB payloads
  • Apply the upstream fix referenced in GitHub Pull Request #388 once a tagged release is available

Patch Information

The fix is tracked in the pgPointcloud project through GitHub Pull Request #388, which addresses the issue reported in GitHub Issue #387. Administrators should rebuild the extension from a patched source tree and reinstall it into each affected PostgreSQL cluster. Validate the fix in a staging environment before promoting to production. Reference the pgPointcloud repository for build instructions.

Workarounds

  • Revoke write access to point cloud tables from untrusted or low-privilege database roles until patched
  • Place pgPointcloud-enabled databases behind application layers that validate WKB payload sizes before insertion
  • Isolate pgPointcloud workloads on dedicated PostgreSQL instances to limit the scope of any memory disclosure
bash
# Restrict pcpatch write access to a trusted role
REVOKE INSERT, UPDATE ON TABLE pointcloud_data FROM PUBLIC;
GRANT INSERT, UPDATE ON TABLE pointcloud_data TO trusted_loader_role;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.