Skip to content
Heist/ feed
Back to feed
CriticalFix available

libpgjava — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2022-26520

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

Products
libpgjava
Affected versions
Not specified
Fixed versions
42.3.3-1
CVEs
CVE-2022-26520
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:48 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-26520

core-osv · Original source

Published 10 Mar 2022, 17:47 UTC

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

osv:DEBIAN-CVE-2022-26520

libpgjava

Fixed versions: 42.3.3-1

libpgjava

Fixed versions: 42.3.3-1

libpgjava

Fixed versions: 42.3.3-1

Complete source record
{
  "id": "b2ee317a5e138f9028b3be790e37b50d5ba24b0f21bd390b043bfebc2b10dea3",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-26520",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-26520",
    "summary": "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",
    "evidence": "osv:DEBIAN-CVE-2022-26520",
    "products": [
      {
        "name": {
          "value": "libpgjava",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "42.3.3-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libpgjava",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "42.3.3-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libpgjava",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "42.3.3-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2022-26520",
      "aliases": [
        "DEBIAN-CVE-2022-26520"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "42.3.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libpgjava",
            "purl": "pkg:deb/debian/libpgjava?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-26520.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "42.3.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libpgjava",
            "purl": "pkg:deb/debian/libpgjava?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-26520.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "42.3.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libpgjava",
            "purl": "pkg:deb/debian/libpgjava?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-26520.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:02:16.383927065Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-26520"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-26520"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-26520",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 323343,
  "published_at": "2022-03-10T17:47:45.81+00:00"
}