Apache Commons Lang vulnerability
Published: Tue, 02 Jun 2026 12:42
Summary
Apache Commons Lang could be made to crash if it received specially crafted input.
Details
It was discovered that Apache Commons Lang incorrectly handled recursion in the ClassUtils.getClass method. An attacker could possibly use this issue to cause Apache Commons Lang to crash, resulting in a denial of service.
Recommended actions per Ubuntu release
StackPatch playbook auto-generated per release codename and per affected package.
Ubuntu bionic
libcommons-lang-java→2.6-8ubuntu0.1~esm1apt_upgrade_esmFixed at 2.6-8ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java=2.6-8ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang3-java→3.8-1~18.04.2+esm1apt_upgradeStandard apt upgrade. Install 3.8-1~18.04.2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang-java→2.6-8ubuntu0.1~esm1apt_upgrade_esmFixed at 2.6-8ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java=2.6-8ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang-java-doc→2.6-8ubuntu0.1~esm1apt_upgrade_esmFixed at 2.6-8ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java-doc=2.6-8ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang3-java→3.8-1~18.04.2+esm1apt_upgradeStandard apt upgrade. Install 3.8-1~18.04.2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java-doc→3.8-1~18.04.2+esm1apt_upgradeStandard apt upgrade. Install 3.8-1~18.04.2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu focal
libcommons-lang-java→2.6-9ubuntu0.20.04.1~esm1apt_upgrade_esmFixed at 2.6-9ubuntu0.20.04.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java=2.6-9ubuntu0.20.04.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang3-java→3.8-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.8-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java=3.8-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang-java→2.6-9ubuntu0.20.04.1~esm1apt_upgrade_esmFixed at 2.6-9ubuntu0.20.04.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java=2.6-9ubuntu0.20.04.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang-java-doc→2.6-9ubuntu0.20.04.1~esm1apt_upgrade_esmFixed at 2.6-9ubuntu0.20.04.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java-doc=2.6-9ubuntu0.20.04.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang3-java→3.8-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.8-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java=3.8-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang3-java-doc→3.8-2ubuntu0.1~esm1apt_upgrade_esmFixed at 3.8-2ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java-doc=3.8-2ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
Ubuntu jammy
libcommons-lang-java→2.6-9ubuntu0.22.04.1apt_upgradeStandard apt upgrade. Install 2.6-9ubuntu0.22.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java→3.11-1ubuntu0.1apt_upgradeStandard apt upgrade. Install 3.11-1ubuntu0.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang-java→2.6-9ubuntu0.22.04.1apt_upgradeStandard apt upgrade. Install 2.6-9ubuntu0.22.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang-java-doc→2.6-9ubuntu0.22.04.1apt_upgradeStandard apt upgrade. Install 2.6-9ubuntu0.22.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java→3.11-1ubuntu0.1apt_upgradeStandard apt upgrade. Install 3.11-1ubuntu0.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java-doc→3.11-1ubuntu0.1apt_upgradeStandard apt upgrade. Install 3.11-1ubuntu0.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu noble
libcommons-lang-java→2.6-10ubuntu0.1apt_upgradeStandard apt upgrade. Install 2.6-10ubuntu0.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java→3.14.0-1ubuntu0.1~esm1apt_upgrade_esmFixed at 3.14.0-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java=3.14.0-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang-java→2.6-10ubuntu0.1apt_upgradeStandard apt upgrade. Install 2.6-10ubuntu0.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang-java-doc→2.6-10ubuntu0.1apt_upgradeStandard apt upgrade. Install 2.6-10ubuntu0.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java→3.14.0-1ubuntu0.1~esm1apt_upgrade_esmFixed at 3.14.0-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java=3.14.0-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
Ubuntu trusty
libcommons-lang-java→2.6-3ubuntu2+esm1apt_upgradeStandard apt upgrade. Install 2.6-3ubuntu2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java→3.2.1-1ubuntu0.1~esm1apt_upgrade_esmFixed at 3.2.1-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java=3.2.1-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang-java→2.6-3ubuntu2+esm1apt_upgradeStandard apt upgrade. Install 2.6-3ubuntu2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang-java-doc→2.6-3ubuntu2+esm1apt_upgradeStandard apt upgrade. Install 2.6-3ubuntu2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java→3.2.1-1ubuntu0.1~esm1apt_upgrade_esmFixed at 3.2.1-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java=3.2.1-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang3-java-doc→3.2.1-1ubuntu0.1~esm1apt_upgrade_esmFixed at 3.2.1-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java-doc=3.2.1-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
Ubuntu xenial
libcommons-lang-java→2.6-6ubuntu2+esm1apt_upgradeStandard apt upgrade. Install 2.6-6ubuntu2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java→3.4-1ubuntu0.1~esm1apt_upgrade_esmFixed at 3.4-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java=3.4-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang-java→2.6-6ubuntu2+esm1apt_upgradeStandard apt upgrade. Install 2.6-6ubuntu2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang-java-doc→2.6-6ubuntu2+esm1apt_upgradeStandard apt upgrade. Install 2.6-6ubuntu2+esm1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang-java-doc
Most apt upgrades restart their service automatically. needrestart lists anything else.
libcommons-lang3-java→3.4-1ubuntu0.1~esm1apt_upgrade_esmFixed at 3.4-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java=3.4-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
libcommons-lang3-java-doc→3.4-1ubuntu0.1~esm1apt_upgrade_esmFixed at 3.4-1ubuntu0.1~esm1 — ESM-only. Enable Ubuntu Pro (free for 5 personal machines) or treat as watch item.
sudo pro attach <token> sudo apt-get update sudo apt-get install --only-upgrade -y libcommons-lang3-java-doc=3.4-1ubuntu0.1~esm1
Sign up at https://ubuntu.com/pro. Free for personal + small-team use.
Are YOU affected by USN-8364-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-8364-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.