Lookup for vulnerable packages by Package URL.

Purlpkg:maven/org.postgresql/postgresql@42.5.0
Typemaven
Namespaceorg.postgresql
Namepostgresql
Version42.5.0
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version42.5.1
Latest_non_vulnerable_version42.7.7
Affected_by_vulnerabilities
0
url VCID-6r4u-tem9-vkey
vulnerability_id VCID-6r4u-tem9-vkey
summary
org.postgresql:postgresql vulnerable to SQL Injection via line comment generation
# Impact
SQL injection is possible when using the non-default connection property `preferQueryMode=simple` in combination with application code that has a vulnerable SQL that negates a parameter value.

There is no vulnerability in the driver when using the default query mode. Users that do not override the query mode are not impacted.

# Exploitation

To exploit this behavior the following conditions must be met:

1. A placeholder for a numeric value must be immediately preceded by a minus (i.e. `-`)
1. There must be a second placeholder for a string value after the first placeholder on the same line. 
1. Both parameters must be user controlled.

The prior behavior of the driver when operating in simple query mode would inline the negative value of the first parameter and cause the resulting line to be treated as a `--` SQL comment. That would extend to the beginning of the next parameter and cause the quoting of that parameter to be consumed by the comment line. If that string parameter includes a newline, the resulting text would appear unescaped in the resulting SQL.

When operating in the default extended query mode this would not be an issue as the parameter values are sent separately to the server. Only in simple query mode the parameter values are inlined into the executed SQL causing this issue.

# Example

```java
PreparedStatement stmt = conn.prepareStatement("SELECT -?, ?");
stmt.setInt(1, -1);
stmt.setString(2, "\nWHERE false --");
ResultSet rs = stmt.executeQuery();
```

The resulting SQL when operating in simple query mode would be:

```sql
SELECT --1,'
WHERE false --'
```

The contents of the second parameter get injected into the command. Note how both the number of result columns and the WHERE clause of the command have changed. A more elaborate example could execute arbitrary other SQL commands.

# Patch
Problem will be patched upgrade to 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, 42.2.28, 42.2.28.jre7

The patch fixes the inlining of parameters by forcing them all to be serialized as wrapped literals. The SQL in the prior example would be transformed into:

```sql
SELECT -('-1'::int4), ('
WHERE false --')
```

