lucasluitjes 4 hours ago

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.

  • jonstewart 3 hours ago

    > 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.

    • AdrenalinMd 3 hours 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.

      • testtestmetest 17 minutes ago

        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.

  • luka2233 3 hours ago

    still pretty scary for multi-tenant infra

    • hinkley 1 hour ago

      Yes but don’t those usually have nginx or friends in front of them? Which apparently frustrates the block size of data being transmitted.

  • afavour 3 hours ago

    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!

    • hinkley 1 hour ago

      I’m sure they’re all working late on a Tuesday doing just that. /s

  • lowbloodsugar 3 hours ago

    >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.

    • afavour 2 hours ago

      > The current attack is sensitive to network conditions, like RTT and jitter.

      LLMs aren’t magic, they can’t alter physics.

      • makeitdouble 2 hours ago

        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.

  • Uptrenda 2 hours ago

    Are any of these new meme exploits actually exploitable? Do you guys remember when we had human exploits that actually worked...

    • vbezhenar 51 minutes ago

      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.

  • tru3_power 1 hour ago

    Decoder route pretty low bar given basic auth right? I think the higher bar is the hardware requirements for exploitation

ievans 5 hours ago

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:

  * 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.
  • cjbprime 4 hours ago

    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.

    • Banditoz 4 hours ago

      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?

      • stackskipton 4 hours ago

        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.

        • xmodem 3 hours ago

          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.

      • Sohcahtoa82 3 hours ago

        > 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.

        • PhilipRoman 2 hours ago

          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.

        • johnbellone 2 hours ago

          You’ll need to restart the guest.

  • bonsai_spool 4 hours ago

    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)

    • Yokolos 4 hours ago

      I still don't understand what's meant with Azul. Is it affected or not? What is it never?

      • kaboberg 3 hours ago

        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.

  • bikezen 4 hours ago

    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.

  • testtestmetest 2 hours ago

    Calif is an OpenAI funded shop..

    • thephyber 2 hours ago

      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.

leca 5 hours ago

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.

  • ctoth 4 hours ago

    > 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.

    • adrianpike 4 hours ago

      Instability is often correlated to urgently performed change, and we've seen a lot of instability around the world lately.

      • pixl97 4 hours ago

        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.

        • jeremyjh 3 hours ago

          3/4 of the Fortune 500 will conclude they should hire expensive consultants to create more checkboxes.

      • ChuckSneed 4 hours ago

        Instability can also be attributed to AI slop code. That's the simplest explanation.

        • thephyber 1 hour ago

          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.

    • Analemma_ 4 hours ago

      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.

      • scottyah 3 hours ago

        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.

        • jeremyjh 3 hours ago

          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.

        • salamandars 3 hours ago

          Tell us about one of them, then.

          • antonvs 1 hour ago

            He could tell you, but then he'd have to... lie.

  • makeitdouble 2 hours ago

    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.

  • testtestmetest 2 hours ago

    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.

  • loloquwowndueo 2 hours ago

    That’s the thing - it’s not a proverb, it’s a curse my guy

  • thephyber 1 hour ago

    > 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.

  • flockonus 1 hour ago

    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

AgentME 5 hours ago

