StackPatch is liveSee product

Back to CVE digest
CVE-2022-41946 · cross-distro fix matrix

CVE-2022-41946: pgjdbc is an open source postgresql JDBC Driver. In affected versions a prepared statement using either `PreparedStatement.setText(int, InputStream)` or `PreparedStatemet.setBytea(int, InputStream)` will create a temporary file if the InputStream is larger than 2k. This will create a temporary file

Affects 8 Linux releases across 8 (distro × package) combinations.

Fix per ecosystem

Each block below is a distro release where CVE-2022-41946 has a known fix. Run the listed command on that distro to remediate.

Debian bullseye

Source: Debian Security Tracker

  • libpgjava→ fixed in42.2.15-1+deb11u2urgency: not yet assigned
    sudo apt-get install --only-upgrade -y libpgjava

Debian bookworm

Source: Debian Security Tracker

  • libpgjava→ fixed in42.5.1-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y libpgjava

Debian trixie

Source: Debian Security Tracker

  • libpgjava→ fixed in42.5.1-1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y libpgjava

Alpine v3.20

Source: Alpine secdb

  • java-postgresql-jdbc→ fixed in42.5.1-r0
    apk update && apk add --upgrade java-postgresql-jdbc

Alpine v3.21

Source: Alpine secdb

  • java-postgresql-jdbc→ fixed in42.5.1-r0
    apk update && apk add --upgrade java-postgresql-jdbc

Alpine edge

Source: Alpine secdb

  • java-postgresql-jdbc→ fixed in42.5.1-r0
    apk update && apk add --upgrade java-postgresql-jdbc

Alpine v3.18

Source: Alpine secdb

  • java-postgresql-jdbc→ fixed in42.5.1-r0
    apk update && apk add --upgrade java-postgresql-jdbc

Alpine v3.19

Source: Alpine secdb

  • java-postgresql-jdbc→ fixed in42.5.1-r0
    apk update && apk add --upgrade java-postgresql-jdbc
Are YOU affected by CVE-2022-41946?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2022-41946dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. $99 lifetime, 50 founder seats, 30-day refund.

See StackPatch ($99 lifetime)