# Duplicate Advisory: SQL injection in pgjdbc

Source: https://junglewise.ai/threats/duplicate-advisory-sql-injection-in-pgjdbc-6a4f41dc  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-02-19  
License: CC BY 4.0 with a link back

Severity: low · CVSS 3.1 · Published 2024-02-19

Duplicate Advisory: SQL injection in pgjdbc

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

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Low severity, with a CVSS score of 3.1, published 19 February 2024.

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

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

**Am I affected?** 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.7.2 or later

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


## Affected products

- org.postgresql:postgresql (Maven) ECOSYSTEM:introduced=42.7.0,fixed=42.7.2

## 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)
- [TemporaryFolder on unix-like systems does not limit access to created files](https://junglewise.ai/threats/cve-2022-41946-temporaryfolder-on-unix-like-systems-does-not-limit-access-to)