Unconfirmed, but people on Twitter suggest this vulnerability has to do with the AVX512 implementation of Base64 decoding, and so this vulnerability can be worked around by running Java with the -XX:UseAVX=2 flag. (https://x.com/sean_a_cassidy/status/2122791344573976817)

  • elric 5 hours ago

    There are presumably more bugs lurking in the hand crafted assembly intrinsics in the JVM. The many eyeballs and shallow bugs thing is only true when the eyeballs actually understand the code.

    • hinkley 1 hour ago

      Tony Hoare we miss you already.

      There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.

  • mey 5 hours ago

    If a system doesn't support AVX512, is it an issue?

    • cpach 5 hours ago

      AFAICT: No.

      Edit: If I understood the article correctly, the machine needs to have all the four of these flags in order to be exploitable: avx512f, avx512bw, avx512vbmi, bmi2

  • _msw_ 5 hours ago

    This isn't the best flag to mitigate, since it will fail on systems that don't support AVX2.

    I recommend -XX:-UseBASE64Intrinsics instead.

    • marginalia_nu 4 hours ago

      What system supports AVX512 but not AVX2?

      • philipkglass 4 hours ago

        I assume that the advice is referring to situations where you might have a mixture of ARM and AMD64 hosts, like on AWS, so you need to be careful about global flag updates that might not work across all instances.

        • marginalia_nu 4 hours ago

          Surely you'd still need to know what you're deploying on. Can't plop an x86_64 JVM on an ARM host or vice versa, at least if you want them to run.

          • philipkglass 4 hours ago

            It's possible if you have enough abstraction layers. At my company there are a few systems with Java runtime flags specified in the service source code, but deployment configuration in a separate infrastructure-as-code repository. Switching between CPU architectures is normally transparent if you don't rely on native code libraries.

            • hinkley 1 hour ago

              Which is a common enough thing if you're picking Java or an interpreted language.

          • articulatepang 4 hours ago

            I think the idea is that you’re already running the appropriate JVM on each architecture, but want to push a global command line flag update to every JVM you run, regardless of architecture, that prevents this exploit.

            Until, presumably, there’s fixes and you can test, update etc.

            • marginalia_nu 4 hours ago

              Why'd you patch the commandline of JVMs that aren't vulnerable though?

              • xboxnolifes 3 hours ago

                So you don't need to check every host individually, you just patch all of them for now.

                • eru 3 hours ago

                  Especially since that check might have further problems. The simpler you can make your code (and still solve the problem) the better.

                  • marginalia_nu 2 hours ago

                    I don't know if I'd count paving over the reality of what you're running with an abstraction layer as something simpler. If anything it demonstrably makes addressing issues like these harder.

                    • articulatepang 2 hours ago

                      I think you're right, but many people are running systems at large scale, with lots of hosts and all kinds of abstraction layers and stuff. Now this exploit shows up. What are they to do? It's just a practical thing they can do right now.

                      First we must stop the bleeding. After that, yes, it's worth figuring out if they should change how things are set up.

                      I've been in situations like this before. Sometimes the complications and abstractions were my fault, sometimes I inherited them. Either way, as responsible owners of the overall system or business, we've gotta be able to respond fast to issues.

          • hinkley 1 hour ago

            That’s what docker base images are for so don’t count on these two concerns being colocated.

            If it’s Java, Node, etc the binary dependencies are platform specific and 100% if your code is not unless you try very hard.

  • jeremyjh 3 hours ago

    Oddly enough they saw fit to mention this fact in TFA.

fsnovask 3 hours ago

>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.

  • colonCapitalDee 3 hours ago

    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

    • eru 3 hours ago

      For comparison for chess, it didn't last that long.

  • eru 3 hours ago

    > 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.

drum55 4 hours ago

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.

  • eru 3 hours ago

    You can use the kernel config to remove these things.

  • Gigachad 2 hours ago

    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.

  • AuthAuth 2 hours ago

    Its time to come home to Gentoo

    • drum55 14 minutes ago

      I used to use gentoo but menuconfig with a billion options really isn’t that fun

  • exabrial 19 minutes ago

    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

yabones 5 hours ago

Before you keep your security team up all night, it looks like proxies save the day here. Might not be a complete fix, obviously a real patch should be applied as soon as possible.

> Request streaming. Some current grooming profiles need partial request bodies to reach the application. A proxy that waits for the complete body removes their release timing. nginx buffers request bodies by default.

https://calif.io/java4shell/#limitations

  • hinkley 55 minutes ago

    The biggest thing I have worked on recently had TWO proxies, but the second was due to process per CPU spiciness and a JVM wouldn't benefit in the least from that. Which still leaves Conway's Law, segregating rules and policies between two teams who manage things on their own basis. Always annoying to punch new headers through on such systems though.

mzs 5 hours ago

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.

  • marginalia_nu 5 hours ago

    Might be worth examining whether AVX-512 is even supported on the machine before freaking out, too.

ozgrakkurt 1 hour ago

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?

  • knapsack-dev 1 hour ago

    Maybe the fuzzer wasn't running on the CPUs that were affected

    • jooops1 1 hour ago

      Then you have coverage metrics showing that.

benjiweber 5 hours ago
hypfer 5 hours ago

Given that this is AVX512-only...how many enterprises are out there that run vulnerable java applications on non-intel servers?

Genuine question. Everything I see is Intel all the time. I know that people at home switched to AMD, but they don't run enterprise java.

I also have been told that apparently EPYC was hyped for a while and some hosters give you that. But do corporations run the java applications there?

The name makes it sound like Log4J or the PHP thing, but from what I can tell right now, it kinda isn't all that relevant?

  • p_l 5 hours ago

    Lots of AMD servers out there, both on-prem and in the cloud, though AVX-512 capable ones are relatively recent.

  • CodesInChaos 4 hours ago

    We run many of our apps on AWS's graviton (ARM) to reduce costs.

    • t0mas88 4 hours ago

      Same here, and ARM64 is not affected by this CVE.

  • tptacek 4 hours ago

    The Log4j comparison is always a little frustrating, because it sets the bar somewhere in the neighborhood of "apocalyptic". If you're someone who believes our response to serious vulnerabilities is inadequate, you can see how Log4Shell gives a lot of cover to companies.

    It is wild to find a generalizable (if platform-specific) memory corruption vulnerability in Java core Base64 handling; the tornado sirens should clearly be going off. But yes, it's not as bad as Log4Shell.

  • aleksejs 4 hours ago

    (Some) Intel server CPUs support AVX512.

  • llama052 2 hours ago

    AMD EPYC processors have incredible value for their cost in the datacenter these days.

Noe2097 4 hours ago

This attack surface (manually optimized assembly code in the middle of software stacks) looks AWESOME

exabrial 1 hour ago

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).

