Java4Shell Exposed Java Assets: What to Check From Outside

Java4Shell Exposed Java Assets: What to Check From Outside

A name turns up in a Slack channel before anything else does. An insurer’s questionnaire, a client’s security contact or a manager who read a headline asks whether “Java4Shell”affects you, and the honest answer in that first hour is usually that nobody knows, because the prior question has never been answered properly. What follows is a triage order for Java4Shell and your exposed Java assets: verify the name, find the services that could be in scope, prove they are yours, then work out what the code is actually running. Patching is the last step, not the first.

Short version

  • Trace the identifier before you touch a change ticket: CVE, vendor advisory, NCSC or CISA note, working proof of concept. In that order.
  • An unattributable brand name is still useful. It is a prompt to inventory the Java services facing the internet, which you need either way.
  • Build a candidate list from certificate transparency, passive DNS, RDAP, ASN ranges and reverse DNS. A candidate is a hypothesis, not an asset.
  • Java version banners are close to worthless as evidence. Back-ported builds and library-level flaws both break the inference.
  • Expect more misconfiguration than CVE: open actuator endpoints, exposed consoles on 8080, RMI on 1099. None of those has a patch.

Before you patch anything: is Java4Shell a name you can trace?

Branded vulnerabilities have a supply chain of their own. A researcher posts, a vendor writes it up, a sales team puts the logo in a deck, and within a day the name is circulating in procurement questionnaires with no identifier attached to it. Run the same four checks every time, in the same order.

  1. A CVE identifier. Search the National Vulnerability Database for the name and for the affected component. If the brand only exists in blog posts and no record exists in NVD or at the CNA, you have marketing, not an advisory.
  2. A vendor advisory. Oracle, Eclipse Adoptium, VMware Tanzu, Red Hat, Apache: the project or distributor must have said something, with affected version ranges and a fixed build number.
  3. A national body note. An NCSC advisory or a CISA entry, particularly an addition to the Known Exploited Vulnerabilities catalogue, tells you exploitation is real rather than theoretical.
  4. A working proof of concept with preconditions stated. Not a screenshot. The conditions under which it fires.

At the time of writing, “Java4Shell”does not resolve to an identifier we can point you at. That may change by the time you read this, which is exactly why the method matters more than today’s answer. The name borrows its shape from three real flaws, and all three are worth remembering because they failed differently. Log4Shell (CVE-2021-44228, December 2021) sat in a logging library inside applications, reachable through any input that got logged. Spring4Shell (CVE-2022-22965, March 2022) needed a specific stack: JDK 9 or later, a vulnerable Spring Framework version, deployment as a WAR on Tomcat. Text4Shell (CVE-2022-42889, October 2022) required Apache Commons Text 1.5 to 1.9 and an application passing untrusted input into StringSubstitutor with the default interpolators enabled.

Two of the three produced large numbers of “affected”assets that were never actually exploitable, because teams matched on version and ignored the preconditions. Record the precondition you checked, not just the version you saw. The same discipline applies to any new name, including this one, and it is the same approach we set out for another branded scare with a thin paper trail.

What to say in the first hour

Say that the identifier is unconfirmed, that you are treating it as unverified until a CVE and vendor advisory exist, and that in the meantime you are enumerating internet-facing Java services and their owners. Give a time for the next update. Do not promise “we are patching”, because there is nothing to patch yet, and that sentence will be quoted back at you.

Where exposed Java assets actually sit on a public estate

The obvious ones are easy: Tomcat, Jetty, WildFly, JBoss EAP, Spring Boot services behind a reverse proxy, a Jenkins controller that someone published so a supplier could reach it, an Elasticsearch node on 9200 that was “temporary”. You already know about most of those. They are in the CMDB, and a branded scare pushes everyone to patch precisely the things that are already in the CMDB.

The gap is elsewhere. It is the Tomcat instance behind a CNAME pointing at a load balancer that was decommissioned last year. It is the appliance procured as hardware, entered on the asset register as a box with a warranty, quietly running an embedded JVM behind a web console nobody classifies as a server. OT gateways, HMIs, remote access concentrators, building management controllers, backup appliances: all of them routinely ship a Java stack that the purchase order never mentioned. Our walkthrough on finding internet-facing OT devices covers that category in detail, and it applies here without modification.

