CVEfocus › CVE database › CVE-2022-26520

CVE-2022-26520

CVSS 9.8 CriticalEPSS 2.7% (higher than 87% of CVEs)Published 2022-03-07Updated 2024-08-03Assigner: mitre

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

What to do

Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
3Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libpgjavaNot affected
vulnerable_code_not_present
Ubuntu 22.04libpgjavaNot affected
vulnerable_code_not_present
Ubuntu 16.04libpgjavaFix pending
Ubuntu 14.04libpgjavaFix pending
Debian 14libpgjavaFixed42.3.3-1DEBIAN-CVE-2022-26520
Debian 13libpgjavaFixed42.3.3-1DEBIAN-CVE-2022-26520
Debian 12libpgjavaFixed42.3.3-1DEBIAN-CVE-2022-26520
Red Hat Enterprise Linux 9postgresql-jdbcNot affected
Red Hat Enterprise Linux 8postgresql-jdbcNot affected
Red Hat Enterprise Linux 8postgresql-jdbc-javadocNot affected
Red Hat Enterprise Linux 7postgresql-jdbcWill not fix
Out of support scope
Red Hat Enterprise Linux 7postgresql-jdbc-javadocWill not fix
Out of support scope
Red Hat Enterprise Linux 6postgresql-jdbcWill not fix
Out of support scope
Maven libraryorg.postgresql:postgresqlFixed42.3.3GHSA-673j-qm5f-xpv8

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.