Lookup for vulnerable packages by Package URL.

Purlpkg:apk/alpine/java-postgresql-jdbc@42.5.1-r0?arch=ppc64le&distroversion=v3.17&reponame=community
Typeapk
Namespacealpine
Namejava-postgresql-jdbc
Version42.5.1-r0
Qualifiers
arch ppc64le
distroversion v3.17
reponame community
Subpath
Is_vulnerablefalse
Next_non_vulnerable_versionnull
Latest_non_vulnerable_versionnull
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
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.23846
published_at 2026-04-29T12: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.00126
scoring_system epss
scoring_elements 0.31878
published_at 2026-04-07T12:55:00Z
5
value 0.00126
scoring_system epss
scoring_elements 0.32013
published_at 2026-04-02T12:55:00Z
6
value 0.00126
scoring_system epss
scoring_elements 0.32054
published_at 2026-04-04T12:55:00Z
7
value 0.00126
scoring_system epss
scoring_elements 0.31902
published_at 2026-04-18T12:55:00Z
8
value 0.00126
scoring_system epss
scoring_elements 0.31922
published_at 2026-04-16T12:55:00Z
9
value 0.00126
scoring_system epss
scoring_elements 0.31889
published_at 2026-04-13T12:55:00Z
10
value 0.00126
scoring_system epss
scoring_elements 0.31923
published_at 2026-04-12T12:55:00Z
11
value 0.00126
scoring_system epss
scoring_elements 0.31962
published_at 2026-04-11T12:55:00Z
12
value 0.00126
scoring_system epss
scoring_elements 0.31958
published_at 2026-04-09T12:55:00Z
13
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:apk/alpine/java-postgresql-jdbc@42.5.1-r0?arch=ppc64le&distroversion=v3.17&reponame=community
purl pkg:apk/alpine/java-postgresql-jdbc@42.5.1-r0?arch=ppc64le&distroversion=v3.17&reponame=community
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:apk/alpine/java-postgresql-jdbc@42.5.1-r0%3Farch=ppc64le&distroversion=v3.17&reponame=community
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
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:apk/alpine/java-postgresql-jdbc@42.5.1-r0%3Farch=ppc64le&distroversion=v3.17&reponame=community