Then there are the management surfaces. Worth sweeping on a Java-heavy estate: 8080 and 8443 for application and admin consoles, 9990 for the WildFly management interface, 1099 for the RMI registry and JMX, 9200 for Elasticsearch, alongside everything certificate transparency surfaces on 443. Add the Spring Boot actuator paths while you are there, because /actuator/env, /actuator/heapdump and /actuator/mappings leak credentials and internal topology without any exploit code involved.

Which leads to the point most sweeps miss. The library is usually the risk, not the server. Log4Shell was not a Tomcat flaw; it lived in applications and appliances that no port banner ever identified as Java at all. Organisations with a current, accurate asset list still spent weeks on it in December 2021, because the question was never “which hosts run Java”but “which running code loads this dependency”, and the outside of the box does not answer that.

Build the candidate list: from seed domain to everything that could be yours

Start with certificate transparency. Every publicly trusted certificate issued for your domains is logged, so a search across crt.sh and the newer tile-based logs served through the Static CT API will hand you hostnames that no internal source holds, including the subject alternative names bundled into certificates issued for something else entirely. Two gaps to hold in mind: a wildcard certificate hides every host under it, and anything issued by a private or internal CA never appears in a public log. Certificate transparency is the opening move, not the whole game.

From there:

  • Passive DNS for historical resolutions, which is how you find the hostname that stopped resolving in 2023 and started again last month.
  • RDAP and WHOIS for registrant data and related domains. RDAP is now the primary route for gTLD registration data following ICANN’s retirement of the port 43 WHOIS requirement in January 2025, and it returns structured JSON, which makes it far easier to pivot on than scraped text.
  • ASN ranges and reverse DNS for IP space you own or rent, including the /29 at the colocation site that your network team still thinks of as “the old DR link”.
  • Search engines, public repositories and package manifests. A pom.xml, a build.gradle, a Dockerfile or a deployment script in a public repo will name internal hostnames, JDBC strings and staging endpoints with enthusiasm. Java projects are particularly generous here because dependency files are checked in by default.

We have written separately about how discovery expands from a seed into an inventory, and about doing the same work with free tooling when there is no budget in the room. The method matters less than the discipline around it: everything you have produced so far is a list of candidates, not a list of assets. Mark it that way in the spreadsheet, literally, in a column. Teams that skip that step end up with four thousand rows of noise by day three and quietly abandon the exercise.

Attribution: proving an exposed Java service is genuinely yours

Read the resolution chain end to end before you claim anything. A hostname resolves to a CNAME, which resolves to another CNAME at a CDN, which resolves to an address in a cloud provider’s range that is shared by ten thousand tenants. Stopping at the first name you recognise is how a supplier’s shared platform ends up on your remediation plan, and how your own origin gets missed because the front door belonged to someone else.

Shared and third-party platforms need an explicit answer to one question: who holds remediation rights? If a Java service runs inside a supplier’s tenancy, you own the risk and the notification duty, and they own the change window. Find out which contract clause says so before the incident, not during it.

Dangling records deserve their own pass. A decommissioned Java application that still has a live DNS record is two things at once: a takeover exposure, and a strong ownership clue, because the record exists in a zone you pay for. We cover the mechanics in the piece on dangling DNS and subdomain takeover. For this exercise, treat a dangling record as evidence of your own former estate and go looking for its siblings.

Seven fields worth recording

  1. Canonical identity and aliases (one host, every name it answers to).
  2. Resolution path, written out, CNAME by CNAME, with the date observed.
  3. Named owner, with the date they accepted it. A team name is not an owner.
  4. First seen and last seen.
  5. Confidence: confirmed, probable, disputed.
  6. Evidence: the certificate, the resolution, the header, the ticket reference.
  7. Disposition and review date: patch, decommission, accept, refer to supplier.

When an insurer or auditor asks in eight months whether a given host was internet-facing on a particular date, fields four, five and six are the difference between an answer and a guess.

Verification: what the banner says versus what the code runs

A Java version string on the wire is close to useless as evidence, and this is the part people underestimate. Builds from Eclipse Temurin, Amazon Corretto, Azul or a Red Hat distribution carry back-ported security fixes while the reported version keeps its original-looking number, so a host can read as vulnerable and be patched. The reverse also happens: a recent-looking JDK with a vulnerable library bundled into the application WAR. Library-level flaws like log4j never appeared in a server header at all.

Fronted services add another layer of fiction. If a CDN or reverse proxy answers the request, the headers you are reading describe the edge, not the origin JVM. A Server: nginx response tells you nothing about the Tomcat behind it, and a JSESSIONID cookie tells you something is Java somewhere, without telling you which build or which dependency tree.

So the evidence ladder runs: passive signals narrow the candidate set, active checks confirm the service responds in a particular way, and an authenticated check against the host or a reliable SBOM confirms what is actually loaded. A change board will accept the third for an emergency change. It will usually push back on the first, correctly. The trade-offs are set out more fully in our comparison of passive and active vulnerability detection.

Finish with reachability, which is the question that decides the ticket. Is there a network path from the internet to the listening port? Does authentication sit in front of it? Is the vulnerable code path actually invoked by any request the service handles? Spring4Shell produced enormous “affected”lists precisely because that last question went unasked.

Triage, clocks and what to do with the findings

Order the work by exposure and blast radius, not by CVSS alone. An unauthenticated management console on 8443 that reaches an internal network beats a 9.8 on a host that only a supplier VPN can see. Keep misconfiguration findings in a separate bucket from CVE findings, because they behave differently: one closes with a config change and an owner conversation, the other waits for a vendor build. In most Java sweeps the misconfiguration pile is larger and nastier. Exposed actuator endpoints, an open Jenkins console, RMI on 1099 with no filter in front of it. None of those has a patch to apply.

Re-scanning on a monthly calendar will not catch what matters. Trigger a sweep on change instead: a new certificate appearing in a transparency log for one of your domains, a new DNS record, a new public IP allocated, a supplier go-live, a merger completing. That argument is made at length in our note on why triggers beat calendars, and compliance frequencies such as quarterly scanning should be read as a floor rather than a schedule.

Measure exposure time, not finding counts. First seen to disposition, per asset, as a distribution rather than an average. It is the only number that tells you whether the programme is improving.

The UK context is tightening. The Cyber Security and Resilience Bill, introduced in Parliament in November 2025 and still progressing at the time of writing, proposes short notification clocks for in-scope organisations, with an initial notification measured in hours and a fuller report following within days. Confirm the current drafting and timings before you build a process around them, since both can change as the Bill moves. The practical implication does not change: every one of those clocks assumes you already know what you have facing the internet when it starts. Our breakdown of what to fix first under the Bill goes through the external gaps, and the NCSC’s vulnerability management guidance is the right baseline for the patching side.

Reconstructing six months of DNS history while a regulator waits is not a position you want to be in. That is the real argument for doing this work now, under a name that may turn out to be nothing.

Frequently Asked Questions

Is Java4Shell a real CVE, and how do I check?

Check NVD and the relevant vendor advisory pages for the component, then look for an NCSC advisory or a CISA Known Exploited Vulnerabilities entry. At the time of writing there is no identifier we can point you to under that name, but names and records change, so run the check rather than trusting this answer. Until a CVE and a vendor advisory exist, record it as unverified and say so to whoever asked.

How do I find every exposed Java asset on my public estate?

You will not find every one, and planning around that honestly is better than pretending otherwise. Start with certificate transparency, passive DNS, RDAP and your ASN ranges to build candidates, then sweep the Java-relevant ports (8080, 8443, 9990, 1099, 9200) alongside 443, and cross-check against appliances and OT kit that bundle a JVM without advertising it. Wildcard certificates, private CAs and supplier-hosted services are the three places coverage reliably drops.

Can a Java version banner tell me whether a host is patched?

No, and treating it as proof is a common way to get both false positives and false negatives. Back-ported builds from Temurin, Corretto or a Red Hat distribution keep old-looking version strings while carrying the fix, and library flaws such as log4j sit inside the application where no banner reports them. You need an authenticated check, an SBOM or a targeted active test before you call it.

What is the difference between a candidate list and a verified Java asset inventory?

A candidate is a hostname or address that might be yours, based on one observation. An asset is a candidate whose resolution path you have read end to end, whose owner has accepted it by name and date, and which carries evidence, a confidence rating and a disposition. Keeping the two in separate columns is what stops a discovery exercise collapsing into a pile of unactioned rows.

How quickly should I re-scan after a named Java exposure scare?

Run a full external sweep immediately, then re-run it on change rather than on a monthly cycle: a new certificate in a transparency log, a new DNS record, a newly allocated public IP, a supplier go-live. During an active scare with confirmed exploitation, daily discovery against your highest-tier domains is reasonable until the vendor build is deployed and verified. Quarterly compliance scanning is a floor, not a schedule.