fix-java-vuln
Use when the user asks to fix, patch or upgrade a Java, JDK or JVM vulnerability (e.g. 'Please fix my Java vulnerability'), Java4Shell or CVE-2026-114938, or…
от CognitionAI★ 42 звезды на GitHub
Установить fix-java-vuln в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Fix Java vulnerability (Java4Shell, CVE-2026-114938)
Overview
Find and fix Java runtimes affected by Java4Shell: a heap memory-corruption bug in the HotSpot JVM's AVX-512 Base64 decoder, disclosed on 2026-11-17 (CVSS v3.1 8.1 per Oracle and OpenJDK, CVSS v4 9.2 per Calif). When Base64 that an attacker controls reaches java.util.Base64 decoding, it can leak memory or lead to unauthenticated remote code execution. A deployment is affected if both hold:
- JDK 17.0.6 or later, 21, 25 or 27 on a build older than its vendor's fixed build. Standard Java 8 and 11 builds are not affected. Oracle Java 8 Enterprise Performance Pack is. The advisories do not list the non-LTS lines (18–20, 22–24, 26) and no fixed build exists for them: treat them as vulnerable.
- An x86-64 CPU with AVX-512 VBMI (Intel Ice Lake or newer Xeon, AMD Zen 4 or newer). ARM64 and older x86 CPUs are not affected.
Base64 from an untrusted source reaching the decoder is what makes it exploitable, and that is rarely something a repo can rule out. Servers decode it in auth headers, tokens and uploads. Clients are exposed too: a Java program that only opens a TLS connection to a malicious server can be compromised, so outbound-only workloads (CLI tools, build agents, batch jobs, integration workers) count.
Inventory read-only first. Wait for approval before editing. Patch each approved repo to a fixed vendor build, verify the built artifact, and open focused PRs. This is a JVM bug, not a library bug: no dependency bump fixes it.
What's Needed From User
- Repos or org to scan. Default: every repo connected to Devin.
- Approval of which discovered repos to patch, and of any major upgrade, JDK vendor change or base-OS change.
- Registry, package-mirror and CI access needed to verify targets and run builds.
- Where it is not in the repos: the CPU or instance types the services run on.
Procedure
- Search all accessible repos read-only with the git host's code search before cloning (if there is none, which is common on GitHub Enterprise Server and self-managed GitLab, shallow-clone and
rg -n --hidden --glob '!.git', since version files are dotfiles). Look for:- JDK and JRE base images (
eclipse-temurin,amazoncorretto,openjdk,azul/zulu-openjdk,mcr.microsoft.com/openjdk,container-registry.oracle.com/java,ghcr.io/graalvm, distroless Java, UBI OpenJDK), including multi-stage builds where the runtime stage differs from the build stage. openjdk-*/java-*-openjdkOS packages (apt/apk/dnf) and JDK tarball downloads..sdkmanrc,.java-version,.tool-versions,actions/setup-javasteps and CI images.- Gradle toolchains (
languageVersion), Maven toolchains andmaven.compiler.releaseas usage signals, and jlink/jpackage custom runtimes. - Managed runtime settings (Lambda
java17/java21, App Engine, Azure Functions, buildpacks). - Helm, Kustomize, Terraform/Packer, and Ansible/Chef/Puppet code that installs a JDK.
- Products that ship their own JVM: Keycloak, Jira, Confluence, Artifactory, Jenkins, PingFederate, Kafka, Solr, Elasticsearch, Gerrit, Spinnaker, and other vendor images or appliances.
- Instance types, node pools and
nodeSelector/architecture settings. An architecture pinned to ARM64 is evidence. An x86 instance family is only a hint, because hypervisors can hide CPU features: the reliable check is theavx512f,avx512bw,avx512vbmiandbmi2flags in/proc/cpuinfoon the host. - JVM options (
JAVA_TOOL_OPTIONS,JDK_JAVA_OPTIONS,JAVA_OPTS, product-specific variables,-XXflags in entrypoints and manifests), to see whether a mitigation flag is already set. - Base64 decoding of request or response data:
Base64.getDecoder(),getUrlDecoder(),getMimeDecoder(), and frameworks that decode for you (HTTP Basic auth, JWT and session tokens, SAML, data URIs, multipart and JSON binary fields).
- JDK and JRE base images (
- Produce one inventory table: repo, file:line, signal, JDK vendor and current version, channel (official image, distro package, tarball, managed platform), exact/floating/digest pin, production vs build/CI-only, CPU architecture and whether AVX-512 VBMI is known, whether a mitigation flag is set, whether it decodes untrusted Base64, internet exposure if discernible, test coverage (none, thin, suite), and confidence. List repos you could not search separately.
- Mark each entry fixed, vulnerable, mitigated, not affected, or unknown.
- Not affected needs evidence: a JDK line outside the affected set, or an architecture pinned to ARM64. "No Base64 decoding found" is not enough, since almost every web service decodes Base64 somewhere in its stack.
- If the CPU cannot be determined from the repos, mark it unknown and treat the entry as vulnerable.
- Mitigated means a vulnerable build that starts with
-XX:-UseBASE64Intrinsicsor-XX:UseAVX=2. It still needs the upgrade. - A product that bundles its JVM is unknown until the product vendor's advisory or t
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл fix-java-vuln?
Use when the user asks to fix, patch or upgrade a Java, JDK or JVM vulnerability (e.g. 'Please fix my Java vulnerability'), Java4Shell or CVE-2026-114938, or to find vulnerable JDK versions in Dockerfiles, distro packages, SDKMAN/asdf version files, setup-java CI, Gradle/Maven toolchains, Helm/IaC or Ansible/Chef/Puppet. Read-only inventory, approval gate, regression tests, focused PRs.
Как установить скилл fix-java-vuln?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fix-java-vuln запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…