From the section on performing heap grooming over the network ("Remote Heap Feng Shui"):
> The current attack is sensitive to network conditions, like RTT and jitter. Low, stable round-trip times are preferred for a more reliable attack. In our controlled environment, we performed this attack over the internet through public IP addresses instead of just assuming perfect laboratory conditions. For the current attack path to achieve optimal stability and reliability in exploitation, Calif turned to physics and utilized money to solve the problem, rather than experimenting with TCP/IP stack configuration. In other words, Calif rented another VM in the same region as our target.
And the "Limitations" section:
> There is no universal payload. Each chain needs a decoder route, a live writer, a returned reader or another feedback path, a heap layout, and an application action. Every target needs a bespoke profile. The exploit is not a universal point-and-shoot.
Based on the complexity and constraints, short-term mass-exploitation seems unlikely. It will take some time before there are reliable exploits, and they may require running on infra close to the target.
But a long tail of unpatched java applications/services at high-value targets getting exploited, seems plausible to me.
>It will take some time before there are reliable exploits, and they may require running on infra close to the target.
Think that you're targeting KeyCloak and have a semi-working exploit that dumps some parts of heap memory with live tokens. You can go after 100s of banks globally, whole Tesco infra, dozens of gov.uk websites including HMRC and Home Office, azure containers... you know, anyone mature not do write their own auth server: https://www.shodan.io/search?query=keycloak
Well... depending on the application, there might still be code paths in which an attacker can supply b64 to be decoded in a way that can lead to exploitation.
Three years ago, I'd have said, yeah fix the bug but it's so complex to exploit it doesn't need immediate urgency. But now, with AI on the scene? Probably any Java application that somehow accepts user generated input can be exploited for less than a grand in AI token spend.
Yes, I guess the TL;DR is the chances of a drive by attack are low, but a sufficiently motivated actor with a specific target in mind might be able to exploit it.
Indeed, it can be a SKILL.md that writes the exploit. So in the end it could still be quite mass exploitable, only depends how much context is needed to write the exploit.
This is not my experience. Great for recon/fuzzing but rather bad at chaining together exploits or creatively making those connections, and you need A LOT of tokens and time to get real results with llms. These capabilities are not within reach for anyone without resources and skills.
But please prove me wrong, if its so easy with an llm theres millions of dollars waiting to be picked up on h1!
Calif gets unlimited tokens from OpenAI to make these findings. Theyre basically the METER operation for OpenAI and scary AI cyber narratives.
Can't see it exploitable. You're writing some bytes after the allocated object memory. Java objects live in heap. The order will be completely undefined and GC moves objects around. So the best case you just write some bytes into next object, corrupting it in some way. There are millions of objects in any Java program and the program behaviour will be completely non-predicatable if you corrupt the objects. Most likely JVM will eventually crash if you corrupt object header.
* HotSpot VM: any OpenJDK build, Oracle JDK, or GraalVM JDK. Only HotSpot generates the stub. OpenJ9 and GCJ are OK. Azul Prime (Zing), which replaces C2 with its own JIT, and any VM name not recognized as HotSpot are [?], never [!].
* x86-64 JVM on an x86-64 host.
* Version 17.0.6 or later, not at or above a version listed in FIXED_IN, and no newer than the newest releases checked (see below). Newer versions are [?]: they may carry the fix.
* The JVM reports avx512_vbmi and avx512bw, and UseAVX >= 3.
* Base64 intrinsics are on and C2/JVMCI can compile. These turn it off: -XX:-UseBASE64Intrinsics, -XX:DisableIntrinsic=_base64_decodeBlock, -Xint, -XX:TieredStopAtLevel below 4.
The write-up itself matches your version assumption, however it also says:
> According to Oracle, the following Oracle Java SE versions are vulnerable: 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3. We thank Oracle for providing this information ahead of publication time.
So according to Oracle at least, JRE8 versions are affected as well.
It's a bit of a mess. The first four are for the jvm, shared across all implementations: $FEATURE.$INTERIM.$UPDATE.$PATCH
$FEATURE: increased every six months when new features are released (or removed)
$INTERIM: currently always 0, reserved for future use
$UPDATE: non-feature releases like bug, security or regression fixes. Releases one month after the feature version; then every three months
$PATCH: important updates out of schedule
Specific implementations may introduce a fifth component for updates that do not come from the shared implementation but are distribution-specific (think Oracle fixing a bug that only happens in Oracle distributions)
(Then there's more, like +2 build numbers, and older versions have a slightly different format)
Wouldn't it be prudent for someone to patch even if they aren't running their code on an AVX512 system right this moment? They could be running on one.. next moment.
Depends on the company and deployment method. As Ops person, I generally don't think much about rolling out different Kubernetes Nodes and what SKU I select. So yes, you could be running on one node type today and tomorrow I upgrade the nodes under you.
We’re using a second-tier cloud provider’s managed Kubernetes offering, and in investigating our level of exposure to this, I just learned that there is variance within a node pool on whether AVX-512 is available.
This - I remember taking a suggestion to cat cpuinfo as part of container start in AWS and you do get a bit of variety as you'd expect (five year old processors last time I checked as well).
> Or, do running machines often have their CPU changed from under them without much notice?
I dunno about other cloud providers, but I know AWS can move your EC2 VM from one system to another transparently. There is a server ID you can get from the metadata, but unless you're checking it frequently, you can be moved without ever being aware.
Question is if they expose it to the guest. Many (most?) cloud platforms will make the guest see the lowest common denominator, specifically to avoid angry customers when their working setup suddenly breaks.
In the case of transparent migration, I think it's basically a must. No JIT (or even libc probably) is going to support CPU features changing at runtime.
AWS migrates live instances to new CPUs without needing to stop or reboot the guest.
When a migration is needed, the hypervisor begins copying blocks of memory to the new system, keeping track of what blocks are written inside the guest during the migration. Once enough has been copied, it hibernates the guest, copies the remaining memory, then wakes it in the new system. On a system that isn't writing to large swaths of memory, it can take only a few milliseconds. To the guest, it might appear that the CPU froze for a tiny bit of time, which could easily just look like a neighbor got noisy.
Yes, but that's irrelevant here because the CPUID report won't change across live migrations.
Consider what would happen if you were live migrated from a machine with AVX512 to one without. Your app would suddenly start crashing with SIGILL for no apparent reason. So, live migrations always preserve the apparent CPU feature set. If you started on a machine without AVX512 then until the VM is rebooted you will remain on such a (virtual) machine.
Oracle owns Java and Oracle is "OpenAI funded" in the sense that Oracle's data center buildouts are being done using OpenAI as a consumer.
The circular financing continues!
But seriously, the funding here doesn't matter any more than Project Zero's funding comes from Google. Big companies are trying to improve security for the common software substrates of our industries / governments.
This looks like Claudese - may be kind to write such things yourself if you intend for humans to read them. (For example, “ HotSpot VM: any OpenJDK build, Oracle JDK, or GraalVM JDK. Only HotSpot generates the stub. OpenJ9 and GCJ are OK. Azul Prime (Zing), which replaces C2 with its own JIT, and any VM name not recognized as HotSpot are [?], never [!].” — I tried parsing at least five times before realizing you’re asking me to decipher LLM talk)
Azul Core definitely is - it uses upstream HotSpot.
Azul Platform Prime (formerly Zing) may or may not be depending on whether they touched the base64 intrinsic. Since it is closed-source there is no way to verify via code, which is how our research team investigates ecosystem events like this.
What’s that old Chinese proverb? “May you live in interesting times”? It feels like we’re living in interesting times. How long will it take for a bad actor to seriously compromise critical infrastructure? My bet is within six months.
The upside is that it’ll force legacy institutions and organizations with sub-par security to get good at security and modernize their legacy stacks. That, or get pwned in short order.
We've already seen an attack on transfusion blood storage.
I wouldn't minimize the impact of the ones on supermaket freezers either. It was technically dumb and somewhat laughable, but we're talking food. The affected chains had stores in very rural areas with elder people living in remote places, these supermakets would be the only purveyor of long conservation food.
I'd argue we're already there, albeit at small scale yet.
Preportioned meals that are hot and ready at the push of a button is a godsend for people with disabilities and/or entering older age. Someone buying a few dozen of those can be set for weeks, longer if they also continue cooking simple dishes from time to time when they feel good. This helps tremendously to keep them independent and self sufficient.
Someone coming once every month to the supermaket to restock, only to be told there's only fresh and canned food available must feel devastated IMHO.
Just because vegetables are sitting out there in the open doesn't mean it shouldn't be stored in cool places before it reaches the supermarket. And last time I checked people valued eating safe meat and being treated with pristine medicine.
That's what they want you to expect. Either way, the worst possible people on our side will take advantage of it, and possibly cause it for that opportunity.
A lot of organizations we sitting on internal bugs for years because they thought they were impossible to exploit, and now their red team can break them in hours.
Most businesses are stuck in a trap now. They know the software is exploitable, but they are organizationally slow in testing and rollout. They have to start moving fast with security and IT organizations that are cut to the bone, yet at the same time contain to much box checking deadweight.
I don't think AI slop code is the proximal cause for most of this. It is, however, the most common meme for blame.
My suspicion is (1) company execs are being told to expect company extinction if they don't force faster velocity and (2) we are increasingly building more and more complex systems, so neither AI nor humans can find all of the issues before they cause outages.
I think this bet is optimistically assuming a far more competent world than the one we actually have. Have you seen the idiot clowns actually in power? The agency that might've been tasked with this hypothetical secret scrum, CISA, has been gutted and left to rot because they thought it was an enemy plot to censor them on social media or whatever. There's no secret room where the smart people are fixing things.
There is no secret room where smart people people aligned with the interests of the people of the United States are fixing things. There may not be any smart people left in the Federal government who aren't actively engaged in looting it.
>The best hacker today is neither AI nor human. It is the centaur hacker, part human, part AI.
I think only really smart people are going to be left in Security and Software. I can barely fathom what this group is doing with AI right now (ignoring that their model probably isn't nerfed and mine would be) and I don't think any of this is trainable for the average developer. This is starting to feel like some of the scientific fields where careers start when you get a MS/PhD. Or like the average developer is on the same level of not being able to convert a Word document to PDF.
> I think only really smart people are going to be left in Security and Software.
I'm looking forward to eventually getting there. At the moment, there's so much low hanging fruit that even someone without a clue like me can just point a fuzzer at some random Linux kernel code and still discover problems.
(Most of the problems I found from that exercise are patched by now, if you use a recent enough kernel.)
I used Kimi to drive the fuzzer. The model didn't have to do anything smart, just do the tedious work of writing the glue code to make the fuzzing work. AFL++ did the 'smart' parts, and I had the idea to kick it off and oversaw the patches.
Chess is very constrained, and doesn't require all sorts of knowledge about the broader context outside the game.
Once models are more hooked up to sources of information, their capabilities will improve. Currently, humans are a bottleneck for providing the information relative to specific problems.
"Take the human out of the loop" - I think there was a documentary about that, with Matthew Broderick.
Truth be told; as far as I can tell, the output the human gets from the AI can vary vastly in quality, depending on guardrails on the AI side. Guardrails that are internal (and opaque) to the user, combined with directives the user sets up, often manually.
(for example, I have mine keep ready reference to all of our CMMC controls and best practices)- and not only will my sessions cite referenced material as it responds, but it will do so when it writes code, as well - and it does a pretty decent job of keeping me honest. The one bit I'm struggling with is limiting complexity when it designs a solution to a problem. For larger projects, this can snowball quickly - and I haven't found an effective way to prevent this yet.
Skills can be shared, but it's a bit of a steep climb to getting an entire organization to pick the same skill (to get consistent behavior across the whole org)- sometimes an individual skill as it's written, will conflict with some other personal standard or quirk of how they work, so it's difficult to share them. This really seems, to me, to be very similar to how the software world used to work (as far as interoperability goes), earlier in history when there weren't many open standards, (and NO open source code) - and every competing OS vendor was trying to destroy their competitors so they could become a monopoly.
But yes, there's quite a bit of effort now that goes into maintaining this personal harness, and I'm sure the even smarter folks will come along and figure out workable ways of standardizing and sharing those kinds of harnesses.
I've been in this industry for 30 years, and the way I work has always changed with the times and new tools. It changed a LOT when Dev Ops became a thing. IaC, and containers. This feels kind of like that change, but maybe an order of magnitude. Almost feels like going from assembler to learning something like python; in terms of how much abstraction is being added.
They aren’t wrong that we should be deleting more support and removing more features. The idea that the linux kernel by default builds support for all sorts of ancient systems nobody has ever heard of is absurd.
The kernel already dynamically loads kernel modules based on hardware it's running on so most of the junk isn't loaded. But for the stuff you can't dynamically load, it's a tradeoff between stripping the kernel down and supporting the most hardware.
Maybe distros could provide two builds, one for modern hardware only and one for maximum compatibility.
Back in the day, I used to build windows XP as stripped down as possible. Maybe something like that is possible? Distro installer determines what hardware you're running, then only includes what is absolutely necessary?
More annoying the first time you plug in that USB DAC or whatnot, but would reduce the attack surface heavily.
Who am I kidding... someone is going to comment that Dolphin Linux has supported this since 2013.
You have to compile the kernel to change the included features. You can certainly do that and some people have been running stripped back kernels for a long time but you can imagine why mainstream distros don’t make you do that.
Before recently kernel security was relatively acceptable.
Java has lots of it, even crc32 has a similar loop.
Few years back I had to manually inspect the crc32 loop (due to gzip warnings) when it was used on unalign arrays. It was ok.
The JIT can't afford the runtime to do these kinds of fixed function optimizations, and isn't tuned to perform them well.
Even your C standard library has assembly language implementations of things like strlen because your AOT C compiler can't optimise these functions optimally
(Re-reading my comment, sounds like I'm throwing shade. I was just trying to state a fact. In fact most of the third party distros have been caught off guard).
It was fixed in Azul and Corretto this morning. Eclipse is notorious for slow rolling patches. It’s sad that they convinced a large number of people to run Temurin.
I see no security advisory from Elasticsearch yet,we operate multiple ES clusters and I am not exactly sure what the mitigation is here. Changing our JVM options and restarting the nodes?
This looks like it requires G1? ZGC, ParallelGC or Serial are not affected? Smaller workloads running on singe CPU containers would default to Serial GC.
Automatic loop vectorization is unreliable since even small innocent-looking code changes can thwart loop shape detection and introduce optimization barriers. Apart from that the JIT is under a tight runtime budget, unlike an AOT compiler.
The Vector API was introduced to communicate intent more clearly to the JVM and to make optimizations more reliable. Unfortunately it is currently still incubating to make adapting it to Project Valhalla possible.
I saw some assembly in code at work for various hot path stuff but it was all written before the last version control move. The 64-bit stuff was just done in plain C though which was probably good enough by the time it needed to updated to build as 64-bit.
The risk owners, security teams, compliance teams - are all holding tight inside a tent built for the usual weather, but facing an un-announced storm now.
Their first priority is not stabilizing the tech tent. They are busy planning the risk distribution, risk outsourcing, legal prep, customer messaging, ToS/SLA reviews, contracts etc. They are reinforcing the good-old fort walls around the tech tent.
That doesn't surprise me. Long strings of "A"s are the traditional way of finding/triggering buffer overflows as they're easy to spot in the memory dumps.
If I owned an entire language platform with a JIT, it would not contain assembly in its standard library, it would simply be improved until it generated something at least that fast from high-level source code on that target CPU.
This is something I really like about LLVM. Their libc isn't spilling over with hand-written assembly. It's written in straightforward C++ under the belief that the compiler does, or will do, a good job.
> If I owned an entire language platform with a JIT, it would not contain assembly in its standard library, it would simply be improved until it generated something at least that fast from high-level source code on that target CPU.
Interestingly I remember a guy who worked on the JVM giving a talk and saying (back then at least) that they were working to move as much of the JVM to plain Java as they could.
Encode binary data in text because some dumb thing can't process binary. Text back to binary slow, so better make use of ridiculously wide vector width thing to speed up dumb decoding step we should have never become reliant on in hot paths. Derp, memory safety bug. Derp, die because performance "optimization".
Our incredibly high tower of Jenga blocks is falling down under its own weight.
So many promotions because of optimizing cosmically unnecessary work, though.
Derp, derp, this is humans making computers.
As a person who does these kinds of optimizations, it hits in the feels.
Uuuu, bug and exploits part is pretty standard so becomes boring wall of text that is instantly obsolete after patches, I hope ;) And no animation ?? How hard it is to splash there some animation ?? ;)
But there is part of article that somehow nobody mentions ! "A call for vibe-uncoding" and that is a future and sane sanity. How many unused Linux modules laying on disk ? And more commercial systems are usually worse - installer just unpacks and declares warranty void if something is modified or removed - law enforced stupidity.
You have [open] code ? You can clean it by doing very coarse work of not calling unused code or hardcoding return error on calling unused parts.
Like FTP code. Open source IT declared it dead years ago but camera and game manufacturers and probably more industries didn't get a memo. Still we do not implemented ftp replacement and ssh is single point of failure.
That Vibe Uncoding section didn't go where I thought it was going. Instead of suggesting people stop vibe coding and potentially introducing more/new vulns, they suggest vibing the removal of features and hoping the model or the tests it generated or whatever catch the edge cases. It really does feel like we're circling the drain here, folks.
built for java 6, built in one didnt come to java 8, never noticed.
Now it has lots of other little functions, like inline AES256 encryption/decryption and different functions names (like encode lines for b64 split over lines).
Your decoder implementation accepts all sorts of non-Base64 strings and decodes them to whatever. Among other things, it also accepts MIME Base64 (with line breaks and whitespace) and base64url strings, but decodes them to the wrong values. This is a classic example of insufficient input validation that can lead to parser mismatch vulnerabilities or worse.
Leaving aside the vulnerability, this is a terrible blog post. Even the title is wrong (RCE anywhere, no only on x86). The smug tone and the LLMese makes me want nothing to do with this mob.
Vibe uncoding should be the way forward to prevent these bugs. LLMs should strip and bake our apps with only those required features and libraries to reduce the blast radius instead of affecting everyone. LLMs are not only good with vibe coding but also aka. vibe uncoding.
The fact that mainstream modules have such trivial bugs in logic that can be fully covered by testing is staggering. It is about time software developers will have proper test coverage for their code, at least for basic "unit" modules. Maybe we can even name a testing philosophy to match it.
Not sure this is as trivial as it seems. The bug triggers on a specific instruction set, on a precise input length, with a specific character at the end, and when on the hot path, and requires low level memory access checking to be detected.
For the finished jre yes. But one would hope these kind of checks are also run on a hand rolled decoder function. Fuzzing that one and finding logic bugs is a lot easier
Finding these kind of bugs would have required fuzzing and some kind of bound checking canaries. Not sure all bound checkers work on the hand-optimized assembly.
Or as it turns out an LLM! Not clear whether their agent spawned any classic tools...
When PHP2shell was announced, before the patches were available, I wrote a proxy to sanitize input. You should have an input-sanitizing proxy in front of your app servers anyway instead of waiting for patches for as-yet-undiscovered CVEs.
PHP < 8 doesn't have patches coming. It's either the proxy or be pwned. Some our honeypot machines running PHP 5 got infiltrated with full chained kernel-level exploits. The ones with the proxy didn't. Which one do you want to be?
Having said that, my proxy approach wouldn't fully protect ALL Java apps in this case, because:
A Java program that opens a TLS connection to a malicious server can be compromised, even if it exposes no service of its own.
The problem is that you can't intercept and "heal" TLS connections with a proxy, unless you also spoof the TLS certificates. However, since most Java apps don't pin certs, a workaround is using /etc/hosts and a CA cert added in cacerts. Then the proxy approach works even on outbound traffic. And you don't have to wait for the patches.
1. Add maliciousserver.com -> 127.0.0.1 (or proxy IP) in /etc/hosts
2. Java app resolves the hostname, connects to your proxy on 443
3. Proxy presents a cert for maliciousserver.com signed by your local CA
4. JVM checks: right hostname, trusted CA? handshake succeeds
5. Proxy connects to the real server (using its own resolver that bypasses /etc/hosts, or the real IP directly)
6. Normalizes Base64 in the response (assuming Calif relies on a wacky base64)
7. Relays to Java client (safe)
so what you'd do is:
1. Generate proxy CA cert
2. Install in JVM truststore (keytool)
3. /etc/hosts entries for known hostnames
4. forward_proxy config block (port, ca_cert, ca_key)
5. You have three options for routing:
HTTPS_PROXY env,
JVM flags (-Dhttps.proxyHost),
or iptables REDIRECT (covers code that ignores proxy vars)
6. Start qbixproxy
7. Verify with curl
The usual disclaimers... lock down the executable, removing any ability to read or write files, only pass traffic through like a proxy. Investigate the repo yourself, with your own Claude or ChatGPT etc. The repo even has links to pre-fill the prompts to do just that.
I'm putting this out under MIT license to help people, but under this license it disclaims all warranties, including implied warranty for merchantibility etc.
From the section on performing heap grooming over the network ("Remote Heap Feng Shui"):
> The current attack is sensitive to network conditions, like RTT and jitter. Low, stable round-trip times are preferred for a more reliable attack. In our controlled environment, we performed this attack over the internet through public IP addresses instead of just assuming perfect laboratory conditions. For the current attack path to achieve optimal stability and reliability in exploitation, Calif turned to physics and utilized money to solve the problem, rather than experimenting with TCP/IP stack configuration. In other words, Calif rented another VM in the same region as our target.
And the "Limitations" section:
> There is no universal payload. Each chain needs a decoder route, a live writer, a returned reader or another feedback path, a heap layout, and an application action. Every target needs a bespoke profile. The exploit is not a universal point-and-shoot.
Based on the complexity and constraints, short-term mass-exploitation seems unlikely. It will take some time before there are reliable exploits, and they may require running on infra close to the target.
But a long tail of unpatched java applications/services at high-value targets getting exploited, seems plausible to me.
>It will take some time before there are reliable exploits, and they may require running on infra close to the target.
Think that you're targeting KeyCloak and have a semi-working exploit that dumps some parts of heap memory with live tokens. You can go after 100s of banks globally, whole Tesco infra, dozens of gov.uk websites including HMRC and Home Office, azure containers... you know, anyone mature not do write their own auth server: https://www.shodan.io/search?query=keycloak
> anyone mature not do write their own auth server
Anyone mature enough not to write their own auth server? I agree with the sentiment.
still pretty scary for multi-tenant infra
Yes but don’t those usually have nginx or friends in front of them? Which apparently frustrates the block size of data being transmitted.
Well... depending on the application, there might still be code paths in which an attacker can supply b64 to be decoded in a way that can lead to exploitation.
Three years ago, I'd have said, yeah fix the bug but it's so complex to exploit it doesn't need immediate urgency. But now, with AI on the scene? Probably any Java application that somehow accepts user generated input can be exploited for less than a grand in AI token spend.
Yes, I guess the TL;DR is the chances of a drive by attack are low, but a sufficiently motivated actor with a specific target in mind might be able to exploit it.
So, patch your systems, governments!
I’m sure they’re all working late on a Tuesday doing just that. /s
> Based on the complexity and constraints, short-term mass-exploitation seems unlikely
Haven't you heard of this new fangled thing called AI?
Some people love living under rocks.
What about this "newfangled AI"? Going into mindless panic over every big security team self-marketing post is not a rational behaviour even with AI.
Decoder route pretty low bar given basic auth right? I think the higher bar is the hardware requirements for exploitation
all the cloud providers with x86 use those processors
not Azure. The AMD machines we have for example are Zen 3 as far as I can tell.
> Based on the complexity and constraints, short-term mass-exploitation seems unlikely. It will take some time before there are reliable exploits
Mass exploitation, maybe. But LLMs are pretty good at finding exploits now as Calif showed at unprompted a few weeks ago.
Indeed, it can be a SKILL.md that writes the exploit. So in the end it could still be quite mass exploitable, only depends how much context is needed to write the exploit.
This is not my experience. Great for recon/fuzzing but rather bad at chaining together exploits or creatively making those connections, and you need A LOT of tokens and time to get real results with llms. These capabilities are not within reach for anyone without resources and skills.
But please prove me wrong, if its so easy with an llm theres millions of dollars waiting to be picked up on h1!
Calif gets unlimited tokens from OpenAI to make these findings. Theyre basically the METER operation for OpenAI and scary AI cyber narratives.
Are any of these new meme exploits actually exploitable? Do you guys remember when we had human exploits that actually worked...
Can't see it exploitable. You're writing some bytes after the allocated object memory. Java objects live in heap. The order will be completely undefined and GC moves objects around. So the best case you just write some bytes into next object, corrupting it in some way. There are millions of objects in any Java program and the program behaviour will be completely non-predicatable if you corrupt the objects. Most likely JVM will eventually crash if you corrupt object header.
You can read the article to understand how heap layout is made more predictable.
"More predictable" != "predictable". This said, even a remote crash 1 time out of 1M request is significant.
Attacker controlled writes along with heap grooming allows for exploitation. Very common practice.
So at least DOS is possible?
Causing OOM should be rather trivial.
Are we talking about the five pounds of feathers and five pounds of bowling balls thing?
>Based on the complexity and constraints, short-term mass-exploitation seems unlikely.
Don't see how this is a safe assumption in the modern era of LLMs.
> The current attack is sensitive to network conditions, like RTT and jitter.
LLMs aren’t magic, they can’t alter physics.
With only a few major cloud providers, running a VM in physical proximity isn't a herculean task though.
In particular booting a VM is cheap, having them in all potential regions won't break the bank.
Something like 20% of all internet is colocated in us-east-1.
Citation needed.
Xirdus. (2026, November 18). Something like 20% of all internet is colocated in us-east-1 [Online forum comment]. Hacker News. https://news.ycombinator.com/item?id=50540186
And they can't write network code for shit.
Super impressive work by Calif as usual.
The exploit conditions are very specific but there are still going to be a lot of hosts impacted. We at Semgrep published some free detection scripts here: https://github.com/semgrep/detection-scripts/tree/main/CVE-2...
They look for these five conditions:
The write-up itself matches your version assumption, however it also says:
> According to Oracle, the following Oracle Java SE versions are vulnerable: 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3. We thank Oracle for providing this information ahead of publication time.
So according to Oracle at least, JRE8 versions are affected as well.
25.0.5.0.3 is the latest on the 25 version [0]. Does that mean no patch is available?
[0] https://www.oracle.com/java/technologies/javase/jdk25-archiv...
That's the archive page for older downloads. The main download page [1] reports the latest version as 25.0.5.1.
[1] https://www.oracle.com/java/technologies/downloads/#java25
Ofc they needed 5 version numbers.
Wow, yeah. Why do they need 5 version numbers!?
It's a bit of a mess. The first four are for the jvm, shared across all implementations: $FEATURE.$INTERIM.$UPDATE.$PATCH
$FEATURE: increased every six months when new features are released (or removed) $INTERIM: currently always 0, reserved for future use $UPDATE: non-feature releases like bug, security or regression fixes. Releases one month after the feature version; then every three months $PATCH: important updates out of schedule
Specific implementations may introduce a fifth component for updates that do not come from the shared implementation but are distribution-specific (think Oracle fixing a bug that only happens in Oracle distributions)
(Then there's more, like +2 build numbers, and older versions have a slightly different format)
Native Image is also unaffected without `-march=native` which is not a default.
Wouldn't it be prudent for someone to patch even if they aren't running their code on an AVX512 system right this moment? They could be running on one.. next moment.
Sure, but I think it brings it down from "patch immediately" severity, to just "bump the JDK with next service deploy" severity.
Or, do running machines often have their CPU changed from under them without much notice?
Depends on the company and deployment method. As Ops person, I generally don't think much about rolling out different Kubernetes Nodes and what SKU I select. So yes, you could be running on one node type today and tomorrow I upgrade the nodes under you.
We’re using a second-tier cloud provider’s managed Kubernetes offering, and in investigating our level of exposure to this, I just learned that there is variance within a node pool on whether AVX-512 is available.
This - I remember taking a suggestion to cat cpuinfo as part of container start in AWS and you do get a bit of variety as you'd expect (five year old processors last time I checked as well).
> Or, do running machines often have their CPU changed from under them without much notice?
I dunno about other cloud providers, but I know AWS can move your EC2 VM from one system to another transparently. There is a server ID you can get from the metadata, but unless you're checking it frequently, you can be moved without ever being aware.
Question is if they expose it to the guest. Many (most?) cloud platforms will make the guest see the lowest common denominator, specifically to avoid angry customers when their working setup suddenly breaks.
In the case of transparent migration, I think it's basically a must. No JIT (or even libc probably) is going to support CPU features changing at runtime.
You’ll need to restart the guest.
Not true.
AWS migrates live instances to new CPUs without needing to stop or reboot the guest.
When a migration is needed, the hypervisor begins copying blocks of memory to the new system, keeping track of what blocks are written inside the guest during the migration. Once enough has been copied, it hibernates the guest, copies the remaining memory, then wakes it in the new system. On a system that isn't writing to large swaths of memory, it can take only a few milliseconds. To the guest, it might appear that the CPU froze for a tiny bit of time, which could easily just look like a neighbor got noisy.
Yes, but that's irrelevant here because the CPUID report won't change across live migrations.
Consider what would happen if you were live migrated from a machine with AVX512 to one without. Your app would suddenly start crashing with SIGILL for no apparent reason. So, live migrations always preserve the apparent CPU feature set. If you started on a machine without AVX512 then until the VM is rebooted you will remain on such a (virtual) machine.
Not for a routine migration, but they typically keep it inside the same processor family for this reason.
Calif is an OpenAI funded shop..
Oracle owns Java and Oracle is "OpenAI funded" in the sense that Oracle's data center buildouts are being done using OpenAI as a consumer.
The circular financing continues!
But seriously, the funding here doesn't matter any more than Project Zero's funding comes from Google. Big companies are trying to improve security for the common software substrates of our industries / governments.
and?
This looks like Claudese - may be kind to write such things yourself if you intend for humans to read them. (For example, “ HotSpot VM: any OpenJDK build, Oracle JDK, or GraalVM JDK. Only HotSpot generates the stub. OpenJ9 and GCJ are OK. Azul Prime (Zing), which replaces C2 with its own JIT, and any VM name not recognized as HotSpot are [?], never [!].” — I tried parsing at least five times before realizing you’re asking me to decipher LLM talk)
I understood it on first read, anyone that is comfortable with Java ecosystem easily understands the differences between those JVM implementations.
Here are three more, PTC, Aicas, and ART (even if it runs DEX instead, and only the core language is supported).
I still don't understand what's meant with Azul. Is it affected or not? What is it never?
Azul Core definitely is - it uses upstream HotSpot.
Azul Platform Prime (formerly Zing) may or may not be depending on whether they touched the base64 intrinsic. Since it is closed-source there is no way to verify via code, which is how our research team investigates ecosystem events like this.
What’s that old Chinese proverb? “May you live in interesting times”? It feels like we’re living in interesting times. How long will it take for a bad actor to seriously compromise critical infrastructure? My bet is within six months.
The upside is that it’ll force legacy institutions and organizations with sub-par security to get good at security and modernize their legacy stacks. That, or get pwned in short order.
I always thought that was a curse. One of two-parter:
1. May you live in interesting times
2. May you find what you're looking for
I also like "This too shall end", less curse though.
https://en.wikipedia.org/wiki/This_too_shall_pass
We've already seen an attack on transfusion blood storage.
I wouldn't minimize the impact of the ones on supermaket freezers either. It was technically dumb and somewhat laughable, but we're talking food. The affected chains had stores in very rural areas with elder people living in remote places, these supermakets would be the only purveyor of long conservation food.
I'd argue we're already there, albeit at small scale yet.
The majority of food in a supermarket doesn't require refrigeration.
Preportioned meals that are hot and ready at the push of a button is a godsend for people with disabilities and/or entering older age. Someone buying a few dozen of those can be set for weeks, longer if they also continue cooking simple dishes from time to time when they feel good. This helps tremendously to keep them independent and self sufficient.
Someone coming once every month to the supermaket to restock, only to be told there's only fresh and canned food available must feel devastated IMHO.
fun fact: refrigerated cold storage for potatoes is a thing. Not just for meats, fruits and vegetables.
Just because vegetables are sitting out there in the open doesn't mean it shouldn't be stored in cool places before it reaches the supermarket. And last time I checked people valued eating safe meat and being treated with pristine medicine.
Yeah, the processed garbage doesn't. Enough to survive a short while.
Critical infrastructure is already compromised, they just don’t have a need to announce themselves yet.
That's what they want you to expect. Either way, the worst possible people on our side will take advantage of it, and possibly cause it for that opportunity.
Who is "they"?
TPTB
> My bet is within six months
My bet is it already happened two months ago and there's a whole secret scrum we only vaguely know about happening right now.
Instability is often correlated to urgently performed change, and we've seen a lot of instability around the world lately.
A lot of organizations we sitting on internal bugs for years because they thought they were impossible to exploit, and now their red team can break them in hours.
Most businesses are stuck in a trap now. They know the software is exploitable, but they are organizationally slow in testing and rollout. They have to start moving fast with security and IT organizations that are cut to the bone, yet at the same time contain to much box checking deadweight.
3/4 of the Fortune 500 will conclude they should hire expensive consultants to create more checkboxes.
Instability can also be attributed to AI slop code. That's the simplest explanation.
I don't think AI slop code is the proximal cause for most of this. It is, however, the most common meme for blame.
My suspicion is (1) company execs are being told to expect company extinction if they don't force faster velocity and (2) we are increasingly building more and more complex systems, so neither AI nor humans can find all of the issues before they cause outages.
I think this bet is optimistically assuming a far more competent world than the one we actually have. Have you seen the idiot clowns actually in power? The agency that might've been tasked with this hypothetical secret scrum, CISA, has been gutted and left to rot because they thought it was an enemy plot to censor them on social media or whatever. There's no secret room where the smart people are fixing things.
There are many secret rooms where many smart people are fixing many things. It's more telling about yourself that you don't know of any.
There is no secret room where smart people people aligned with the interests of the people of the United States are fixing things. There may not be any smart people left in the Federal government who aren't actively engaged in looting it.
No such agency
There are many, being bitter and uninformed doesn't make you right.
Tell us about one of them, then.
How about Joe Gebbia's team at the National Design Studio?
You can't be serious?
Do you have any actual critiques? I'm going to need some substantial proof you've built anything better
He could tell you, but then he'd have to... lie.
In the face of massive hacks happening this week and last - i'd give 4 days.
ps: wouldn't even be surprised if some of the banks hacks were related to this (branch) of exploit, given how much banks seem to rely on dated Java
> ... get good at security and modernize their legacy stacks. That, or get pwned in short order.
That's what finally got Microsoft to get their act together with Windows.
> How long will it take for a bad actor to seriously compromise critical infrastructure?
That happened when Colonial Pipeline was hacked in 2017. It shut down a large percentage of gas station gas purchases on the US East Coast.
There were lots of severe vulns since then: shellshock, log4j, the PHP vuln from a few weeks ago.
That’s the thing - it’s not a proverb, it’s a curse my guy
That’s the thing, it’s not real, it’s made up my dude https://en.wikipedia.org/wiki/May_you_live_in_interesting_ti...
>The best hacker today is neither AI nor human. It is the centaur hacker, part human, part AI.
I think only really smart people are going to be left in Security and Software. I can barely fathom what this group is doing with AI right now (ignoring that their model probably isn't nerfed and mine would be) and I don't think any of this is trainable for the average developer. This is starting to feel like some of the scientific fields where careers start when you get a MS/PhD. Or like the average developer is on the same level of not being able to convert a Word document to PDF.
> I think only really smart people are going to be left in Security and Software.
I'm looking forward to eventually getting there. At the moment, there's so much low hanging fruit that even someone without a clue like me can just point a fuzzer at some random Linux kernel code and still discover problems.
(Most of the problems I found from that exercise are patched by now, if you use a recent enough kernel.)
I used Kimi to drive the fuzzer. The model didn't have to do anything smart, just do the tedious work of writing the glue code to make the fuzzing work. AFL++ did the 'smart' parts, and I had the idea to kick it off and oversaw the patches.
I don't know, it feels like just another skill to me. You learn your debugger, you learn the shell, you learn web development... you learn AI.
We'll see how long the centaur era lasts though. Hopefully a very long time
For comparison for chess, it didn't last that long.
Chess is very constrained, and doesn't require all sorts of knowledge about the broader context outside the game.
Once models are more hooked up to sources of information, their capabilities will improve. Currently, humans are a bottleneck for providing the information relative to specific problems.
"Take the human out of the loop" - I think there was a documentary about that, with Matthew Broderick.
A strange game! The only winning move is not to play
Only if you're in Zugzwang
Truth be told; as far as I can tell, the output the human gets from the AI can vary vastly in quality, depending on guardrails on the AI side. Guardrails that are internal (and opaque) to the user, combined with directives the user sets up, often manually.
(for example, I have mine keep ready reference to all of our CMMC controls and best practices)- and not only will my sessions cite referenced material as it responds, but it will do so when it writes code, as well - and it does a pretty decent job of keeping me honest. The one bit I'm struggling with is limiting complexity when it designs a solution to a problem. For larger projects, this can snowball quickly - and I haven't found an effective way to prevent this yet.
Skills can be shared, but it's a bit of a steep climb to getting an entire organization to pick the same skill (to get consistent behavior across the whole org)- sometimes an individual skill as it's written, will conflict with some other personal standard or quirk of how they work, so it's difficult to share them. This really seems, to me, to be very similar to how the software world used to work (as far as interoperability goes), earlier in history when there weren't many open standards, (and NO open source code) - and every competing OS vendor was trying to destroy their competitors so they could become a monopoly.
But yes, there's quite a bit of effort now that goes into maintaining this personal harness, and I'm sure the even smarter folks will come along and figure out workable ways of standardizing and sharing those kinds of harnesses.
I've been in this industry for 30 years, and the way I work has always changed with the times and new tools. It changed a LOT when Dev Ops became a thing. IaC, and containers. This feels kind of like that change, but maybe an order of magnitude. Almost feels like going from assembler to learning something like python; in terms of how much abstraction is being added.
They aren’t wrong that we should be deleting more support and removing more features. The idea that the linux kernel by default builds support for all sorts of ancient systems nobody has ever heard of is absurd.
The kernel already dynamically loads kernel modules based on hardware it's running on so most of the junk isn't loaded. But for the stuff you can't dynamically load, it's a tradeoff between stripping the kernel down and supporting the most hardware.
Maybe distros could provide two builds, one for modern hardware only and one for maximum compatibility.
That wouldn't work, because one day you dist-upgrade and your machine doesn't boot
Back in the day, I used to build windows XP as stripped down as possible. Maybe something like that is possible? Distro installer determines what hardware you're running, then only includes what is absolutely necessary?
More annoying the first time you plug in that USB DAC or whatnot, but would reduce the attack surface heavily.
Who am I kidding... someone is going to comment that Dolphin Linux has supported this since 2013.
You have to compile the kernel to change the included features. You can certainly do that and some people have been running stripped back kernels for a long time but you can imagine why mainstream distros don’t make you do that.
Before recently kernel security was relatively acceptable.
Quite a lot of pushback for trying to remove things.
See https://news.ycombinator.com/item?id=50371408
I think there are plenty of distros that do that in fact! I think most regular linux distros try to be as helpful as possible
You can use the kernel config to remove these things.
Its time to come home to Gentoo
I used to use gentoo but menuconfig with a billion options really isn’t that fun
You can also mitigate Java4Shell by starting OpenJDK with either:
-XX:-UseBASE64Intrinsics to disable hardware-accelerated Base64 encoding and decoding, or
-XX:UseAVX=2 to disable AVX-512. Apply this flag only on x86-64 hosts. OpenJDK on ARM doesn't recognize it and will fail to start.
Might be worth examining whether AVX-512 is even supported on the machine before freaking out, too.
if you run it in a vm - certain CPU profiles will hide features like AVX-512.
I know I purposely do it for smolvm to avoid exposure
This attack surface (manually optimized assembly code in the middle of software stacks) looks AWESOME
Java has lots of it, even crc32 has a similar loop. Few years back I had to manually inspect the crc32 loop (due to gzip warnings) when it was used on unalign arrays. It was ok.
String operations also contain instrinsics.
The JIT can't afford the runtime to do these kinds of fixed function optimizations, and isn't tuned to perform them well.
Even your C standard library has assembly language implementations of things like strlen because your AOT C compiler can't optimise these functions optimally
Eclipse Temurin has not released a patch yet....
(Re-reading my comment, sounds like I'm throwing shade. I was just trying to state a fact. In fact most of the third party distros have been caught off guard).
yeah it looks like responsible disclosure is a thing of the past, I don't see it fixed anywhere yet 6 hours later.
Well, at least we don't have any java server internet-facing here...
It was fixed in Azul and Corretto this morning. Eclipse is notorious for slow rolling patches. It’s sad that they convinced a large number of people to run Temurin.
Not even fuzzing these things are criminal in 2026.
Is it difficult to just go through Java, nodejs etc. Base64/hex/.. implementations and fuzz them all?
Does anyone know why this would be missed?
Maybe the fuzzer wasn't running on the CPUs that were affected
Then you have coverage metrics showing that.
I see no security advisory from Elasticsearch yet,we operate multiple ES clusters and I am not exactly sure what the mitigation is here. Changing our JVM options and restarting the nodes?
Upgrade your JVM version.
"Since bzhiq(-1, output_len) doesn’t change any bits if output_len >= 64, this results in output_mask == -1u64."
Should say "output_len & 0xFF >= 64" instead. Bzhi only looks at the bottom byte.
This only fires on x86 servers whose CPUs have AVX-512 VBMI. ARM boxes like Graviton and older Xeons never run the buggy code.
Could this be what triggered the recent outages?
https://x.com/InfiShark/status/2122786295105913332
Not everywhere... Requires an x86-64 processir with AVX512.
Pretty much any Intel server and most AMD servers are going to support AVX512 and conversely most VMs running in the cloud will have access to it.
Speak for yourself. All my cloud VMs are ARM, with one exception, one s390x running Linux.
This looks like it requires G1? ZGC, ParallelGC or Serial are not affected? Smaller workloads running on singe CPU containers would default to Serial GC.
Smaller workloads default to G1 as of Java 27.
https://openjdk.org/jeps/523
G1 is the default is the most used one.
Serious? Then it's 95% less serious than the name Java2shell make it out to be.
FWIW the default is G1.
The OP said "Smaller workloads running on singe CPU containers would default to Serial GC."
Are you sure that's default? I am not talking about Java 27, practically nobody is running that yet
Why pair Spock with All Your Base? It was CATS that said the line.
Attempt at AI generated meme/title image?
Does the JIT compiler not do a good enough job at optimizing code that can take advantage of SIMD to just use java code for base64?
Automatic loop vectorization is unreliable since even small innocent-looking code changes can thwart loop shape detection and introduce optimization barriers. Apart from that the JIT is under a tight runtime budget, unlike an AOT compiler.
The Vector API was introduced to communicate intent more clearly to the JVM and to make optimizations more reliable. Unfortunately it is currently still incubating to make adapting it to Project Valhalla possible.
It seems like ARM64 AArch64 instances are not affected.
Why would anyone write the scalar part of a SIMD'd function in assembly code!?
Extra speed I assume.
I saw some assembly in code at work for various hot path stuff but it was all written before the last version control move. The 64-bit stuff was just done in plain C though which was probably good enough by the time it needed to updated to build as 64-bit.
pure love for the game
The risk owners, security teams, compliance teams - are all holding tight inside a tent built for the usual weather, but facing an un-announced storm now.
Their first priority is not stabilizing the tech tent. They are busy planning the risk distribution, risk outsourcing, legal prep, customer messaging, ToS/SLA reviews, contracts etc. They are reinforcing the good-old fort walls around the tech tent.
The string of A's reminds me of the ssh exploit recently.
That doesn't surprise me. Long strings of "A"s are the traditional way of finding/triggering buffer overflows as they're easy to spot in the memory dumps.
If I owned an entire language platform with a JIT, it would not contain assembly in its standard library, it would simply be improved until it generated something at least that fast from high-level source code on that target CPU.
This is something I really like about LLVM. Their libc isn't spilling over with hand-written assembly. It's written in straightforward C++ under the belief that the compiler does, or will do, a good job.
LLVM is an AOT compiler. The JVM has a runtime budget
> If I owned an entire language platform with a JIT, it would not contain assembly in its standard library, it would simply be improved until it generated something at least that fast from high-level source code on that target CPU.
Interestingly I remember a guy who worked on the JVM giving a talk and saying (back then at least) that they were working to move as much of the JVM to plain Java as they could.
"vibe-uncoding" -- have actually been doing quite a bit of that in my older projects.
Encode binary data in text because some dumb thing can't process binary. Text back to binary slow, so better make use of ridiculously wide vector width thing to speed up dumb decoding step we should have never become reliant on in hot paths. Derp, memory safety bug. Derp, die because performance "optimization".
Our incredibly high tower of Jenga blocks is falling down under its own weight.
So many promotions because of optimizing cosmically unnecessary work, though.
Derp, derp, this is humans making computers.
As a person who does these kinds of optimizations, it hits in the feels.
It's amazing, even in 2026, people still use an utterly unproductive piece of shit language called Java
Hand-rolled assembly for base64 decoder seems like a great place to plant a backdoor. Wonder who wrote this.
where is the dancing girl in the exploit videos???
Yes, this is pretty much required now after the last.
I’m probably boring, but IMHO a plain video is easier to digest (:
Uuuu, bug and exploits part is pretty standard so becomes boring wall of text that is instantly obsolete after patches, I hope ;) And no animation ?? How hard it is to splash there some animation ?? ;)
But there is part of article that somehow nobody mentions ! "A call for vibe-uncoding" and that is a future and sane sanity. How many unused Linux modules laying on disk ? And more commercial systems are usually worse - installer just unpacks and declares warranty void if something is modified or removed - law enforced stupidity.
You have [open] code ? You can clean it by doing very coarse work of not calling unused code or hardcoding return error on calling unused parts.
Like FTP code. Open source IT declared it dead years ago but camera and game manufacturers and probably more industries didn't get a memo. Still we do not implemented ftp replacement and ssh is single point of failure.
> "It is the centaur hacker, part human, part AI."
AI is... a horse?
That Vibe Uncoding section didn't go where I thought it was going. Instead of suggesting people stop vibe coding and potentially introducing more/new vulns, they suggest vibing the removal of features and hoping the model or the tests it generated or whatever catch the edge cases. It really does feel like we're circling the drain here, folks.
Also, (S)FTP is dead? Since when?
> Also, (S)FTP is dead? Since when?
Since it's overcomplicated ?
me using java for so long I have my own util.Base64 class used everywhere in pure java.
now panicking in case some LLM imported this without me noticing.
edit: it did. :(
What does your class do that you find lacking in the builtin one?
Genuinely curious, not meant to be a snarky or aggressive question.
built for java 6, built in one didnt come to java 8, never noticed.
Now it has lots of other little functions, like inline AES256 encryption/decryption and different functions names (like encode lines for b64 split over lines).
I guess he meant he had his own before java had it or something and kept using it...
This is the code I use since 20 years back:
http://move.rupy.se/file/base64.txt
If this part becomes the bottleneck; so I need to write a GPU accelerated version I'll eat my own hat.
Your decoder implementation accepts all sorts of non-Base64 strings and decodes them to whatever. Among other things, it also accepts MIME Base64 (with line breaks and whitespace) and base64url strings, but decodes them to the wrong values. This is a classic example of insufficient input validation that can lead to parser mismatch vulnerabilities or worse.
Vectorized base64 can reach speeds in the proximity of memory copy.
I've easily reached a point where it was worth it to go AVX route in my "for funsies" game that I'm making.
Just checked, the scalar version reaches around 1-2GB/s when decoding, optimized it gets to 4GB/s, AVX-512 VBMI version reaches 40-55GB/s.
Interesting, what game are you making?
Large scale tower/base defense with time rewind mechanics and user-generated structure templates.
So where do you need 40GB/s of base64?
Calif is the new Gobbles. IYKYK.
Seems like security through obscurity might be a thing after all.
Leaving aside the vulnerability, this is a terrible blog post. Even the title is wrong (RCE anywhere, no only on x86). The smug tone and the LLMese makes me want nothing to do with this mob.
.
This should be the main thread as this is the primary source
Fair!
> To speed up Base64 decoding…
But. Just. Why. Maybe just KISS.
So who leaked it?
We set UseAVX=2 on all our jdk hosts last year for unrelated thermal issues, turns out that saved us here
Vibe uncoding should be the way forward to prevent these bugs. LLMs should strip and bake our apps with only those required features and libraries to reduce the blast radius instead of affecting everyone. LLMs are not only good with vibe coding but also aka. vibe uncoding.
Makes me wonder whether we would have the same vulnerability if an LLM had written this decoder. It's tricky to write safe hardware accelerated code.
The fact that mainstream modules have such trivial bugs in logic that can be fully covered by testing is staggering. It is about time software developers will have proper test coverage for their code, at least for basic "unit" modules. Maybe we can even name a testing philosophy to match it.
Not sure this is as trivial as it seems. The bug triggers on a specific instruction set, on a precise input length, with a specific character at the end, and when on the hot path, and requires low level memory access checking to be detected.
For the finished jre yes. But one would hope these kind of checks are also run on a hand rolled decoder function. Fuzzing that one and finding logic bugs is a lot easier
Finding these kind of bugs would have required fuzzing and some kind of bound checking canaries. Not sure all bound checkers work on the hand-optimized assembly.
Or as it turns out an LLM! Not clear whether their agent spawned any classic tools...
> bound checking canaries
I used memory protection for that. mmap a page, align the string start/end to the page boundaries. Catches both bad reads and writes.
please stop using native code that hasn't been proven
For anyone who cares, I have a solution "for now":
https://github.com/Qbix/proxy/blob/main/java4shell.md
When PHP2shell was announced, before the patches were available, I wrote a proxy to sanitize input. You should have an input-sanitizing proxy in front of your app servers anyway instead of waiting for patches for as-yet-undiscovered CVEs.
PHP < 8 doesn't have patches coming. It's either the proxy or be pwned. Some our honeypot machines running PHP 5 got infiltrated with full chained kernel-level exploits. The ones with the proxy didn't. Which one do you want to be?
https://github.com/Qbix/proxy -- now updated to help mitigate java4shell
Having said that, my proxy approach wouldn't fully protect ALL Java apps in this case, because:
A Java program that opens a TLS connection to a malicious server can be compromised, even if it exposes no service of its own.
The problem is that you can't intercept and "heal" TLS connections with a proxy, unless you also spoof the TLS certificates. However, since most Java apps don't pin certs, a workaround is using /etc/hosts and a CA cert added in cacerts. Then the proxy approach works even on outbound traffic. And you don't have to wait for the patches.
so what you'd do is: The usual disclaimers... lock down the executable, removing any ability to read or write files, only pass traffic through like a proxy. Investigate the repo yourself, with your own Claude or ChatGPT etc. The repo even has links to pre-fill the prompts to do just that.I'm putting this out under MIT license to help people, but under this license it disclaims all warranties, including implied warranty for merchantibility etc.
> PHP < 8 doesn't have patches coming.
Anyone on a Debian derivative can use Ondřej Surý's packages which have the patch back ported to at least 7.3: https://deb.sury.org/
Also, I'm not sure I'd really trust what looks like LLM generated overly verbose code as a security layer.
Just as with CVE-2026-98432, Debian is immediately patched at embargo drop, Ubuntu still isn't patched.
Why do we even pay for Ubuntu?
Are you sure? I can’t see any Debian advisory for this vuln.
https://www.debian.org/security/
Uhh, Debian is NOT patched as of this writing.
Fortunately I run name-brand Oracle(R) Java(tm), which did publish updated packages.