UpTrajectory Review

AI Uncovers Critical Vulnerabilities in PostgreSQL and MariaDB

time bomb buried under data servers
Photo: Brett Sayles / Pexels

UpTrajectory Review

AI-powered security analysis has surfaced multiple severe vulnerabilities in PostgreSQL and MariaDB, two of the most widely deployed open-source databases in production environments. Researchers using Xint Code identified a heap buffer overflow in PostgreSQL's pgcrypto extension (CVE-2026-2005) that has lurked undetected since 2005, plus a separate arbitrary code execution flaw in PostgreSQL validation logic, and a JSON schema validation bug in MariaDB—all permitting remote code execution on vulnerable servers. Both database maintainers have released patches and are urging immediate upgrades across all supported versions.

For small-business operators and IT teams running PostgreSQL or MariaDB, exposure here is acute and direct. If your application relies on pgcrypto to handle encryption or hashing, or if your database processes untrusted user input through JSON schema validation, your server is exposed to remote takeover without authentication. The twenty-year window of exposure means legacy deployments, development environments, and neglected instances are all equally at risk. Patching is not optional: the attack requires no special network access, no credentials, and leaves a small footprint.

The genuine news is not that vulnerabilities exist—code always has bugs—but that AI tooling is now finding decade-old flaws that human audits and conventional scanning missed. That's progress and also a reckoning. The pgcrypto extension, shipped with PostgreSQL by default, has been in use since 2005, yet this buffer overflow survived two decades of review. It tells us that even mature, widely scrutinized open-source projects harbor critical gaps. The speed of patch release (patches are already live) is noteworthy and positive, but the long latency of discovery is a warning: your own infrastructure may harbor similar time bombs.

The downstream effects ripple outward quickly. Teams running unpatched PostgreSQL 18, 17, 16, 15, or 14 need to prioritize upgrades within days, not weeks. Any service accepting user input for encryption or JSON processing is highest risk. Larger operators will face testing and staging delays; smaller shops may be forced to skip versions or defer other maintenance. Organizations that cannot patch immediately should restrict network access to affected database servers and monitor for exploitation attempts. The discovery of two separate vulnerabilities in PostgreSQL alone suggests the attack surface remains poorly understood.

Act now: check your PostgreSQL and MariaDB versions immediately using SELECT version(); against each live instance. Cross-reference against the fixed versions listed (PostgreSQL v18.2, v17.8, v16.12, v15.16, v14.21 at minimum). If you run pgcrypto or JSON schema validation, treat this as critical. Test patches in staging today; plan production rollout for this week. If you cannot patch immediately, document the risk and implement network segmentation or WAF rules to limit database exposure. Watch Wiz's zeroday.cloud disclosures going forward—AI-powered auditing is now an active force in vulnerability discovery, and competitors will follow.

“The vulnerable code has been present since pgcrypto was first contributed in 2005, more than 20 years ago.” — InfoWorld

Takeaway: Patch PostgreSQL and MariaDB now—two critical remote-code-execution flaws have been lurking for decades.

Excerpt from the original — InfoWorld

Open-source databases are facing a bit of a memory problem as AI helps surface decades-old buffer overflow issues in widely used components. Security researchers have disclosed a set of high and critical-severity vulnerabilities affecting PostgreSQL and MariaDB, with two bugs reportedly tracing their roots back more than 20 years.

At Wiz’s zeroday.cloud hacking event, researchers using the AI-powered security analysis tool “Xint Code” found a high-severity zero-day bug in PostgreSQL’s “pgcrypto” extension, and a heap buffer overflow in MariaDB’s JSON schema validation logic, both allowing remote code execution (RCE) on respective database servers.

The Xint Code team also uncovered a missing validation bug in PostgreSQL, hidden for 20 years, allowing attackers to write arbitrary code.

Patches have been released for all these flaws, with both PostgreSQL and MariaDB maintainers …