Vulnerabilities / CVE-2022-26520

critical

CVE-2022-26520

postgresql-jdbc: Arbitrary File Write Vulnerability

Published Modified
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by Red Hat (medium), GHSA (low).

Description

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

Affected packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasepostgresql-jdbc-driver42.1.5, 42.3.3
debian 10libpgjava42.2.5-2+deb10u1
debian 11libpgjava42.2.15-1+deb11u1
debian 12libpgjava42.3.3-1
debian 13libpgjava42.3.3-1
debian 14libpgjava42.3.3-1
debian 9libpgjavano fix listed
echolibpgjava42.3.3-1
maven::GitHub Security Advisory Mavenorg.postgresql:postgresql42.3.3
Red Hatpostgresql-jdbc, postgresql-jdbc-javadocno fix listed
Show all 11 entries from 10 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasepostgresql-jdbc-driver42.1.5, 42.3.3
debian 10libpgjava42.2.5-2+deb10u1
debian 11libpgjava42.2.15-1+deb11u1
debian 12libpgjava42.3.3-1
debian 13libpgjava42.3.3-1
debian 14libpgjava42.3.3-1
debian 9libpgjavano fix listed
echolibpgjava42.3.3-1
maven::GitHub Security Advisory Mavenorg.postgresql:postgresql42.3.3
Red Hatpostgresql-jdbcno fix listed
Red Hatpostgresql-jdbc-javadocno fix listed

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.