# Workarounds
Do not use the connection property`preferQueryMode=simple`. (*NOTE: If you do not explicitly specify a query mode then you are using the default of `extended` and are not impacted by this issue.*)
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2024-1597.json
reference_id
reference_type
scores
0
value 9.8
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2024-1597.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2024-1597
reference_id
reference_type
scores
0
value 0.00476
scoring_system epss
scoring_elements 0.64825
published_at 2026-04-02T12:55:00Z
1
value 0.00476
scoring_system epss
scoring_elements 0.64888
published_at 2026-04-12T12:55:00Z
2
value 0.00476
scoring_system epss
scoring_elements 0.64897
published_at 2026-04-11T12:55:00Z
3
value 0.00476
scoring_system epss
scoring_elements 0.6488
published_at 2026-04-09T12:55:00Z
4
value 0.00476
scoring_system epss
scoring_elements 0.64865
published_at 2026-04-08T12:55:00Z
5
value 0.00476
scoring_system epss
scoring_elements 0.64815
published_at 2026-04-07T12:55:00Z
6
value 0.00476
scoring_system epss
scoring_elements 0.64853
published_at 2026-04-04T12:55:00Z
7
value 0.00508
scoring_system epss
scoring_elements 0.6635
published_at 2026-04-16T12:55:00Z
8
value 0.00508
scoring_system epss
scoring_elements 0.66315
published_at 2026-04-13T12:55:00Z
9
value 0.00508
scoring_system epss
scoring_elements 0.66389
published_at 2026-04-29T12:55:00Z
10
value 0.00508
scoring_system epss
scoring_elements 0.66374
published_at 2026-04-24T12:55:00Z
11
value 0.00508
scoring_system epss
scoring_elements 0.66351
published_at 2026-04-21T12:55:00Z
12
value 0.00508
scoring_system epss
scoring_elements 0.66366
published_at 2026-04-18T12:55:00Z
13
value 0.00508
scoring_system epss
scoring_elements 0.66364
published_at 2026-05-05T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2024-1597
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-1597
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-1597
3
reference_url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
reference_id
reference_type
scores
0
value 9.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
4
reference_url https://github.com/pgjdbc/pgjdbc
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc
5
reference_url https://github.com/pgjdbc/pgjdbc/commit/06abfb78a627277a580d4df825f210e96a4e14ee
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc/commit/06abfb78a627277a580d4df825f210e96a4e14ee
6
reference_url https://github.com/pgjdbc/pgjdbc/commit/93b0fcb2711d9c1e3a2a03134369738a02a58b40
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc/commit/93b0fcb2711d9c1e3a2a03134369738a02a58b40
7
reference_url https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56
reference_id
reference_type
scores
0
value 10
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
2
value CRITICAL
scoring_system cvssv3.1_qr
scoring_elements
3
value CRITICAL
scoring_system generic_textual
scoring_elements
4
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2024-04-10T04:00:36Z/
url https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56
8
reference_url https://nvd.nist.gov/vuln/detail/CVE-2024-1597
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2024-1597
9
reference_url https://www.enterprisedb.com/docs/jdbc_connector/latest/01_jdbc_rel_notes/
reference_id 01_jdbc_rel_notes
reference_type
scores
0
value 10
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2024-04-10T04:00:36Z/
url https://www.enterprisedb.com/docs/jdbc_connector/latest/01_jdbc_rel_notes/
10
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2266523
reference_id 2266523
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2266523
11
reference_url https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597/
reference_id cve-2024-1597
reference_type
scores
0
value 10
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2024-04-10T04:00:36Z/
url https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597/
12
reference_url https://github.com/advisories/GHSA-24rp-q3w6-vc56
reference_id GHSA-24rp-q3w6-vc56
reference_type
scores
0
value CRITICAL
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-24rp-q3w6-vc56
13
reference_url https://security.netapp.com/advisory/ntap-20240419-0008/
reference_id ntap-20240419-0008
reference_type
scores
0
value 10
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2024-04-10T04:00:36Z/
url https://security.netapp.com/advisory/ntap-20240419-0008/
14
reference_url https://access.redhat.com/errata/RHSA-2024:1435
reference_id RHSA-2024:1435
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1435
15
reference_url https://access.redhat.com/errata/RHSA-2024:1436
reference_id RHSA-2024:1436
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1436
16
reference_url https://access.redhat.com/errata/RHSA-2024:1649
reference_id RHSA-2024:1649
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1649
17
reference_url https://access.redhat.com/errata/RHSA-2024:1686
reference_id RHSA-2024:1686
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1686
18
reference_url https://access.redhat.com/errata/RHSA-2024:1797
reference_id RHSA-2024:1797
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1797
19
reference_url https://access.redhat.com/errata/RHSA-2024:1999
reference_id RHSA-2024:1999
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:1999
20
reference_url https://access.redhat.com/errata/RHSA-2024:2624
reference_id RHSA-2024:2624
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:2624
21
reference_url https://access.redhat.com/errata/RHSA-2024:3313
reference_id RHSA-2024:3313
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:3313
22
reference_url https://access.redhat.com/errata/RHSA-2024:4375
reference_id RHSA-2024:4375
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:4375
23
reference_url https://access.redhat.com/errata/RHSA-2024:4402
reference_id RHSA-2024:4402
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:4402
24
reference_url https://access.redhat.com/errata/RHSA-2024:5056
reference_id RHSA-2024:5056
reference_type
scores
url https://access.redhat.com/errata/RHSA-2024:5056
25
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TZQTSMESZD2RJ5XBPSXH3TIQVUW5DIUU/
reference_id TZQTSMESZD2RJ5XBPSXH3TIQVUW5DIUU
reference_type
scores
0
value 10
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value Track*
scoring_system ssvc
scoring_elements SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2024-04-10T04:00:36Z/
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TZQTSMESZD2RJ5XBPSXH3TIQVUW5DIUU/
fixed_packages
0
url pkg:maven/org.postgresql/postgresql@42.5.5
purl pkg:maven/org.postgresql/postgresql@42.5.5
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.5.5
1
url pkg:maven/org.postgresql/postgresql@42.6.1
purl pkg:maven/org.postgresql/postgresql@42.6.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.6.1
2
url pkg:maven/org.postgresql/postgresql@42.7.2
purl pkg:maven/org.postgresql/postgresql@42.7.2
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.7.2
aliases CVE-2024-1597, GHSA-24rp-q3w6-vc56
risk_score 4.5
exploitability 0.5
weighted_severity 9.0
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-6r4u-tem9-vkey
1
url VCID-qub7-qp14-uqcg
vulnerability_id VCID-qub7-qp14-uqcg
summary
TemporaryFolder on unix-like systems does not limit access to created files
**Vulnerability**

`PreparedStatement.setText(int, InputStream)`
and

`PreparedStatemet.setBytea(int, InputStream)`

will create a temporary file if the InputStream is larger than 51k

 
Example of vulnerable code:

```java
String s = "some very large string greater than 51200 bytes";

PreparedStatement.setInputStream(1, new ByteArrayInputStream(s.getBytes()) );
```
This will create a temporary file which is readable by other users on Unix like systems, but not MacOS.

Impact
On Unix like systems, the system's temporary directory is shared between all users on that system. Because of this, when files and directories are written into this directory they are, by default, readable by other users on that same system.

This vulnerability does not allow other users to overwrite the contents of these directories or files. This is purely an information disclosure vulnerability.

When analyzing the impact of this vulnerability, here are the important questions to ask:

Is the driver running in an environment where the OS has other untrusted users.
If yes, and you answered 'yes' to question 1, this vulnerability impacts you.
If no, this vulnerability does not impact you.
Patches
Because certain JDK file system APIs were only added in JDK 1.7, this this fix is dependent upon the version of the JDK you are using.

Java 1.8 and higher users: this vulnerability is fixed in 42.2.27, 42.3.8, 42.4.3, 42.5.1
Java 1.7 users: this vulnerability is fixed in 42.2.27.jre7
Java 1.6 and lower users: no patch is available; you must use the workaround below.
Workarounds
If you are unable to patch, or are stuck running on Java 1.6, specifying the java.io.tmpdir system environment variable to a directory that is exclusively owned by the executing user will fix this vulnerability.

