Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

pgjdbc Half-Written Bind SQL Injection (CVE-2026-134843)

CVE-2026-134843 is a SQL injection flaw in pgjdbc, the PostgreSQL JDBC driver distributed as org.postgresql:postgresql.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-134843
Vendor
pgjdbc
Affected Product
PostgreSQL JDBC Driver (org.postgresql:postgresql)
Exploitation
Not confirmed
Published
2026-11-23

An unchecked exception can leave a partial Bind message on an open database connection. A later uploaded value on that connection may then be interpreted as a SQL command, according to the pgjdbc advisory.The issue affects releases before 42.7.15, which the maintainer lists as fixed. Exploitation depends on an application path that accepts attacker-controlled value content and reaches the exception condition. The resulting SQL runs with the application's database role, so that role's permissions determine the possible impact.

What it allows

How Can CVE-2026-134843 Turn a Bind Value Into SQL?

The driver closed a connection after an IOException but left it open after an unchecked exception during parameter transmission. The advisory says a partially written Bind message could remain in the send buffer. PostgreSQL could consume bytes from the next value as the remainder of that message, then read later bytes as a new SQL query.

Teams triaging database driver flaws can use the vulnerability intelligence platform to organize exposure and remediation. The related pgjdbc simple query mode flaw is a separate injection path and needs its own assessment.

The maintainer describes two exception paths. In releases from 42.6.0, executing again after sending a lengthless binary stream over 51,200 bytes can interrupt the Bind. A stream supplied by an application can also throw an unchecked exception in any affected release. A retry after specified database error states is another path described by the maintainer.

The pgjdbc advisory includes a proof of concept for this condition. It requires control over uploaded value content and a connection that first fails in the described way. The query inherits the application's database role; it does not automatically confer administrator privileges.

Brandefense Blackhole recorded one dark-chat item matching this CVE identifier from 26 August to 24 November 2026. This is one discussion item, not evidence of a successful intrusion. The CVE was absent from the CISA KEV catalog snapshot dated 23 November 2026.

Who is affected

Which pgjdbc Releases and Application Paths Are Exposed?

The maintainer lists all pgjdbc versions through 42.7.14 as affected and 42.7.15 as patched. The lengthless binary-stream repeat condition starts in 42.6.0. An application InputStream that throws an unchecked exception can expose earlier affected releases too, according to the advisory.

Inventory the version of org.postgresql:postgresql actually loaded by each Java service, including bundled and shaded copies. Review application paths that upload attacker-controlled values through JDBC streams and may reuse a connection after an unchecked exception. This review narrows priority; it is not a substitute for applying the fixed driver.

After updating, verify the running service loads pgjdbc 42.7.15 or a later vendor-confirmed fixed release. Restart affected services as needed so the upgraded dependency is active, then test the upload and retry paths. Record the verified version and follow the vulnerability management workflow for closure.

Timeline

  1. 2026-11-23

    pgjdbc published GHSA-cww3-qmc2-mjmr, identified affected releases and named 42.7.15 as the fix.

  2. 2026-11-23

    NVD published the CVE-2026-134843 record.

What to do

  1. Inventory loaded drivers

    Find every Java service using org.postgresql:postgresql and identify the pgjdbc version loaded at runtime, including bundled dependencies.

  2. Prioritize exposed upload paths

    Review services that accept user-controlled stream values or reuse connections after unchecked exceptions. Give these paths priority because the advisory requires both conditions.

  3. Update pgjdbc

    Move affected services to pgjdbc 42.7.15 or a later vendor-confirmed fixed release. Use the application's normal dependency and deployment process.

  4. Verify the active fix

    Restart where required, confirm the running process loads the fixed driver, and exercise upload and retry paths in a safe test environment.

  5. Review database permissions

    Check that application database roles have only the permissions required by their workloads. The advisory says injected SQL executes with that role's privileges.

What Brandefense can do

Frequently Asked Questions

What is CVE-2026-134843?

It is a pgjdbc SQL injection flaw in which an unchecked exception leaves a partial Bind message on an open connection. A later value can be read as SQL.

Which pgjdbc version fixes CVE-2026-134843?

The maintainer names 42.7.15 as the patched version. Verify that the running Java process loads that release or a later vendor-confirmed fixed release.

Does the flaw affect every PostgreSQL query?

The advisory requires a particular exception during parameter transmission and attacker control of a later uploaded value. Application behavior and connection reuse determine exposure.

What privileges could injected SQL use?

The maintainer says it runs as the application's database role. Review that role's permissions when assessing potential impact.

Sources

  1. pgjdbc leaves a half-written message on the connection after an unchecked exceptionpgjdbc GitHub Security Advisory
  2. CVE-2026-134843 recordNVD
  3. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →