# ALBA-2021:3888: java-1.8.0-openjdk bug fix and enhancement update

> An update for OpenJDK 8 addresses multiple security issues from the October 2021 Oracle CPU, requiring administrators to upgrade the package.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not stated
- **Attackable:** Not stated
- **Victim action needed:** Not stated
- **Fix available:** Yes
- **Published:** 9 Nov 2021

## What is ALBA-2021:3888?

ALBA-2021:3888 is a vulnerability in java-1.8.0-openjdk, published on 9 Nov 2021. 

### Official description

The java-1.8.0-openjdk packages provide the OpenJDK 8 Java Runtime
Environment and the OpenJDK 8 Java Software Development Kit.

Bug Fix(es) and Enhancement(s):

* EMBARGOED java-1.8.0-openjdk: JDK: Oracle CPU 2021-10 (BZ#2012338)

## Which versions are affected by ALBA-2021:3888?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `java-1.8.0-openjdk` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-accessibility` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-accessibility-fastdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-accessibility-slowdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-demo` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-demo-fastdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-demo-slowdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-devel` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-devel-fastdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-devel-slowdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-fastdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-headless` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-headless-fastdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-headless-slowdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-javadoc` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-javadoc-zip` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-slowdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-src` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-src-fastdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |
| `java-1.8.0-openjdk-src-slowdebug` | AlmaLinux:8 | All versions | 1:1.8.0.312.b07-2.el8_5 |

## How do I fix ALBA-2021:3888?

Upgrade to a fixed version.

## Is ALBA-2021:3888 being exploited?

There is no known exploitation of ALBA-2021:3888 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for ALBA-2021:3888 and fix it if it is affected.

What it is: ALBA-2021:3888 is a vulnerability in java-1.8.0-openjdk, published on 9 Nov 2021. 
Exploitation: There is no known exploitation of ALBA-2021:3888 in the wild and no public exploit code.

Affected product: java-1.8.0-openjdk. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/ALBA-2021-3888/ (Markdown: https://insights.sbomify.com/ALBA-2021-3888/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/ALBA-2021:3888

---
From sbomify Insights: https://insights.sbomify.com/ALBA-2021-3888/
Summaries are generated and may contain mistakes; the official description above is the record.
