Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70026

Artifactory plugin uses older version of netty which raises critical vulnerability alert in XRay scan

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • artifactory-plugin
    • None

      Hello There,

      The latest version of the Artifactory Plugin (3.17.2) uses an older version of netty. These older version of netty have security vulnerabilities including:

      • CVE-2022-24823
      • CVE-2021-43797

      This also gets picked up as XRAY-179837 in JFrog XRay. Because it gets picked up by XRay this prevents me from deploying a Jenkins container image that includes the Artifactory plugin because our pipeline blocks the critical vulnerability.

      It gets picked up because the pom includes the following dependency:

      <dependency>
                  <groupId>org.mock-server</groupId>
                  <artifactId>mockserver-netty</artifactId>
                  <version>5.10.0</version>
                  <scope>test</scope>
      </dependency> 

      https://github.com/jenkinsci/artifactory-plugin/blob/master/pom.xml#L560

      And then this includes netty:

      <netty.version>4.1.47.Final</netty.version> 

      https://github.com/mock-server/mockserver/blob/mockserver-5.10.0/pom.xml#L61

      I'd imagine the fix would be to just use a newer version of mock server. Since the latest version of mock server does not contain the vulnerable version.

      Even though it is under the test scope, this still blocks me from deploying it since it gets picked up by XRay during the scanning step of the docker image that I am packaging Jenkins into.

      The fix of netty is documented here which also highlights why this package should be upgraded: https://github.com/netty/netty/pull/11429

       

            eyalbe Eyal Ben Moshe
            tomdevops Tom Lorentsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: