OpenJDK 21 vulnerabilities
Published: Thu, 28 May 2026 06:22
Summary
Several security issues were fixed in OpenJDK 21.
Details
Thomas Beckers discovered that the JAXP component of OpenJDK 21 did not correctly authenticate certain APIs. A remote unauthenticated attacker could possibly use this issue to gain unauthorized access to sensitive information. (CVE-2026-22016) It was discovered that the Networking component of OpenJDK 21 did not correctly authenticate certain APIs. A remote unauthenticated attacker could possibly use this issue to cause a denial of service. (CVE-2026-34282) It was discovered that the JSSE component of OpenJDK 21 did not correctly authenticate certain APIs. A remote unauthenticated attacker could possibly use this issue to cause a denial of service. (CVE-2026-22021) It was discovered that the JGSS component of OpenJDK 21 did not correctly authenticate certain APIs. A remote attacker could possibly use this issue to obtain sensitive information. (CVE-2026-22013) It was discovered that the 2D component of OpenJDK 21 did not correctly handle certain integer arithmetic. If a user or automated system were tricked into opening a specially crafted file, an attacker could possibly use this issue to leak sensitive information. (CVE-2026-23865) It was discovered that the Libraries component of OpenJDK 21 did not correctly authenticate certain APIs. A remote unauthenticated attacker could possibly use this issue to cause a denial of service. (CVE-2026-22018) Ken Pyle discovered that the Security component of OpenJDK 21 did not correctly authenticate certain APIs. A local attacker could possibly use this issue to leak sensitive information. (CVE-2026-22007, CVE-2026-34268) In addition to security fixes, the updated packages contain bug fixes, new features, and possibly incompatible changes. Please see the following for more information: https://openjdk.org/groups/vulnerability/advisories/2026-04-21
Recommended actions per Ubuntu release
StackPatch playbook auto-generated per release codename and per affected package.
Ubuntu focal
openjdk-21→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-demo→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-demo
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-doc→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk-headless→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-headless→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-zero→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-zero
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-source→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-source
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-testsupport→21.0.11+10-1~20.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~20.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-testsupport
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu jammy
openjdk-21→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-demo→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-demo
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-doc→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk-headless→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-headless→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-zero→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-zero
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-source→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-source
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-testsupport→21.0.11+10-1~22.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~22.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-testsupport
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu noble
openjdk-21→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-demo→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-demo
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-doc→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk-headless→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-headless→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-zero→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-zero
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-source→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-source
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-testsupport→21.0.11+10-1~24.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~24.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-testsupport
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu questing
openjdk-21→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-demo→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-demo
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-doc→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk-headless→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-headless→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-zero→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-zero
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-source→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-source
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-testsupport→21.0.11+10-1~25.10.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~25.10.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-testsupport
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu resolute
openjdk-21→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-demo→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-demo
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-doc→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jdk-headless→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jdk-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-headless→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-headless
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-jre-zero→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-jre-zero
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-source→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-source
Most apt upgrades restart their service automatically. needrestart lists anything else.
openjdk-21-testsupport→21.0.11+10-1~26.04.2apt_upgradeStandard apt upgrade. Install 21.0.11+10-1~26.04.2 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y openjdk-21-testsupport
Most apt upgrades restart their service automatically. needrestart lists anything else.
Are YOU affected by USN-8328-1?
5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8328-1 (and any other live CVE) applies. Anonymous, no signup.
curl https://mindsparkstack.com/scan.sh | bash
StackPatch runs this match against YOUR installed packages every hour
Free 1-server / $99 lifetime founder seat (50 only) / $19+/mo monthly. Indie pricing.