back to article Bad things come in threes: Apache reveals another Log4J bug

The Apache Software Foundation (ASF) has revealed a third bug in its Log4 Java-based open-source logging library Log4j. CVE-2021-45105 is a 7.5/10-rated infinite recursion bug that was present in Log4j2 versions 2.0-alpha1 through 2.16.0. The fix is version 2.17.0 of Log4j. That’s the third new version of the tool in the last …

  1. A random security guy

    Isnt all of this due to evaluating input strings?

    Why on earth would you want to EV add laute strings logged?

    1. A random security guy

      Re: Isnt all of this due to evaluating input strings?

      And I should be careful about posting from my iPhone and check my spelling and anything the autocorrect system did to my input.

      1. AndrueC Silver badge
        Joke

        Re: Isnt all of this due to evaluating input strings?

        Yeah, next time it might be bad enough to trigger a Lo4J bug :)

  2. Anonymous Coward
    Anonymous Coward

    Antique versions For The Win

    This is one instance where running an Antique version (1.12.x) of a package seems to be a good thing!

    1. Androgynous Cupboard Silver badge

      No versions For The Win

      Or just use java.util.logging. It needs a bit of work to make it log usefully in multi-threaded environments, then so did Log4J 1.x.

      1. Kevin McMurtrie Silver badge

        Re: No versions For The Win

        There are a lot of options for not using Log4J. Start with SLF4J as an API then pick a good implementation that's not Log4J.

        You can even write your own implementation for java.util.logging or SLF4J when use cases demand it. It's a couple days of work. (Absolutely never blocking was a case for me. Most loggers can block for disk I/O or semaphores.)

    2. Anonymous Coward
      Anonymous Coward

      Re: Antique versions For The Win

      Oh yes, I was told I had to do emergency patching for some legacy software I support but I pointed out it uses a version below 2.0 so was fine thank you very much and once again was better/safer than the modern and vibrant products brought in 'to replace it'.

      I would go on a rant now about how every reason used to justify the 6 year multi-million project to do the replacement has been proven to be complete garbage but this is El Reg, we all know how this goes and why people need these major projects on their CV. If the company want to spend millions more every year on licenses for the multiple new products rather than learning how to use the one which was perfectly capable of doing everything they needed that is not my call.

      Anon because someone out their may be taking a break from tearing out their hair although they may still work out who I am....Meh

      1. Anonymous Coward
        Anonymous Coward

        Re: Antique versions For The Win

        Wait, are you saying you are proudly using unsupported dependencies which are likely to have further unknown vulnerabilities? And you think this is a good thing right? Interesting. Infosec is not amused.

        P.s. agree ASF projects are a bloated mess, which makes them inherently more likely to introduce bugs like this. However, not a sufficient reason to ignore the basics. If you don't trust the package replace it with something simpler you can audit, don't just sit on an old version and pretend everything is fine.

      2. PC Paul

        Re: Antique versions For The Win

        1.x is better/safer? Well it _might_ be, but nobody with a white hat has even been looking since 2015, so there's that...

    3. Anonymous Coward
      Anonymous Coward

      Re: Antique versions For The Win

      Antique? Oracle DB 12 uses log4j 1.1.1.

      Released 20 May 2001, so presumably, no Y2K bug in it, yay!

  3. yetanotheraoc Silver badge

    When theory meets practice

    Sure, sure, _now_ they are looking at the source.

  4. Majack

    Logback

    Come on guys, why use the old version rewritten to look like the new version, when you can just use the new version. I say new, because we are talking about 10 years old now.

  5. Greybearded old scrote

    Engineers' mantra

    This is just one of the many bad things that happen when you forget to simplicate and add lightness.

    Just write to STDOUT ffs.

    Disclosure, at $WORK we use log4perl which is inspired by this shite. I've never met anybody who can create a config for it as opposed to tweaking an existing (huge) file. I frequently find my diagnostic information has been spirited away to dog knows where. /rant

    1. anothercynic Silver badge

      Re: Engineers' mantra

      Well, log4perl is not *that* bad. :-)

      At least that code you *can* still read without questioning your life choices. :D

    2. This post has been deleted by its author

    3. katrinab Silver badge
      Paris Hilton

      Re: Engineers' mantra

      I usually write that sort of stuff to STDERR, but yes, I agree.

  6. Will Godfrey Silver badge
    Unhappy

    An ancient memory

    This layer upon layer problem reminds me of when I was a kid, and dad was redecorating a room in our Victorian semi. There were multiple layers of wallpaper, some of which had also been varnished or painted, so dad decided to strip the lot off. This took the entire family days to achieve, and when completed revealed a strange crack in the plaster. Yours truly started poking around, and a large lump came away. Rather than getting a mouthful of abuse, noticed dad had gone very pale and silent - all the layers of crap had hidden rampant dry rot!

    1. Doctor Syntax Silver badge

      Re: An ancient memory

      But just think of all the insulation they'd provided.

    2. Giles C Silver badge

      Re: An ancient memory

      I had something similar, when I bought my house and stripped the wallpaper in the living room there were 17 layers and the reason the last layer was woodchip wallpaper. It took weeks to get that off before the walls could be repainted.

      Mind you the hall / stairs under more layers of wallpaper were painted dark green. That had to come off as well….

  7. Anonymous Coward
    Anonymous Coward

    Open Source Has Failed

    I never understood why, when people have the choice between highly secure quality products from the likes of Microsoft, Apple, Oracle et al. vs. software that has come from who knows where and contains who knows what, they choose the latter with depressingly predictable results.

    When will people realise that these big corporations are successful because they attract the best people, pay them properly then put literally zero barriers between their typing and total excellence? I know that once my data is in an American Oracle database running on American Windows then that's where my data will stay. That's how trust is built. If you run Windows then you're packing tight and no-one's going to ravage your data. I literally can't remember the last time anyone discovered a flaw in Windows, Oracle, Apple. Therefore it just doesn't happen.

    Open source projects simply cannot work and should not be used for anything more critical than a "hello Texas!" test app. The log4j fiasco, that has probably resulted in the Russians corrupting our youth into communism, socialism and bestiality, has proven this unequivocally and it's typical that under the trembling liver-spotted hands of near-corpse Biden, America has bent over and demanded communism and socialism DPs us, film the results and put the film out there for the world to laugh at us. Search "Liberal America has been literally DPd by communists" to see what I mean. And don't get me started on Linux because if anything caused covid, Linux did.

    We need to take back control, and use only trusted and paid for US-written software and leave log4j to the Chinese. I hope The Register will do its bit to fix all this. As the old Texas saying goes: "Shoot your neighbour before he violates your dog."

    1. LeoP

      Re: Open Source Has Failed

      I recommend you do exactly that. Never ever again use a bit of open source software for you personally or for the good state of Texas.

      That will show us "commies" and "libtards" what we need to know and make your IT run smoothly on "highly secure quality products from the likes of Microsoft, Apple, Oracle". I do especially recommend the latter.

    2. Steve Graham

      Re: Open Source Has Failed

      What are the chances that some people here will not get the joke, even though you've piled the irony right to the ceiling?

      1. Loyal Commenter Silver badge
        Facepalm

        Re: Open Source Has Failed

        Right now, it looks like 6 of them...

    3. Anonymous Coward
      Anonymous Coward

      Re: Open Source Has Failed

      For our Merkin comrades, that was sarcasm.

      1. LeoP

        OK, I fell for it

        Your honour, while I am truly sorry, for the sake of the truth I have to add, that I have seen worse rants being ment word-by-word

        1. heyrick Silver badge

          Re: OK, I fell for it

          Yeah, while it was blatantly over the top and dripping sarcasm from every space between each word...

          ...in this day and age it closely resembles the sort of bollocks that some outlets are trying to pass off as "news".

          It probably doesn't bode well for the future that it's getting so hard to tell the difference between reality and mockery. But thumb up, because it was a good one.

          (small voice: it was taking the piss, right?)

          1. This post has been deleted by its author

          2. Anonymous Coward
            Anonymous Coward

            Re: OK, I fell for it

            I was certainly taken in by the start of that fine upstanding patriotic rant, and hit the downvote button, but luckily I was able to withdraw before it was too late, once I had realised my mistake…

    4. anothercynic Silver badge

      Re: Open Source Has Failed

      You. Are. *GOOD*. :-P

    5. Anonymous Coward
      Anonymous Coward

      Re: Open Source Has Failed

      Yep, pointers sure are a nasty source of memory corruption errors, but Double Pointer errors, yeesh, those can only ever be exponentially worse… You wanna keep away from DP if you know what's good for you, and keep a firm grasp on your malloc…

      (not the first AC)

    6. Anonymous Coward
      Anonymous Coward

      Re: Open Source Has Failed

      Thank fsck I read to the very end, your satire is very much appreciated :)

      AC off course

  8. sw guy

    Just FYI

    I deliver here an french expression used by ancient french president:

    «Les emmerdes volent en escadrille»

    (translation by google looks adequate to me)

    1. Will Godfrey Silver badge

      Re: Just FYI

      Never used google since i found DeepL Translator. It does a much better job.

      https://www.deepl.com/translate#fr/en/Les%20emmerdes%20volent%20en%20escadrille%0A

      1. katrinab Silver badge
        Paris Hilton

        Re: Just FYI

        I use Reverso, which may not be the best if you are looking for a copy/paste translation, but very good if you want to actually understand the text and learn from it.

    2. Anonymous Coward
      Anonymous Coward

      Re: Just FYI

      .... and he was just quoting Shakespeare

  9. Anonymous Coward
    Anonymous Coward

    Having fun Avaya customers?

    Just asking for a friend.

  10. Loyal Commenter Silver badge

    At this point

    ...the best mitigation would appear to be to switch to another logging framework.

    At this rate, I expect to hear how Log4J was attending parties during lockdown, and failed to declare donations made to buy its wallpaper...

    1. Brewster's Angle Grinder Silver badge

      Re: At this point

      `"Electoral Commision: error: ${johnson:wallpaper} "`

      `"MET: error: ${johnson:work_meeting#absolutely+100%25+work}"`

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like