Bug 2582081 (CVE-2026-134842)

Summary: CVE-2026-134842 postgresql-jdbc: org.postgresql/postgresql: postgresql-jdbc: SQL injection via improper parameter quoting
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ant, aschwart, asyoung, aszczucz, boliveir, ccranfor, cescoffi, cmah, csuconic, dbruscin, drichtar, eglynn, ehelms, ewittman, fmongiar, gmalinko, gsmet, gtully, janstey, jjoyce, jmartisk, jpasqual, jpechane, jpretori, jschluet, jsherman, juwatts, kaycoth, kvanderr, lblicha, lhh, manderse, mburns, mgarciac, mhulan, mposolda, nipatil, ogajduse, olubyans, osousa, ozzy, pantinor, pdelbell, pjindal, prichard, rchan, rgemmell, rgodfrey, rguimara, rhel-process-autobot, rkubis, rmartinc, rstepani, sbiarozk, sdawley, smallamp, ssilvert, sthirugn, sthorger, tbish, tlavocat, tmielke, varjain, vmuzikar, watson-tool-maintainers, zhunting
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in postgresql-jdbc. When simple query mode is configured, the driver can incorrectly quote string parameters if database string escaping settings change during a session or if cached statements are reused across different settings. An attacker can exploit this vulnerability by submitting specially crafted input containing escape characters, allowing them to terminate string literals prematurely and execute arbitrary SQL queries. This can lead to unauthorized data exposure, modification, or deletion in the database.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-23 19:41:37 UTC
pgjdbc, the PostgreSQL JDBC Driver, can quote a string parameter for the wrong value of standard_conforming_strings when preferQueryMode=simple is set. A statement, trigger or configuration reload can turn the setting off during a session. A parameter value with a backslash and a quote then ends the literal, and the rest of the value runs as SQL. Before 42.7.6 any session with the setting off was affected. The statement cache can also reuse a parse made under the other setting. With allowEncodingChanges=true and the EUC_JP or SJIS client encoding, the yen sign acts as a backslash. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.