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
- 2026-11-23
pgjdbc published its advisory and identified 42.7.15 as the fixed version.
What to do
-
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.
-
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.
-
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.
-
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
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-134841 in Brandefense Atlas
The Atlas record of CVE-2026-134841: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
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.