openEuler Security Advisory
OESA-2022-1535
postgresql-jdbc security update
Details
PostgreSQL JDBC Driver (PgJDBC for short) allows Java programs to connect to a PostgreSQL database using standard, database independent Java code. Is an open source JDBC driver written in Pure Java (Type 4), and communicates in the PostgreSQL native network protocol.
Security Fix(es):
pgjdbc is the offical PostgreSQL JDBC Driver. A security hole was found in the jdbc driver for postgresql database while doing security research. The system using the postgresql library will be attacked when attacker control the jdbc url or properties. pgjdbc instantiates plugin instances based on class names provided via authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, sslpasswordcallback connection properties. However, the driver did not verify if the class implements the expected interface before instantiating the class. This can lead to code execution loaded via arbitrary classes. Users using plugins are advised to upgrade. There are no known workarounds for this issue.(CVE-2022-21724)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| openEuler:20.03-LTS-SP1 | postgresql-jdbc | All versions before 42.2.25-1.oe1 (fixed in 42.2.25-1.oe1) |
| openEuler:20.03-LTS-SP2 | postgresql-jdbc | All versions before 42.2.25-1.oe1 (fixed in 42.2.25-1.oe1) |
| openEuler:20.03-LTS-SP3 | postgresql-jdbc | All versions before 42.2.25-1.oe1 (fixed in 42.2.25-1.oe1) |