Java Security Update October 2026: Fixed Corretto Versions (21.0.13, 17.0.21, 25.0.5, 8u512), How to Update on Windows, Mac, Linux and Docker, and Why Amazon Linux 2023 and Lambda Are Not Patched Yet
The Java security update for October 2026 is out. Oracle's October Critical Patch Update fixes 55 vulnerabilities in Java SE, 49 of them exploitable over a network without a password, and Amazon released the matching Amazon Corretto builds: 21.0.13, 17.0.21, 11.0.33, 25.0.5, 27.0.1 and 8u512. Check yours with java -version and update to the build for your line. Here is the part that will catch AWS users this week. When we checked on October 24, the fixes had reached Docker Hub's amazoncorretto images, Homebrew, winget and Corretto's own apt and yum repositories, but not AWS Lambda's Java base images, which still shipped 21.0.12.1, 17.0.20.1, 11.0.32.1, 25.0.4.1 and 8u504, and not Amazon Linux 2023's own repository, where dnf upgrade stays on 21.0.12. Worse, the obvious workaround of adding Corretto's yum repo to Amazon Linux 2023 does nothing with dnf upgrade, fails with file conflicts on dnf install, and with dnf swap it reports success while leaving the server with no java at all until you reinstall. This guide covers what is fixed, how to update on Windows, Mac, Linux and Docker, the Amazon Linux 2023 route that does work, and what to do about Lambda.
Ethan's stock-sync service for Jake's shop runs on Java 21, in a container on a small EC2 instance and in one Lambda function that sends the nightly reorder email. When the Oracle advisory landed, Jake asked the only question that mattered to him: "Are we exposed, and does fixing it break the reorder email?" Ethan had three copies of Java to check, and each one got its update from a different place.
New to Java updates? Java is released by Oracle and by several other vendors who build the same OpenJDK source code. Amazon Corretto is AWS's free build, and it is the Java inside AWS Lambda's Java runtimes, Amazon Linux and many AWS images. Four times a year (January, April, July and October) every vendor ships a security update on the same schedule. You update by installing the new build for the Java version you use and restarting whatever runs on it. Our guide to installing Java on Amazon Linux 2023 covers the basics of Corretto packages on EC2.
What the October 2026 Java security update fixes
Oracle's October 2026 Critical Patch Update contains 55 new security patches for Java SE. 49 of them may be exploitable remotely without authentication, meaning over a network without a user name or password. The highest CVSS score is 7.5, and three issues score 7.0 or above. The fixes are spread across the platform; the components with the most patches are:
| Java component | Fixes | Why it matters on servers |
|---|---|---|
| Networking | 9 | HTTP clients and servers built on the JDK's networking |
| JGSS | 4 | Kerberos and GSS-API authentication |
| Security | 4 | Cryptography and certificate handling |
| Compiler (Hotspot) | 4 | The JIT compiler every Java program uses |
| JSSE | 3 | TLS connections |
| JAXP, Libraries, Utility, 2D | 3 each | XML parsing, core libraries, image handling |
The three top-scoring issues are a Java plugin flaw in Java 8 (CVE-2026-91484, 7.5), a JavaFX WebKitGTK flaw (CVE-2026-43660, 7.5) and a 2D flaw that affects every supported line (CVE-2026-91415, 7.0). The affected versions are Java SE 8u503, 11.0.32.1, 17.0.20.1, 21.0.12.1, 25.0.4.1 and 27, which are exactly the builds most machines ran before this week.
A note on the scores: Oracle's Java CVSS numbers assume the worst case of a user running untrusted applets or Web Start applications with administrator rights. On a server that runs only your own code, many of these are harder to reach. But "harder to reach" is not "unreachable", especially for networking, TLS and XML parsing bugs that any service handling outside input touches. Treat this as a normal-priority update: this week, not this hour.
The fixed Amazon Corretto versions
Amazon published the October Corretto builds on October 22-23, 2026 (the GitHub releases are timestamped October 23 around 05:45 UTC):
| Java line | Vulnerable (before) | Fixed Corretto build | Type |
|---|---|---|---|
| Java 27 | 27.0.0 | 27.0.1.0.10 | Latest feature release |
| Java 25 | 25.0.4 and earlier | 25.0.5.0.9 | LTS (newest) |
| Java 21 | 21.0.12 and earlier | 21.0.13.0.10 | LTS |
| Java 17 | 17.0.20 and earlier | 17.0.21.0.10 | LTS |
| Java 11 | 11.0.32 and earlier | 11.0.33.0.9 | LTS |
| Java 8 | 8u504 and earlier | 8u512 (8.512.08.1) | LTS |
Corretto version numbers have more digits than Oracle's: 21.0.13.0.10 is OpenJDK 21.0.13, Corretto build 10. java -version shows both: openjdk version "21.0.13" 2026-10-22 LTS and Corretto-21.0.13.0.10 on the next line. If you see 21.0.12 or 21.0.12.1, you are not patched yet.
How to check your Java version (every copy)
java -version answers for the Java on your PATH. Machines often have more than one:
- Linux:
alternatives --display java(Amazon Linux, RHEL) orupdate-alternatives --list java(Debian, Ubuntu) lists every installed Java;ls /usr/lib/jvm/shows them too. - Windows:
where javain Command Prompt, and checkJAVA_HOME. IDEs and build tools often bring their own JDK. - Mac:
/usr/libexec/java_home -Vlists every installed JDK. - Containers:
docker run --rm --entrypoint java your-image:tag -version. - A running service: it keeps the Java it started with until it restarts.
jcmd <pid> VM.versionshows what a running JVM really is. - Lambda: log
System.getProperty("java.vm.version")once, or read theINIT_STARTline of a cold start, which names the runtime version.
How to update Amazon Corretto on Windows, Mac and Linux
- Windows with winget:
winget upgrade Amazon.Corretto.21.JDK(orAmazon.Corretto.17.JDK,Amazon.Corretto.11.JDK,Amazon.Corretto.25.JDK,Amazon.Corretto.8.JDK). winget had all the October builds on October 24. Without winget, download the new.msifrom the Corretto downloads page and run it; it upgrades the existing install. - Mac with Homebrew:
brew update && brew upgrade --cask corretto@21(orcorretto@17; the plaincorrettocask tracks the newest release, 27). Homebrew had 21.0.13 and 17.0.21 on October 24. Without Homebrew, run the new.pkginstaller. - Debian, Ubuntu and Kali: with Corretto's apt repository configured,
sudo apt-get update && sudo apt-get install --only-upgrade java-21-amazon-corretto-jdk. The repository carried 21.0.13 and the other fixed builds from October 23. - RHEL, Fedora and others using Corretto's yum repo:
sudo dnf upgrade java-21-amazon-corretto-devel(Corretto's repo names its packages-devel). - Amazon Linux 2023: different, see the next section.
- Restart everything that runs Java: application servers, build agents, IDEs. A running JVM keeps the old code in memory.
To set up Corretto's apt repository on Debian or Ubuntu the first time:
wget -O - https://apt.corretto.aws/corretto.key | sudo gpg --dearmor -o /usr/share/keyrings/corretto-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/corretto-keyring.gpg] https://apt.corretto.aws stable main" | sudo tee /etc/apt/sources.list.d/corretto.list
sudo apt-get update && sudo apt-get install -y java-21-amazon-corretto-jdk
Amazon Linux 2023: why dnf upgrade leaves you on 21.0.12
On October 24, the newest Amazon Linux 2023 repository (last updated October 21, before the Java release) still offered java-21-amazon-corretto-headless 21.0.12, java-17-... 17.0.20, java-11-... 11.0.32 and java-25-... 25.0.4. So sudo dnf upgrade correctly reports nothing new, even with --releasever=latest. Amazon Linux publishes fixed Corretto packages with a security advisory (ALAS) after each Java release. In 2026 that took 13 to 17 days each time (the January 20 release reached Amazon Linux 2023 on February 5, April 22 on May 9, and July 22 on August 4), so expect this one in early November. When the advisory appears, run sudo dnf upgrade --releasever=latest 'java-*-amazon-corretto*'.
If you need the fix today, the tempting shortcut is to add Corretto's own yum repository, which already has 21.0.13. We tested it on a fresh Amazon Linux 2023 container with the stock Java 21 installed, and it is not a one-liner:
dnf upgradedoes nothing. Amazon Linux names its packagejava-21-amazon-corretto-headless; Corretto's repo publishesjava-21-amazon-corretto-devel. Different names, so there is nothing to upgrade: "Nothing to do."dnf install java-21-amazon-corretto-develfails with a transaction error:file /usr/lib/jvm/java-21-amazon-corretto/bin/java from install of java-21-amazon-corretto-devel-1:21.0.13.0.10-1.x86_64 conflicts with file from package java-21-amazon-corretto-headless-1:21.0.12+12-1.amzn2023.1.x86_64, and the same forkeytool,rmiregistryandjava.security.
The route that works is a swap followed by a reinstall, and the reinstall is the part people miss. sudo dnf swap java-21-amazon-corretto-headless java-21-amazon-corretto-devel finishes with success, and then java is gone: "command not found". The package database says Corretto's 21.0.13 is installed, yet its bin/java is not on disk. Both packages own the same file paths (that is what the install conflict above was about), so when the swap removes the old package, it deletes files the new one had just written. One more command puts them back:
sudo rpm --import https://yum.corretto.aws/corretto.key
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
sudo dnf swap java-21-amazon-corretto-headless java-21-amazon-corretto-devel
sudo dnf reinstall java-21-amazon-corretto-devel
java -version
After the reinstall, java -version reported openjdk version "21.0.13" 2026-10-20 LTS in our test. Two side effects to know before you do this on a server: the swap also removed 26 packages that Amazon Linux's Java had pulled in as dependencies, and from then on that server takes Java updates from Corretto's repository instead of Amazon Linux's advisories. If neither suits you, wait for the advisory; this route is for the servers that cannot wait.
Whichever route you take, restart your Java services afterwards and confirm with java -version. If your servers are built from an AMI, bake the patched Java into a new AMI rather than patching each running instance by hand; our Amazon Linux 2023 updates guide explains how its versioned repositories work.
AWS Lambda Java functions: not patched yet (what to do)
Lambda's Java runtimes run on Corretto, so this update reaches Lambda through AWS. On October 24 we pulled the latest Lambda Java base images from Amazon ECR Public and ran java -version in each. All five had been rebuilt on October 22, about a day before the Corretto release, and all still carried the old Java:
| Image | Java inside (October 24) | Fixed build |
|---|---|---|
public.ecr.aws/lambda/java:25 | 25.0.4.1 (Corretto-25.0.4.10.1) | 25.0.5 |
public.ecr.aws/lambda/java:21 | 21.0.12.1 (Corretto-21.0.12.12.1) | 21.0.13 |
public.ecr.aws/lambda/java:17 | 17.0.20.1 | 17.0.21 |
public.ecr.aws/lambda/java:11 | 11.0.32.1 | 11.0.33 |
public.ecr.aws/lambda/java:8.al2023 | 1.8.0_504 | 8u512 |
That is normal timing, not neglect: AWS rebuilds Lambda images and runtimes on its own schedule after a release, and for the Node.js security release a few days earlier the images were rebuilt within hours. What it means for you:
- Zip functions on managed runtimes (
java25,java21,java17.al2023,java11.al2023,java8.al2023and the Amazon Linux 2 variants): with runtime management onAuto, the default, Lambda moves functions to the patched runtime when AWS releases it, with no deploy. Check the setting withaws lambda get-runtime-management-config --function-name NAME;Manualfunctions stay pinned until you change them. - Container image functions stay on the exact image you built. Once AWS publishes patched base images, rebuild on them with
docker build --pulland redeploy. Check before you deploy:docker run --rm --entrypoint java public.ecr.aws/lambda/java:21 -versionmust print 21.0.13. - If you cannot wait, a container image function can use your own base image with a patched Corretto, such as one built from
amazoncorretto:21plus the Lambda Runtime Interface Client. That is more work to maintain, so for most teams waiting a few days for AWS is the better trade.
Once AWS ships the patched runtime, this is how to confirm a zip function picked it up:
- Run
aws lambda get-runtime-management-config --function-name my-functionand check thatUpdateRuntimeOnisAuto. WithFunctionUpdate, the new runtime arrives with your next deploy; withManual, the function stays pinned to its runtime version until you change it. - Invoke the function once so a fresh execution environment starts.
- Open its log group in CloudWatch Logs and find the newest
INIT_STARTline, which shows the runtime version and its ARN. - Compare that ARN with one from before the update. A new ARN means the function runs on the new runtime.
- For the Java build itself, log
System.getProperty("java.version")once at startup and look for 21.0.13 (or your line's fixed build).
While you are there, check the runtime itself. Lambda now offers Amazon Linux 2023 versions of the older Java runtimes, java17.al2023, java11.al2023 and java8.al2023, supported until June 30, 2029, while the Amazon Linux 2 runtimes java17, java11 and java8.al2 are deprecated on June 30, 2027. The original java8 runtime was deprecated in January 2024 but can still be updated until August 31, 2027, so check that nothing is still on it. Our guide to Lambda runtime deprecation covers the safe upgrade order.
Docker images, ECS, EKS and Fargate
The official amazoncorretto images on Docker Hub were updated for this release: the corretto-docker project committed the new versions (21.0.13.0.10, 17.0.21.0.10, 25.0.5.0.9, 1.8.0_512 and the others) on October 23 at 07:52 UTC, and the Docker Hub tags amazoncorretto:21, :17, :11, :25, :8 and :27 were all refreshed that evening. So for containers the fix is a rebuild:
docker build --pull -t my-service:2026-10-24 .
docker run --rm --entrypoint java my-service:2026-10-24 -version # expect 21.0.13 (or your line's fixed build)
--pull matters: without it, a build machine that already has amazoncorretto:21 cached keeps building on the old Java no matter what the tag points to now. Then deploy the new tag: update the task definition on ECS or Fargate, or the image in your Kubernetes Deployment on EKS. Images built FROM amazonlinux:2023 with dnf install java-21-amazon-corretto inherit the Amazon Linux 2023 problem above, so switch the base to amazoncorretto:21 or wait for the Amazon Linux packages.
Ethan's container was the easy one: one rebuild with --pull, and java -version printed 21.0.13. "So the box on EC2 is fixed and the Lambda isn't," Jake said. "The Lambda will fix itself," Ethan said. "I just have to check that it did."
What is the latest Java version in 2026?
As of October 2026:
- Latest release: Java 27 (September 2026). It is a feature release, supported until the next one arrives six months later, so it suits developers who want the newest language features and update every six months.
- Latest LTS: Java 25 (September 2025). Long-term support releases get years of security updates, which is what production systems should run.
- Still-supported LTS lines: Java 21, 17, 11 and 8 all received fixed Corretto builds this month.
The current security builds are therefore 27.0.1, 25.0.5, 21.0.13, 17.0.21, 11.0.33 and 8u512. Older non-LTS versions such as 22, 23, 24 and 26 no longer receive updates; Amazon Linux 2023's repository still lists packages for them, but they will not get this month's fixes, so move to 25 or 21. If you are starting something new, choose Java 25.
What is Amazon Corretto, and how is it different from Oracle Java?
Amazon Corretto is a free, production-ready distribution of OpenJDK, built and supported by Amazon. It is the same Java language and runtime as Oracle's JDK, built from the same OpenJDK source, plus Amazon's patches, and it passes the Java compatibility tests. The practical differences:
- Cost: Corretto is free for any use, including production, with quarterly security updates. Oracle JDK has its own license terms for commercial use.
- Where it runs: Windows, macOS, Linux (x86 and ARM, including Alpine), and inside AWS: Lambda's Java runtimes, Amazon Linux packages and the
amazoncorrettocontainer images. - Updates: the same quarterly schedule as the rest of the Java ecosystem, published on the Corretto website, GitHub, Docker Hub, apt, yum and package managers.
Switching from Oracle JDK or another OpenJDK build to Corretto is usually a drop-in change for the same Java version, because the bytecode, APIs and tools are the same.
Problems you may hit while updating Java
dnf upgrade says Nothing to do on Amazon Linux 2023
Amazon Linux 2023 had no fixed Corretto packages on October 24, and Corretto's own repo uses different package names. Wait for the Amazon Linux advisory, or swap packages and then reinstall Corretto's package, as described above; the swap alone deletes the new Java's files.
file ... from install of java-21-amazon-corretto-devel conflicts with file from package java-21-amazon-corretto-headless
Both packages install into /usr/lib/jvm/java-21-amazon-corretto. Do not force it: replace one with the other in a single transaction, as in the Amazon Linux 2023 section.
java -version still shows the old build after updating
Another Java comes first on your PATH, or alternatives still points at the old one. Check alternatives --display java (or where java on Windows) and set the new one.
The service still reports the old Java version
It started before the update. Restart it; a running JVM keeps the old runtime until it exits.
The rebuilt container still has the old Java
The build reused a cached base image. Rebuild with docker build --pull and check with docker run --rm --entrypoint java IMAGE -version.
winget says no applicable upgrade found
You may have installed Corretto from the MSI outside winget, or under a different package ID. Run winget list corretto to see what winget knows, or install the new MSI directly.
Java security update October 2026: frequently asked questions
What is the latest Amazon Corretto 21 version?
21.0.13.0.10, released for the October 2026 security update. Earlier builds such as 21.0.12 are affected by this month's vulnerabilities.
What Java versions fix the October 2026 vulnerabilities?
Corretto 27.0.1, 25.0.5, 21.0.13, 17.0.21, 11.0.33 and 8u512, or the matching October builds from other OpenJDK vendors.
How many vulnerabilities did the October 2026 Java update fix?
55 Java SE vulnerabilities, 49 of them remotely exploitable without authentication. The highest CVSS score is 7.5.
How do I update Amazon Corretto on Windows?
Run winget upgrade Amazon.Corretto.21.JDK (or your version's ID), or download and run the new MSI installer from the Corretto downloads page.
How do I update Amazon Corretto on a Mac?
brew upgrade --cask corretto@21 (or corretto@17), or run the new .pkg installer.
How do I update Amazon Corretto on Ubuntu or Debian?
With Corretto's apt repository set up, run sudo apt-get update and sudo apt-get install --only-upgrade java-21-amazon-corretto-jdk.
Is Amazon Linux 2023 patched for the October 2026 Java update?
Not on October 24, 2026: its repository still offered Corretto 21.0.12, 17.0.20, 11.0.32 and 25.0.4. Watch for the Amazon Linux security advisory, then run dnf upgrade --releasever=latest.
Are AWS Lambda Java runtimes patched?
Not on October 24, 2026: the Lambda Java base images still carried the previous Corretto builds. Managed runtimes on Auto update when AWS ships the patched runtime; container images need a rebuild.
Are the amazoncorretto Docker images patched?
Yes. The official amazoncorretto images were updated on October 23, 2026 with 21.0.13, 17.0.21, 25.0.5, 8u512 and the other fixed builds. Rebuild with docker build --pull.
What is Amazon Corretto 21?
Amazon's free, production-ready build of OpenJDK 21, a long-term support version, for Windows, Mac, Linux and AWS services.
Is Amazon Corretto free?
Yes, for any use including production, with free quarterly security updates.
Is Amazon Corretto the same as Oracle Java?
It is built from the same OpenJDK source and passes the Java compatibility tests, so it runs the same programs. Oracle JDK has its own license terms.
What is the current Java version in 2026?
Java 27 is the newest release (September 2026), and Java 25 is the newest long-term support version.
Which Java version should I use in 2026?
Java 25 for new projects, since it is the newest LTS. Java 21 and 17 remain supported for existing applications.
How do I check which Java version I have?
Run java -version. On Linux, alternatives --display java lists every installed Java; on a Mac, /usr/libexec/java_home -V.
Do I need to restart after updating Java?
Yes. Running Java programs keep the old runtime in memory until they restart.
When is the next Java security update?
Java security updates follow a quarterly schedule in January, April, July and October; the next one is due in January 2027.
For readers preparing for an AWS certification
We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.
Exams that test this topic: Developer – Associate (DVA-C03 from December 1, 2026) • CloudOps Engineer – Associate (SOA-C03) • Security – Specialty (SCS-C03) • Solutions Architect – Associate (SAA-C03).
Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:
1. Lambda functions use the java21 managed runtime. A Java security update is released, and the functions should receive it without a redeploy. What setting ensures this?
Runtime management set to Auto (the default), so Lambda applies new runtime versions automatically.
2. A Lambda function is deployed as a container image based on the AWS Java base image. How does it receive a Java security fix?
Rebuild the image on the updated base image (docker build --pull), push it to Amazon ECR, and update the function to the new image.
3. A company must find and patch outdated Java packages on hundreds of EC2 instances running Amazon Linux 2023, with a report of compliance. Which service fits?
AWS Systems Manager Patch Manager (with patch baselines and compliance reporting), run across the fleet with Run Command or maintenance windows.
4. Security wants continuous detection of container images in Amazon ECR that contain a vulnerable Java runtime or library. What should be enabled?
Amazon Inspector enhanced scanning for Amazon ECR, which scans images for known CVEs in operating system and programming language packages.
5. A team bakes a golden AMI with Java for its Auto Scaling groups. How should a Java security update reach new instances with the least manual work?
Rebuild the AMI with the patched Java (for example with EC2 Image Builder), then roll the Auto Scaling group to the new launch template version.
6. An ECS service reuses the image tag latest. The image was rebuilt with a patched Java and pushed, but tasks still run the old Java. What is needed?
A new deployment (force new deployment or a new task definition revision) so tasks pull the rebuilt image.
Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.
By Monday the shop's container ran 21.0.13, the EC2 host had swapped to Corretto's package, and Ethan had a reminder to check the Lambda's INIT_START line once AWS shipped its update. Jake asked whether there would be another one of these. "Every three months," Ethan said, "like the rent. The trick is knowing which door the update comes through." If anything on this page differs from what you see, please tell us. Guides like this stay accurate because readers write in.
📌 If you keep one line from this page
Every copy of Java gets its update from a different place: winget and Homebrew had it first, Docker images next, and Lambda and Amazon Linux 2023 last, so check each one with java -version.
Corretto 21.0.13 / 17.0.21 / 11.0.33 / 25.0.5 / 27.0.1 / 8u512 · 55 Java SE CVEs · Lambda and AL2023 not patched on Oct 24 · October 24, 2026.
Revision note. Written October 24, 2026, two days after the October Java security release, with the image and package versions of that day. "Mend the roof while the sun shines," the old saying goes, and Java's sunny days come four times a year.