Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Is netxms affected by CVE-2021-44228?

Is netxms affected by CVE-2021-44228?

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 47.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    N
    normalcy
    wrote on last edited by
    #1

    Hi, is netxms affected by log4j CVE-2021-44228?

    Running a search on a debian VM with netxms installed shows:

    # find / -name *log4j*
    /var/lib/dpkg/info/liblog4j1.2-java.md5sums
    /var/lib/dpkg/info/liblog4j1.2-java.list
    /usr/share/java/slf4j-log4j12-1.7.22.jar
    /usr/share/java/log4j-1.2-1.2.17.jar
    /usr/share/java/log4j-over-slf4j.jar
    /usr/share/java/ant-apache-log4j-1.9.9.jar
    /usr/share/java/slf4j-log4j12.jar
    /usr/share/java/log4j-1.2.jar
    /usr/share/java/log4j-over-slf4j-1.7.22.jar
    /usr/share/java/ant-apache-log4j.jar
    /usr/share/maven-repo/org/apache/ant/ant-apache-log4j
    /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/debian/ant-apache-log4j-debian.pom
    /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/debian/ant-apache-log4j-debian.jar
    /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.9.9/ant-apache-log4j-1.9.9.jar
    /usr/share/maven-repo/org/apache/ant/ant-apache-log4j/1.9.9/ant-apache-log4j-1.9.9.pom
    /usr/share/maven-repo/org/slf4j/log4j-over-slf4j
    /usr/share/maven-repo/org/slf4j/log4j-over-slf4j/1.7.22/log4j-over-slf4j-1.7.22.pom
    /usr/share/maven-repo/org/slf4j/log4j-over-slf4j/1.7.22/log4j-over-slf4j-1.7.22.jar
    /usr/share/maven-repo/org/slf4j/log4j-over-slf4j/debian/log4j-over-slf4j-debian.jar
    /usr/share/maven-repo/org/slf4j/log4j-over-slf4j/debian/log4j-over-slf4j-debian.pom
    /usr/share/maven-repo/org/slf4j/slf4j-log4j12
    /usr/share/maven-repo/org/slf4j/slf4j-log4j12/1.7.22/slf4j-log4j12-1.7.22.jar
    /usr/share/maven-repo/org/slf4j/slf4j-log4j12/1.7.22/slf4j-log4j12-1.7.22.pom
    /usr/share/maven-repo/org/slf4j/slf4j-log4j12/debian/slf4j-log4j12-debian.jar
    /usr/share/maven-repo/org/slf4j/slf4j-log4j12/debian/slf4j-log4j12-debian.pom
    /usr/share/maven-repo/log4j
    /usr/share/maven-repo/log4j/log4j
    /usr/share/maven-repo/log4j/log4j/1.2.17/log4j-1.2.17.jar
    /usr/share/maven-repo/log4j/log4j/1.2.17/log4j-1.2.17.pom
    /usr/share/maven-repo/log4j/log4j/1.2.x/log4j-1.2.x.jar
    /usr/share/maven-repo/log4j/log4j/1.2.x/log4j-1.2.x.pom
    /usr/share/doc/liblog4j1.2-java
    /usr/share/ant/lib/ant-apache-log4j.jar
    /usr/share/jetty9/resources/log4j.properties
    

    I've read online that some say log4j ver. 1.x is not vulnerable to the JNDI issue, but can't confirm that myself.  Is netxms affected do you think?  Or are these jars brought in with openjdk/jetty only and not used?

    1 Reply Last reply
    0
    • N
      N
      normalcy
      wrote on last edited by
      #2

      This github repo has hashes of vulnerable versions of the library and the link to the apache repo suggest ver 1.x might also be vulnerable too. 

      I'm guessing installing jetty for the web console is what brings in log4j dependencies?

      1 Reply Last reply
      0
      • A
        A
        Alex Kirhenshtein
        wrote on last edited by
        #3

        Hello.

        NetXMS does not use log4j (neither jetty9).

        Test, which shows that on the clean system there are no log4j jars:

        ❯ docker run --rm -it debian:11 bash
        root@f7dddcf8abfe:/# apt-get update
        …
        root@f7dddcf8abfe:/# apt-get install -y curl
        …
        root@f7dddcf8abfe:/# curl https://packages.netxms.org/install | sh
        …
        root@f7dddcf8abfe:/# apt-get install -fy
        …
        root@f7dddcf8abfe:/# apt-get update
        …
        root@f7dddcf8abfe:/# apt-get install -y netxms-\* jetty9
        …
        root@f7dddcf8abfe:/# find / -name \*log4j\*
        /usr/share/jetty9/modules/logging-log4j.mod
        /usr/share/jetty9/modules/logging-log4j2.mod
        /usr/share/jetty9/modules/log4j2-impl.mod
        /usr/share/jetty9/modules/log4j-impl
        /usr/share/jetty9/modules/log4j-impl/resources/log4j.xml
        /usr/share/jetty9/modules/slf4j-log4j2.mod
        /usr/share/jetty9/modules/log4j2-api.mod
        /usr/share/jetty9/modules/log4j2-slf4j.mod
        /usr/share/jetty9/modules/log4j2-impl
        /usr/share/jetty9/modules/log4j2-impl/resources/log4j2.xml
        /usr/share/jetty9/modules/log4j-impl.mod
        /usr/share/jetty9/modules/slf4j-log4j.mod
        root@f7dddcf8abfe:/#
        
        1 Reply Last reply
        0
        • N
          N
          normalcy
          wrote on last edited by
          #4

          Thanks Alex, I'm assuming I've got jetty on that VM from testing out the nxmc web console in the past.  Seems the 1.x series on my VM is not vulnerable to this CVE in any case.

          1 Reply Last reply
          0
          • L
            L
            lweidig
            wrote on last edited by
            #5

            A recent scan of our NetXMS VM shows the following:

            [WARNING] /usr/lib/x86_64-linux-gnu/netxms/java/jython-standalone-2.7.2.jar contains log4j files
            

            Curious where this is all used and what the solution might be if this is an issue.  We are running the latest version of NetXMS and also do run the web console.  Thanks!

            1 Reply Last reply
            0
            • A
              A
              Alex Kirhenshtein
              wrote on last edited by
              #6

              Jython is used by nxshell.

              However, the only mentions of log4j I've found in the jython is adapters to different logging frameworks (in org.python.netty.util.internal.logging), not the log4j runtime itself.

              @lweidig said in Is netxms affected by CVE-2021-44228?:

              A recent scan of our NetXMS VM shows the following:

              [WARNING] /usr/lib/x86_64-linux-gnu/netxms/java/jython-standalone-2.7.2.jar contains log4j files
              

              Curious where this is all used and what the solution might be if this is an issue.  We are running the latest version of NetXMS and also do run the web console.  Thanks!

              You can verify yourself, that there are no JndiLookup (which is affected piece of log4j2):

              ~
              ❯ unzip -t ~/.m2/repository/org/python/jython-standalone/2.7.2/jython-standalone-2.7.2.jar | grep JndiLookup
              ~
              ❯ echo $status
              1
              ~
              ❯
              
              1 Reply Last reply
              0
              • L
                L
                lweidig
                wrote on last edited by
                #7

                Excellent!  I suspected that was the case as well and appreciate you confirming this.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups