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
Noroxi assessment
Priority: Plan (action score 40/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 2.9% (FIRST EPSS); higher than 87.3% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: libpgjava (Debian:10) 42.2.5-2+deb10u1; libpgjava (Debian:11) 42.2.15-1+deb11u1; libpgjava (Debian:12) 42.3.3-1.
Add it to your regular patch cycle. Upgrade to libpgjava (Debian:10) 42.2.5-2+deb10u1; libpgjava (Debian:11) 42.2.15-1+deb11u1; libpgjava (Debian:12) 42.3.3-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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
- Published
- Mar 10, 2022
- Updated
- Jun 17, 2026
- EPSS
- 2.9% · 87th percentile
- CWE
- —
Report tools
Action score
40
Plan
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.9%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| postgresql | postgresql jdbc driver | cpe:2.3:a:postgresql:postgresql_jdbc_driver |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- debian debian linux11.0
- postgresql postgresql jdbc driver42.1.0 and later · up to 42.1.4 inclusive
- postgresql postgresql jdbc driver42.3.0 and later · before 42.3.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:10 | libpgjava | before 42.2.5-2+deb10u1 | 42.2.5-2+deb10u1 |
| Debian:11 | libpgjava | before 42.2.15-1+deb11u1 | 42.2.15-1+deb11u1 |
| Debian:12 | libpgjava | before 42.3.3-1 | 42.3.3-1 |
| Maven | org.postgresql:postgresql | from 42.1.0 · before 42.3.3 | 42.3.3 |
| openSUSE:Leap 15.3 | ongres-scram | before 2.1-150300.3.3.4 | 2.1-150300.3.3.4 |
| openSUSE:Leap 15.3 | ongres-stringprep | before 1.1-150300.7.3.4 | 1.1-150300.7.3.4 |
| openSUSE:Leap 15.3 | postgresql-jdbc | before 42.2.25-150300.3.5.2 | 42.2.25-150300.3.5.2 |
| openSUSE:Leap 15.4 | postgresql-jdbc | before 42.2.25-150400.3.3.2 | 42.2.25-150400.3.3.2 |
| SUSE:Linux Enterprise Module for Server Applications 15 SP4 | postgresql-jdbc | before 42.2.25-150400.3.3.2 | 42.2.25-150400.3.3.2 |
| SUSE:Manager Proxy 4.1 | release-notes-susemanager-proxy | before 4.1.15-150200.3.56.1 | 4.1.15-150200.3.56.1 |
| SUSE:Manager Server 4.1 | release-notes-susemanager | before 4.1.15-150200.3.80.1 | 4.1.15-150200.3.80.1 |
| SUSE:Manager Server Module 4.1 | golang-github-lusitaniae-apache_exporter | before 0.7.0-150200.2.6.2 | 0.7.0-150200.2.6.2 |
| SUSE:Manager Server Module 4.1 | golang-github-prometheus-node_exporter | before 1.3.0-150200.3.9.3 | 1.3.0-150200.3.9.3 |
| SUSE:Manager Server Module 4.1 | golang-github-QubitProducts-exporter_exporter | before 0.4.0-150200.6.12.2 | 0.4.0-150200.6.12.2 |
| SUSE:Manager Server Module 4.1 | patterns-suse-manager | before 4.1-150200.6.12.2 | 4.1-150200.6.12.2 |
| SUSE:Manager Server Module 4.1 | postgresql-jdbc | before 42.2.10-150200.3.8.2 | 42.2.10-150200.3.8.2 |
| SUSE:Manager Server Module 4.1 | prometheus-exporters-formula | before 0.9.5-150200.3.31.2 | 0.9.5-150200.3.31.2 |
| SUSE:Manager Server Module 4.1 | prometheus-formula | before 0.3.7-150200.3.21.2 | 0.3.7-150200.3.21.2 |
| SUSE:Manager Server Module 4.1 | py27-compat-salt | before 3000.3-150200.6.24.2 | 3000.3-150200.6.24.2 |
| SUSE:Manager Server Module 4.1 | spacecmd | before 4.1.18-150200.4.39.3 | 4.1.18-150200.4.39.3 |
| SUSE:Manager Server Module 4.1 | spacewalk-backend | before 4.1.31-150200.4.50.4 | 4.1.31-150200.4.50.4 |
| SUSE:Manager Server Module 4.1 | spacewalk-java | before 4.1.46-150200.3.71.5 | 4.1.46-150200.3.71.5 |
| SUSE:Manager Server Module 4.1 | spacewalk-setup | before 4.1.11-150200.3.18.2 | 4.1.11-150200.3.18.2 |
| SUSE:Manager Server Module 4.1 | spacewalk-utils | before 4.1.20-150200.3.30.2 | 4.1.20-150200.3.30.2 |
+10
Same product
postgresql: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-1597pgjdbc SQL Injection via line comment generation40Plan
- CVE-2022-21724Unchecked Class Instantiation when providing Plugin Classes40Plan
- CVE-2022-31197SQL Injection in ResultSet.refreshRow() with malicious column names in pgjdbc33Monitor
Published before and after this one in the same product
- ← EarlierCVE-2018-10936Aug 30, 2018 · A weakness was found in postgresql-jdbc before version 42.2.5.33Monitor
- ← EarlierCVE-2020-13692Jun 4, 2020 · PostgreSQL JDBC Driver (aka PgJDBC) before 42.2.13 allows XXE.31Monitor
- Later →CVE-2022-41946Nov 23, 2022 · TemporaryFolder on unix-like systems does not limit access to created files in pgjdbc22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:libpgjava | 42.3.3-1 · Debian:12 | Package registry (OSV) |
| Maven:org.postgresql:postgresql | 42.3.3 | Package registry (OSV) |
| opensuse:ongres-scram | 2.1-150300.3.3.4 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:ongres-stringprep | 1.1-150300.7.3.4 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:postgresql-jdbc | 42.2.25-150300.3.5.2 · openSUSE:Leap 15.3 | Package registry (OSV) |
| suse:golang-github-lusitaniae-apache_exporter | 0.7.0-150200.2.6.2 · SUSE:Manager Server Module 4.1 | Package registry (OSV) |
| suse:golang-github-prometheus-node_exporter | 1.3.0-150200.3.9.3 · SUSE:Manager Server Module 4.1 | Package registry (OSV) |
| suse:golang-github-QubitProducts-exporter_exporter | 0.4.0-150200.6.12.2 · SUSE:Manager Server Module 4.1 | Package registry (OSV) |
| suse:ongres-scram | 2.1-150300.3.3.4 · SUSE:Manager Server Module 4.2 | Package registry (OSV) |
| suse:ongres-stringprep | 1.1-150300.7.3.4 · SUSE:Manager Server Module 4.2 | Package registry (OSV) |
| suse:patterns-suse-manager | 4.1-150200.6.12.2 · SUSE:Manager Server Module 4.1 | Package registry (OSV) |
| suse:postgresql-jdbc | 42.2.25-150300.3.5.2 · SUSE:Manager Server Module 4.2 | Package registry (OSV) |
| suse:prometheus-exporters-formula | 0.9.5-150200.3.31.2 · SUSE:Manager Server Module 4.1 | Package registry (OSV) |
| suse:prometheus-formula | 0.3.7-150200.3.21.2 · SUSE:Manager Server Module 4.1 | Package registry (OSV) |
| suse:py27-compat-salt | 3000.3-150200.6.24.2 · SUSE:Manager Server Module 4.1 | Package registry (OSV) |
| suse:release-notes-susemanager | 4.1.15-150200.3.80.1 · SUSE:Manager Server 4.1 | Package registry (OSV) |
| suse:release-notes-susemanager-proxy | 4.1.15-150200.3.56.1 · SUSE:Manager Proxy 4.1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
—
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (4 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.