cve.bz

CVE-2022-26520

9.8 criticalEPSS 3.0%Fix available

Critical (9.8). EPSS 3.0% estimated probability of exploitation activity in the next 30 days. Fixed in org.postgresql:postgresql 42.3.3.

On this page
In pgjdbc before 42.3.3, an attacker (who controls the jdbc URL or properties) can call java.util.logging.FileHandler to write to arbitrary files through the loggerFile and loggerLevel connection properties. An example situation is that an attacker could create an executable JSP file under a Tomcat web root. NOTE: the vendor's position is that there is no pgjdbc vulnerability; instead, it is a vulnerability for any application to use the pgjdbc driver with untrusted connection properties

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.0% (unchanged from 3.0% a week ago; 3.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-26520 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-26520?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-26520?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-26520 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresql_jdbc_driverfrom 42.1.0 through 42.1.4
postgresql:postgresql_jdbc_driverfrom 42.3.0 before 42.3.3
debian:debian_linux10.0
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-673j-qm5f-xpv8Mavenorg.postgresql:postgresql>=42.1.0 <42.3.342.3.3
GHSA-727h-hrw8-jg8qMavenorg.postgresql:postgresql>=42.1.0 <42.3.342.3.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libpgjava42.2.5-2+deb10u1DSA-5196-1
Debian11libpgjava42.2.15-1+deb11u1DSA-5196-1
Debian12, 13, 14libpgjava42.3.3-1DEBIAN-CVE-2022-26520
SUSELinux Enterprise Module for Server Applications 15 SP3, Manager Server Module 4.2ongres-scram2.1-150300.3.3.4SUSE-FU-2022:2794-1
SUSELinux Enterprise Module for Server Applications 15 SP3, Manager Server Module 4.2ongres-stringprep1.1-150300.7.3.4SUSE-FU-2022:2794-1
SUSELinux Enterprise Module for Server Applications 15 SP3, Manager Server Module 4.2postgresql-jdbc42.2.25-150300.3.5.2SUSE-FU-2022:2794-1
SUSELinux Enterprise Module for Server Applications 15 SP4postgresql-jdbc42.2.25-150400.3.3.2SUSE-SU-2022:2655-1
SUSEManager Proxy 4.1, Manager Retail Branch Server 4.1release-notes-susemanager-proxy4.1.15-150200.3.56.1SUSE-SU-2022:2143-1
SUSEManager Server 4.1release-notes-susemanager4.1.15-150200.3.80.1SUSE-SU-2022:2143-1
SUSEManager Server Module 4.1golang-github-QubitProducts-exporter_exporter0.4.0-150200.6.12.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1golang-github-lusitaniae-apache_exporter0.7.0-150200.2.6.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1golang-github-prometheus-node_exporter1.3.0-150200.3.9.3SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1patterns-suse-manager4.1-150200.6.12.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1postgresql-jdbc42.2.10-150200.3.8.2SUSE-SU-2022:2145-1
SUSEManager Server Module 4.1prometheus-exporters-formula0.9.5-150200.3.31.2SUSE-SU-2022:2145-1
14 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3ongres-scram2.1-150300.3.3.4SUSE-FU-2022:2794-1
openSUSELeap 15.3ongres-stringprep1.1-150300.7.3.4SUSE-FU-2022:2794-1
openSUSELeap 15.3postgresql-jdbc42.2.25-150300.3.5.2SUSE-FU-2022:2794-1
openSUSELeap 15.4postgresql-jdbc42.2.25-150400.3.3.2SUSE-SU-2022:2655-1

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat informs that although there's a difference from NVD CVSSv3 score there's a especial occasion in this CVE that maintain it as a moderate. The scenario for an attacker to get a benefit in this situation requires them to have access to modify a configuration file and write a file where it's needed. This require non-default configuration and also it's not expected to allow an untrusted user to perform this kind of setting.

ProductPackageStateAdvisory
Red Hat Fuse 7.11jdbc-postgresqlFixed 2022-07-07RHSA-2022:5532
RHINT Service Registry 2.3.0 GAjdbc-postgresqlFixed 2022-10-06RHSA-2022:6835
RHPAM 7.13.1 asyncjdbc-postgresqlFixed 2022-10-05RHSA-2022:6813
Red Hat build of Debezium 1jdbc-postgresqlAffected
Red Hat build of Quarkusquarkus-jdbc-postgresqlNot affected
Red Hat Enterprise Linux 6postgresql-jdbcOut of support scope
Red Hat Enterprise Linux 7postgresql-jdbcOut of support scope
Red Hat Enterprise Linux 8libreoffice:flatpak/postgresql-jdbcNot affected
Red Hat Enterprise Linux 8postgresql-jdbcNot affected
Red Hat Enterprise Linux 9libreoffice:flatpak/postgresql-jdbcNot affected
Red Hat Enterprise Linux 9postgresql-jdbcNot affected
Red Hat Integration Camel K 1jdbc-postgresqlWill not fix
Red Hat Integration Camel Quarkus 1jdbc-postgresqlNot affected
Red Hat Integration Data Virtualisation Operatorjdbc-postgresqlOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-26520.

References

Check your stackJSON