Replies: 18 comments 4 replies
-
Please help. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi Andrey, Thank you for your response. What Trivy has found is Installed version is 2.3.3, fixed version is 2.9.4, 2.8.11 But I have opened up my war file. The jackson version are 2.12.3.jars Is there something I am missing out? Please help. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
@AlanTT1 @AndreyLevchenko My java jar file has 4.1.65.Final version of netty-codec-http and netty-codec-http2 dependencies. Command -> trivy image --exit-code 0 --ignore-unfixed --severity LOW,MEDIUM <DOCKER_IMAGE__NAME_TAG> I can skip the jar file scan with --skip-dirs flag. But I don't want to do that. Dependency-tree : Trivy logs : |
Beta Was this translation helpful? Give feedback.
-
I am also seeing a similar issue with this.
So my jar contents is like this and trivy scan will report I am using jackson-databind version 2.9.6
|
Beta Was this translation helpful? Give feedback.
-
Hi guys |
Beta Was this translation helpful? Give feedback.
-
Hi @AndreyLevchenko |
Beta Was this translation helpful? Give feedback.
-
I can confirm the same issue. |
Beta Was this translation helpful? Give feedback.
-
@andriisoldatenko any updates? |
Beta Was this translation helpful? Give feedback.
-
See #1285 |
Beta Was this translation helpful? Give feedback.
-
I've faced a similar case.
The jar is a java service based on Spring Boot. I've unpacked the jar and found a bunch of dependencies in I've extracted all the dependencies and found that one of them - |
Beta Was this translation helpful? Give feedback.
-
@afdesk yeah, similar, but in my case it was a valid report :) |
Beta Was this translation helpful? Give feedback.
-
Hey I'm coming here after having a similar experience as some of the ones mentioned above after a vulnerability crack down. Thanks Log4j. My first project's culprit was ehcache similar to above. Fighting with that was enough to drive me to open up the hood of trivy. The next repo I used to find a solution by modifying trivy(ultimately go-dep-parser) had a test jar i didn't notice that wasn't scoped as test that had several vulnerabilities. The feature needed is path information for embedded libraries found through recursion.go-dep-parser#41 linked here so I thought it may have the most value to trivy users to post this info here. If you are looking to have a quick-ish work around while waiting on a formal fix I have something fairly simple that can help assuming a little go experience, a development environment and go bin set up.
func (p properties) library(filename string) types.Library {
println(fmt.Sprintf("Adding: %s:%s from %s", p.groupID, p.artifactID, filename))
...
}
|
Beta Was this translation helpful? Give feedback.
-
Hi
note that |
Beta Was this translation helpful? Give feedback.
-
Is this resolved? I'm also getting a false positive for jackson inside of ehcache, based on it finding the pom.xml file deep inside the ehcache jar, but Trivy is (falsely) saying we have vulnerable version of jackson library. Alternatively, is there a way to turn off reporting of things found in a pom.xml file? (I'm doing image scanning by the way) |
Beta Was this translation helpful? Give feedback.
-
most probably I'm missing something here, WARN maven constraint error ([10.5-alpha0,10.5.3.0_1]): failed to new comparer: 2 errors occurred: |
Beta Was this translation helpful? Give feedback.
-
I think I found something interesting. Inside the Trivy documentation, it mentions that it also look into the local cached Maven repository file location under This is what you can try it out.
|
Beta Was this translation helpful? Give feedback.
-
Discussed in #1129
Originally posted by AlanTT1 July 19, 2021
Hi! I am running Trivy on a Java war file.
Firstly, when I started the scan using this command:
trivy fs -s HIGH,CRITICAL -f template -t "@/media/sf_vmsharedfolder/html.tpl" -o fse-trivy-report.html mydir
there is an warning message:
`
2021-07-19T12:39:49.372+0800 INFO Detected OS: unknown
2021-07-19T12:39:49.377+0800 INFO Number of PL dependency files: 1
2021-07-19T12:39:49.377+0800 INFO Detecting jar vulnerabilities...
2021-07-19T12:39:49.463+0800 WARN maven constraint error ([10.5-alpha0,10.5.3.0_1]): failed to new comparer: 2 errors occurred:
`
After this, when I look at the output, it shows an old jar file com.fasterxml.jackson.core:jackson-databind and the installed version is 2.3.3. I have checked the war file by opening it up, there is no version 2.3.3 in jackson-core.
This was the old version of jackson-core and I have already upgraded it to version 2.12.3.
I have tried trivy with --reset and -c to clear cache but it still gives the same result.
Please help. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions