OESA-2022-1535

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2022-1535
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2022-1535.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2022-1535
Upstream
Published
2022-02-26T11:03:32Z
Modified
2025-08-12T05:12:24.548968Z
Summary
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)

Database specific
{
    "severity": "High"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / postgresql-jdbc

Package

Name
postgresql-jdbc
Purl
pkg:rpm/openEuler/postgresql-jdbc&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
42.2.25-1.oe1

Ecosystem specific

{
    "noarch": [
        "postgresql-jdbc-javadoc-42.2.25-1.oe1.noarch.rpm",
        "postgresql-jdbc-42.2.25-1.oe1.noarch.rpm",
        "postgresql-jdbc-help-42.2.25-1.oe1.noarch.rpm"
    ],
    "src": [
        "postgresql-jdbc-42.2.25-1.oe1.src.rpm"
    ]
}

openEuler:20.03-LTS-SP2 / postgresql-jdbc

Package

Name
postgresql-jdbc
Purl
pkg:rpm/openEuler/postgresql-jdbc&distro=openEuler-20.03-LTS-SP2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
42.2.25-1.oe1

Ecosystem specific

{
    "noarch": [
        "postgresql-jdbc-42.2.25-1.oe1.noarch.rpm",
        "postgresql-jdbc-javadoc-42.2.25-1.oe1.noarch.rpm",
        "postgresql-jdbc-help-42.2.25-1.oe1.noarch.rpm"
    ],
    "src": [
        "postgresql-jdbc-42.2.25-1.oe1.src.rpm"
    ]
}

openEuler:20.03-LTS-SP3 / postgresql-jdbc

Package

Name
postgresql-jdbc
Purl
pkg:rpm/openEuler/postgresql-jdbc&distro=openEuler-20.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
42.2.25-1.oe1

Ecosystem specific

{
    "noarch": [
        "postgresql-jdbc-javadoc-42.2.25-1.oe1.noarch.rpm",
        "postgresql-jdbc-42.2.25-1.oe1.noarch.rpm",
        "postgresql-jdbc-help-42.2.25-1.oe1.noarch.rpm"
    ],
    "src": [
        "postgresql-jdbc-42.2.25-1.oe1.src.rpm"
    ]
}