kaliszad 5 hours ago

Seems like -XX:-UseBASE64Intrinsics is the better workaround for now.

rbanffy 5 hours ago

Not everywhere... Requires an x86-64 processir with AVX512.

  • formerly_proven 4 hours ago

    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.

    • rbanffy 4 hours ago

      Speak for yourself. All my cloud VMs are ARM, with one exception, one s390x running Linux.

plmpsu 6 hours ago

Does anyone know what the attack vector of this is? I'm trying to figure out if our usage is affected by this CVE.

  • yabones 5 hours ago

    Some unverified sources have said it's in the Base64 decoder, but strangely only effecting AMD64 machines, so anything on ARM/graviton allegedly isn't impacted. Some sort of bug in some hyper-optimized code I reckon. That might mean any place that parses cookies, headers, urls, JWTs, SAML payloads, certificates, etc, might be exposed. Yikes.

    But the facts aren't really out yet, we'll learn more in coming hours and days...

  • fweimer 4 hours ago

    GLM 5.3 produced this after a bit of prodding. I started out with the C++ sources with a bug marker instead of the fix: https://github.com/openjdk/jdk/commit/5177a70b385c16f26ede19...

    There are only a bunch of commits that came in the latest merge of security fixes, and this one changed VBMI-related intrinsics code, so it's a good match for what was publicly disclosed at the time.

        import java.util.Arrays;
        import java.util.Base64;
        
        public class Canary {
            // static fields defeat escape analysis so dst/canary really live in the heap
            static byte[] dst;
            static byte[] canary;
        
            public static void main(String[] args) {
                // (input, expected decodedOutLength) pairs:
                //   65 = "A"*64 + "="    -> fragment "="   (length 1, trailing pad)
                //   66 = "A"*64 + "Q="   -> fragment "Q="  (length 2, trailing pad)
                //   67 = "A"*64 + "QQ="  -> fragment "QQ=" (length 3, trailing pad)
                //   68 = "A"*64 + "QQ==" -> fragment 4 bytes, well-formed control case
                int[][] cases = { { 65, 50 }, { 66, 50 }, { 67, 50 }, { 68, 49 } };
                byte[][] srcs = new byte[cases.length][];
                for (int c = 0; c < cases.length; c++) {
                    int len = cases[c][0];
                    byte[] src = new byte[len];
                    Arrays.fill(src, (byte) 'A');
                    if (len == 65) { src[64] = '='; }
                    if (len == 66) { src[64] = 'Q'; src[65] = '='; }
                    if (len == 67) { src[64] = 'Q'; src[65] = 'Q'; src[66] = '='; }
                    if (len == 68) { src[64] = 'Q'; src[65] = 'Q'; src[66] = '=';
                        src[67] = '='; }
                    srcs[c] = src;
                }
        
                int iters = 300_000;
                for (int iter = 0; iter < iters; iter++) {
                    for (int c = 0; c < cases.length; c++) {
                        byte[] src = srcs[c];
                        int dstLen = cases[c][1];
                        // fresh dst, then canary IMMEDIATELY after it in the TLAB
                        dst = new byte[dstLen];
                        canary = new byte[64];
                        Arrays.fill(canary, (byte) 0x41);
                        int before = canary.length;
                        try {
                            Base64.getDecoder().decode(src, dst);
                        } catch (IllegalArgumentException e) {
                            // expected for the malformed tails
                        }
                        if (canary.length != before || changed(canary)) {
                            System.out.println(
                                "*** ITERATION " + iter + ", input length " + src.length
                                + ": DESTINATION BUFFER OVERRUN DETECTED");
                            System.out.println(
                                "canary.length = " + canary.length + " (expected 64)");
                            System.out.println(
                                "canary bytes  = " + toHex(canary, 48));
                            return;
                        }
                    }
                    if (iter % 50_000 == 0)
                        System.out.println("iter " + iter + ": clean so far");
                }
                System.out.println(
                    "no corruption detected in " + iters + " iterations");
            }
        
            static boolean changed(byte[] b) {
                for (byte x : b) if (x != 0x41) return true;
                return false;
            }
        
            static String toHex(byte[] b, int n) {
                StringBuilder sb = new StringBuilder();
                for (int i = 0; i < 64; i++)
                    sb.append(String.format("%02x ", b[i]));
                return sb.toString();
            }
        }
    

    I had to fix toHex() not to use b.length, otherwise it wouldn't print anything due to the negative array length field.

        *** ITERATION 4076, input length 67: DESTINATION BUFFER OVERRUN DETECTED
        canary.length = -1700370022 (expected 64)
        canary bytes  = 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 69 a6 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 9a 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 
    
    

    GLM had web access for this, and it was able retrieve the OpenJDK fix. I don't know if it found the reproducer in its web searches.

    Turning this into a reliable exploit probably still requires some expertise. It's going to depend on heap layout at the time of the overflow. Targets won't be auto-selecting themselves like they did for Log4Shell.

