---
id: "CVE-2026-111440"
kind: "vulnerability"
aliases: ["CVE-2026-111440"]
title: "openGauss JDBC driver: logger class name loads arbitrary classes on client"
severity: "high"
cvss: 7.0
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["java", "jdbc", "opengauss", "package", "self-hosted"]
not_affected_if: ["no-user-controlled-jdbc-url", "static-connection-strings"]
published_at: "2026-10-19T04:17:03+00:00"
first_seen_at: "2026-10-23T21:57:17+00:00"
updated_at: "2026-10-25T03:38:24+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-111440", "first_seen_at": "2026-10-23T21:57:17+00:00"}]
---

# openGauss JDBC driver: logger class name loads arbitrary classes on client

The openGauss JDBC driver's LogFactory loads a class named in the JDBC URL or connection properties and calls its String constructor before checking it implements Log. An attacker who controls the JDBC URL or a connection property can trigger unintended class loading and constructor side effects on the client.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the openGauss JDBC driver version in the project dependencies; affected versions are 1.1.0 and later 2.x, 3.x, 5.x, 6.x (including 6.0.6) and 7.0.0-RC1 through 7.0.0-RC3.
- Search application code and configuration for JDBC URLs or connection properties that set a logger class name, where user input can reach them.

## Fix

- Upgrade openGauss-connector-jdbc to the 7.0.0-LTS release, which applies the asSubclass(Log.class) check before construction.
- Until upgraded, do not pass user-controlled values into JDBC URL or connection properties.

## Timeline

- 2026-10-23T21:57:17+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-111440

## From the sources

在 openGauss-connector-jdbc 的 pgjdbc/src/main/java/org/postgresql/log/LogFactory.java 中，LogFactory 根据 JDBC 连接参数中的 logger 类名调用 Class.forName 加载类后，直接反射调用以 String 为参数的构造函数，再转换为 Log。缺少 asSubclass(Log.class) 校验，非 Log 实现类也会在类型检查前被实例化。因此，当攻击者可控制 JDBC URL 或连接属性中的 logger 类名，且客户端 classpath 中存在可被加载的类时，可能在客户端触发非预期的类加载与构造副作用。

此漏洞自 JDBC 1.1.0引入，影响 1.1.0 及之后的 2.x、3.x、5.x、6.x 各版本及补丁（含 6.0.0 分支最新 6.0.6），以及 7.0.0-RC1、7.0.0-RC2、7.0.0-RC3，并在 7.0.0-LTS 版本修复。修复在 Class.forName 之后先执行 asSubclass(Log.class)，仅允许 Log 子类进入构造。修复pr见https://gitcode.com/opengauss/openGauss-connector-jdbc/pull/423。

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
