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

pgjdbc JDBC Escape Parser SQL Injection (CVE-2026-134841)

CVE-2026-134841 is an SQL injection flaw in pgjdbc, the PostgreSQL JDBC driver.

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

CVE-2026-134841 is an SQL injection flaw in pgjdbc, the PostgreSQL JDBC driver. The pgjdbc advisory says its query parser can treat correctly quoted application input as SQL. An attacker who controls such input could execute SQL with the application's database role.pgjdbc published the advisory on 23 November 2026. The affected Maven package is org.postgresql:postgresql at version 42.7.14 or earlier, and 42.7.15 is the fixed release. Exposure depends on the application's query structure and the parser conditions described below.

What it allows

How Does CVE-2026-134841 Work?

According to pgjdbc, several parser mistakes can cause disagreement between the driver and PostgreSQL about where quoted text ends. In one path, a character inside quoted text closes a JDBC escape for the driver. The driver then translates later quoted content as SQL, although the application quoted that value.

The advisory also describes mishandled dollar-quoted text, escape strings and two JDBC function translations. Each path needs its stated query pattern; ordinary use of the driver alone does not establish exploitability. The escape-string parameter path additionally needs simple query mode. pgjdbc says escape processing is enabled by default.

If attacker-controlled text reaches one of those query patterns, the resulting SQL runs as the application's database role. That makes the role's permissions and the exposed input paths central to triage. A correctly quoted value can still be affected because the error occurs during the driver's parsing step.

Review code paths where external values enter JDBC escape expressions or the quoted-string forms named in the advisory. Treat this review as our defensive reading of the vendor's preconditions, not as a published detection signature. For related CVE context, see the Vulnerability Intelligence platform alongside that application review.

Who is affected

Which pgjdbc Versions and Applications Are Affected?

The pgjdbc advisory lists org.postgresql:postgresql versions 42.7.14 and earlier as affected. Version 42.7.15 is patched. Inventory the resolved pgjdbc version in each deployed Java application, including packaged or transitive copies of the driver.

Prioritize applications that place externally controlled values in the advisory's JDBC escape, dollar-quoted or escape-string conditions. For the parameter path involving escape strings, verify whether the connection uses simple query mode. These conditions identify where the vendor's described parser failure can matter.

Use the patch management process to track the replacement across running builds. The SQL injection overview explains why a database role's permissions affect impact. The advisory gives a single upper version boundary, so compare each resolved dependency manually with 42.7.15.

For risk context, Brandefense Blackhole counted one dark chat record mentioning CVE-2026-134841 from 25 August through 23 November 2026. The unit is a chat record, and the source is the dispatcher-prepared own-data.md count. That mention does not verify an incident or active exploitation. The CVE was absent from CISA's KEV catalog snapshot dated 23 November 2026.

Timeline

  1. 2026-11-23

    pgjdbc published its advisory and identified 42.7.15 as the fixed version.

What to do

  1. Inventory deployed pgjdbc copies

    Find deployed applications and resolved org.postgresql:postgresql versions. Flag 42.7.14 and earlier, including transitive and packaged driver copies.

  2. Review exposed query patterns

    Check whether externally controlled values reach the quoted-text and JDBC escape patterns identified by pgjdbc. Include simple query mode when reviewing the escape-string parameter path.

  3. Upgrade and verify

    Update pgjdbc to 42.7.15 or later. After deployment, verify the resolved driver version in every running build and repeat affected application tests.

  4. Limit database-role impact

    Review the privileges of application database roles on affected services. This is our defensive recommendation based on the advisory's stated execution context.

What Brandefense can do

Frequently Asked Questions

What causes CVE-2026-134841?

pgjdbc says its query parser can disagree with PostgreSQL about quoted text. Under specific query patterns, the driver can turn correctly quoted input into executable SQL.

Which pgjdbc release fixes the flaw?

The pgjdbc advisory identifies 42.7.15 as fixed. Inventory deployed org.postgresql:postgresql copies and verify the resolved version after upgrading.

Does the flaw affect every query using pgjdbc?

The advisory describes particular JDBC escape, dollar-quote and escape-string conditions. Review whether external values reach those patterns before assigning application exposure.

What privileges could injected SQL have?

According to pgjdbc, SQL would run with the application's database role. Review that role's permissions when assessing potential impact.

Sources

  1. pgjdbc parses quoted text as SQL in JDBC escapes, dollar quotes and E stringspgjdbc
  2. CVE-2026-134841 DetailNIST NVD
  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 →