bitlad 2 hours ago

It seems like ARM64 AArch64 instances are not affected.

EGreg 2 hours ago

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.

  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.

spidermonkey23 4 hours ago

The string of A's reminds me of the ssh exploit recently.

secondcoming 5 hours ago

Why would anyone write the scalar part of a SIMD'd function in assembly code!?

  • magackame 4 hours ago

    pure love for the game

iririririr 5 hours ago

is this why half the banks worldwide are offline on and off since yesterday?

ethagnawl 56 minutes ago

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?

mushufasa 4 hours ago

where is the dancing girl in the exploit videos???

  • 3dedb728-3f77 4 hours ago

    Yes, this is pretty much required now after the last.

    • cpach 4 hours ago

      I’m probably boring, but IMHO a plain video is easier to digest (:

titzer 4 hours ago

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.

bullen 3 hours ago

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.

  • CAP_NET_ADMIN 3 hours ago

    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.

    • CAP_NET_ADMIN 3 hours ago

      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.

      • bullen 2 hours ago

        Interesting, what game are you making?

        • CAP_NET_ADMIN 2 hours ago

          Large scale tower/base defense with time rewind mechanics and user-generated structure templates.

          • bullen 1 hour ago

            So where do you need 40GB/s of base64?

  • layer8 2 hours ago

    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.

DarkmSparks 4 hours ago

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. :(

LastTrain 4 hours ago

Seems like security through obscurity might be a thing after all.

dboreham 5 hours ago

"vibe-uncoding" -- have actually been doing quite a bit of that in my older projects.

cpach 5 hours ago

.

  • ryanschaefer 5 hours ago

    This should be the main thread as this is the primary source

jeffbee 4 hours ago

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.

brightbed 2 hours ago

> To speed up Base64 decoding…

But. Just. Why. Maybe just KISS.

spullara 4 hours ago

please stop using native code that hasn't been proven

9029 4 hours ago

So who leaked it?

doctorpangloss 5 hours ago

is this the root cause of the issue befalling making giant companies right now? i think it's a java DOS for sure, but an RCE?

  • TZubiri 5 hours ago

    Looks unrelated, this is being disclosed now but it was discovered a couple of weeks ago and is just now being made public at the same time.

    Also I haven't looked into it, but I'm willing to be it's some free after-use memory corruption thing that has a CVSS Attack Complexity of high, the 'RCE' is speculative, and private companies push social media headlines to fit the AI cybersecurity narrative.

    Not saying the doom isn't right, but sometimes it's more like a Wednesday than doomsday. Just patch it and move on. Thanks to all involved though in disclosing and patching though.

Sigmazero60 5 hours ago

We set UseAVX=2 on all our jdk hosts last year for unrelated thermal issues, turns out that saved us here

aaronvg 3 hours ago

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.

eyalitki 5 hours ago

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.

  • ajasmin 5 hours ago

    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...

    • stassats 14 minutes ago

      > 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.

  • Noe2097 5 hours ago

    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.

    • spockz 4 hours ago

      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

nikanj 5 hours ago

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?

  • mitchweaver 4 hours ago

    Uhh, Debian is NOT patched as of this writing.

    Fortunately I run name-brand Oracle(R) Java(tm), which did publish updated packages.