References
[CWE-200: Exposure of Sensitive Information to an Unauthorized Actor](https://cwe.mitre.org/data/definitions/200.html)
Fix commit https://github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5
Similar Vulnerabilities
Google Guava - https://github.com/google/guava/issues/4011
Apache Ant - https://nvd.nist.gov/vuln/detail/CVE-2020-1945
JetBrains Kotlin Compiler - https://nvd.nist.gov/vuln/detail/CVE-2020-15824
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-41946.json
reference_id
reference_type
scores
0
value 5.5
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-41946.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2022-41946
reference_id
reference_type
scores
0
value 0.00082
scoring_system epss
scoring_elements 0.23728
published_at 2026-05-05T12:55:00Z
1
value 0.00082
scoring_system epss
scoring_elements 0.24027
published_at 2026-04-21T12:55:00Z
2
value 0.00082
scoring_system epss
scoring_elements 0.23901
published_at 2026-04-24T12:55:00Z
3
value 0.00082
scoring_system epss
scoring_elements 0.23888
published_at 2026-04-26T12:55:00Z
4
value 0.00082
scoring_system epss
scoring_elements 0.23846
published_at 2026-04-29T12:55:00Z
5
value 0.00126
scoring_system epss
scoring_elements 0.31878
published_at 2026-04-07T12:55:00Z
6
value 0.00126
scoring_system epss
scoring_elements 0.32013
published_at 2026-04-02T12:55:00Z
7
value 0.00126
scoring_system epss
scoring_elements 0.32054
published_at 2026-04-04T12:55:00Z
8
value 0.00126
scoring_system epss
scoring_elements 0.31902
published_at 2026-04-18T12:55:00Z
9
value 0.00126
scoring_system epss
scoring_elements 0.31922
published_at 2026-04-16T12:55:00Z
10
value 0.00126
scoring_system epss
scoring_elements 0.31889
published_at 2026-04-13T12:55:00Z
11
value 0.00126
scoring_system epss
scoring_elements 0.31923
published_at 2026-04-12T12:55:00Z
12
value 0.00126
scoring_system epss
scoring_elements 0.31962
published_at 2026-04-11T12:55:00Z
13
value 0.00126
scoring_system epss
scoring_elements 0.31958
published_at 2026-04-09T12:55:00Z
14
value 0.00126
scoring_system epss
scoring_elements 0.3193
published_at 2026-04-08T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2022-41946
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41946
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41946
3
reference_url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
reference_id
reference_type
scores
0
value 5.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
url https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
4
reference_url https://github.com/pgjdbc/pgjdbc
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc
5
reference_url https://github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc/commit/9008dc9aade6dbfe4efafcd6872ebc55f4699cf5
6
reference_url https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-562r-vg33-8x8h
7
reference_url https://lists.debian.org/debian-lts-announce/2022/12/msg00003.html
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://lists.debian.org/debian-lts-announce/2022/12/msg00003.html
8
reference_url https://lists.debian.org/debian-lts-announce/2024/12/msg00017.html
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://lists.debian.org/debian-lts-announce/2024/12/msg00017.html
9
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25TY2L3RMVNOC7VAHJEAO7PTT6M6JJAD
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25TY2L3RMVNOC7VAHJEAO7PTT6M6JJAD
10
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25TY2L3RMVNOC7VAHJEAO7PTT6M6JJAD
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25TY2L3RMVNOC7VAHJEAO7PTT6M6JJAD
11
reference_url https://nvd.nist.gov/vuln/detail/CVE-2022-41946
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2022-41946
12
reference_url https://security.netapp.com/advisory/ntap-20240329-0003
reference_id
reference_type
scores
0
value 4.7
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
1
value MODERATE
scoring_system generic_textual
scoring_elements
url https://security.netapp.com/advisory/ntap-20240329-0003
13
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2153399
reference_id 2153399
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2153399
14
reference_url https://github.com/advisories/GHSA-562r-vg33-8x8h
reference_id GHSA-562r-vg33-8x8h
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-562r-vg33-8x8h
15
reference_url https://access.redhat.com/errata/RHSA-2023:0758
reference_id RHSA-2023:0758
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:0758
16
reference_url https://access.redhat.com/errata/RHSA-2023:0888
reference_id RHSA-2023:0888
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:0888
17
reference_url https://access.redhat.com/errata/RHSA-2023:1006
reference_id RHSA-2023:1006
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:1006
18
reference_url https://access.redhat.com/errata/RHSA-2023:1177
reference_id RHSA-2023:1177
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:1177
19
reference_url https://access.redhat.com/errata/RHSA-2023:1630
reference_id RHSA-2023:1630
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:1630
20
reference_url https://access.redhat.com/errata/RHSA-2023:1815
reference_id RHSA-2023:1815
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:1815
21
reference_url https://access.redhat.com/errata/RHSA-2023:2097
reference_id RHSA-2023:2097
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:2097
22
reference_url https://access.redhat.com/errata/RHSA-2023:2378
reference_id RHSA-2023:2378
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:2378
23
reference_url https://access.redhat.com/errata/RHSA-2023:2867
reference_id RHSA-2023:2867
reference_type
scores
url https://access.redhat.com/errata/RHSA-2023:2867
fixed_packages
0
url pkg:maven/org.postgresql/postgresql@42.5.1
purl pkg:maven/org.postgresql/postgresql@42.5.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.5.1
aliases CVE-2022-41946, GHSA-562r-vg33-8x8h
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-qub7-qp14-uqcg
2
url VCID-rwwd-8qgf-f3ac
vulnerability_id VCID-rwwd-8qgf-f3ac
summary
Duplicate Advisory: SQL injection in pgjdbc
## Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-24rp-q3w6-vc56. This link is maintained to preserve external references.

## Original Description
pgjdbc, the PostgreSQL JDBC Driver, allows attacker to inject SQL if using PreferQueryMode=SIMPLE. Note this is not the default. In the default mode there is no vulnerability. A placeholder for a numeric value must be immediately preceded by a minus. There must be a second placeholder for a string value after the first placeholder; both must be on the same line. By constructing a matching string payload, the attacker can inject SQL to alter the query,bypassing the protections that parameterized queries bring against SQL Injection attacks. Versions before 42.7.2, 42.6.1, 42.5.5, 42.4.4, 42.3.9, and 42.2.8 are affected.
references
0
reference_url https://github.com/pgjdbc/pgjdbc
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc
1
reference_url https://github.com/pgjdbc/pgjdbc/commit/06abfb78a627277a580d4df825f210e96a4e14ee
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc/commit/06abfb78a627277a580d4df825f210e96a4e14ee
2
reference_url https://github.com/pgjdbc/pgjdbc/commit/93b0fcb2711d9c1e3a2a03134369738a02a58b40
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc/commit/93b0fcb2711d9c1e3a2a03134369738a02a58b40
3
reference_url https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-24rp-q3w6-vc56
4
reference_url https://lists.debian.org/debian-lts-announce/2024/05/msg00007.html
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://lists.debian.org/debian-lts-announce/2024/05/msg00007.html
5
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TZQTSMESZD2RJ5XBPSXH3TIQVUW5DIUU
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TZQTSMESZD2RJ5XBPSXH3TIQVUW5DIUU
6
reference_url https://nvd.nist.gov/vuln/detail/CVE-2024-1597
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2024-1597
7
reference_url https://security.netapp.com/advisory/ntap-20240419-0008
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://security.netapp.com/advisory/ntap-20240419-0008
8
reference_url https://www.enterprisedb.com/docs/jdbc_connector/latest/01_jdbc_rel_notes
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://www.enterprisedb.com/docs/jdbc_connector/latest/01_jdbc_rel_notes
9
reference_url https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url https://www.enterprisedb.com/docs/security/assessments/cve-2024-1597
10
reference_url http://www.openwall.com/lists/oss-security/2024/04/02/6
reference_id
reference_type
scores
0
value 10.0
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
1
value CRITICAL
scoring_system generic_textual
scoring_elements
url http://www.openwall.com/lists/oss-security/2024/04/02/6
11
reference_url https://github.com/advisories/GHSA-xfg6-62px-cxc2
reference_id GHSA-xfg6-62px-cxc2
reference_type
scores
0
value CRITICAL
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-xfg6-62px-cxc2
fixed_packages
0
url pkg:maven/org.postgresql/postgresql@42.5.5
purl pkg:maven/org.postgresql/postgresql@42.5.5
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.5.5
1
url pkg:maven/org.postgresql/postgresql@42.6.1
purl pkg:maven/org.postgresql/postgresql@42.6.1
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.6.1
2
url pkg:maven/org.postgresql/postgresql@42.7.2
purl pkg:maven/org.postgresql/postgresql@42.7.2
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.7.2
aliases GHSA-xfg6-62px-cxc2
risk_score 4.5
exploitability 0.5
weighted_severity 9.0
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-rwwd-8qgf-f3ac
Fixing_vulnerabilities
Risk_score4.5
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.5.0