# CVE-2022-26520: Path traversal in org.postgresql:postgresql

Source: https://junglewise.ai/threats/cve-2022-26520-pgjdbc-arbitrary-file-write-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-03-11  
License: CC BY 4.0 with a link back

CVE-2022-26520 · Severity: info · Published 2022-03-11

Path traversal in org.postgresql:postgresql

Technologies: [org.postgresql:postgresql (Maven)](https://junglewise.ai/threats/technologies/org-postgresql-postgresql). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-26520 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-26520 being exploited in the wild.

**How severe is CVE-2022-26520?** Informational severity, published 11 March 2022.

**Which products and versions are affected?** org.postgresql:postgresql (Maven) ECOSYSTEM:introduced=42.1.0,fixed=42.3.3.

**Is there a fix for CVE-2022-26520?** Yes. org.postgresql:postgresql (Maven): upgrade to 42.3.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-26520?** Check whether you run org.postgresql:postgresql (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.postgresql:postgresql (Maven): upgrade to 42.3.3 or later

  ```sh
  # set org.postgresql:postgresql to 42.3.3 in your pom.xml or build.gradle
  ```


## Affected products

- org.postgresql:postgresql (Maven) ECOSYSTEM:introduced=42.1.0,fixed=42.3.3

## Identifiers

- CVE-2022-26520
- GHSA-673j-qm5f-xpv8
- GHSA-727h-hrw8-jg8q

## Related threats

- [PostgreSQL pgjdbc authentication downgrade in ScramAuthenticator](https://junglewise.ai/threats/cve-2026-54291-postgresql-pgjdbc-authentication-downgrade-in-scramauthenticator)
- [PostgreSQL pgjdbc denial of service via unbounded SCRAM iterations](https://junglewise.ai/threats/cve-2026-42198-postgresql-pgjdbc-denial-of-service-via-unbounded-scram)
- [pgjdbc Client Allows Fallback to Insecure Authentication Despite channelBinding=require Configuration](https://junglewise.ai/threats/cve-2025-49146-pgjdbc-client-allows-fallback-to-insecure-authentication-despite)
- [org.postgresql:postgresql vulnerable to SQL Injection via line comment generation](https://junglewise.ai/threats/cve-2024-1597-org-postgresql-postgresql-vulnerable-to-sql-injection-via-line)
- [Duplicate Advisory: SQL injection in pgjdbc](https://junglewise.ai/threats/duplicate-advisory-sql-injection-in-pgjdbc-6a4f41dc)
