Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvnd is affected by CVE-2020-17521 vulnerability #259

Closed
galegofer opened this issue Dec 12, 2020 · 4 comments
Closed

mvnd is affected by CVE-2020-17521 vulnerability #259

galegofer opened this issue Dec 12, 2020 · 4 comments
Milestone

Comments

@galegofer
Copy link

Related to apache:groovy:3.0.4, dependency even though is not a critical vulnerability, and is easily avoided by not using extension methods when creating temporal files, I do believe it will be good to keep project dependencies as safest as possible, upgrading to 3.0.7 will fix this issue.

You can have a look into https://nvd.nist.gov/vuln/search/results?form_type=Advanced&results_type=overview&search_type=all&cpe_vendor=cpe%3A%2F%3Aapache&cpe_product=cpe%3A%2F%3Aapache%3Agroovy&cpe_version=cpe%3A%2F%3Aapache%3Agroovy%3A3.0.4.

The tool used to scan for vulnerabilities is OWASP dependency-check.

You can add it using at your root pom:

org.owasp dependency-check-maven 6.0.3 check

it will generate a report in your /target called dependency-check-report.

@ppalaga
Copy link
Contributor

ppalaga commented Dec 14, 2020

We have upgraded to groovy 3.0.7 already in the master #254

BTW, now that we know that module build order can be controlled via stock Maven means, like

        <dependency>
            <groupId>org.group</groupId>
            <artifactId>my-dependency</artifactId>
            <version>${project.version}</version>
            <type>pom</type>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

I would not mind removing both the custom dependency properties and the groovy script features from the daemon. WDYT, @gnodet? Have you ever used the groovy script feature somewhere?

@gnodet
Copy link
Contributor

gnodet commented Dec 14, 2020

We have upgraded to groovy 3.0.7 already in the master #254

BTW, now that we know that module build order can be controlled via stock Maven means, like

        <dependency>
            <groupId>org.group</groupId>
            <artifactId>my-dependency</artifactId>
            <version>${project.version}</version>
            <type>pom</type>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

I don't follow how that affects the build order. Can you be more explicit ?

I would not mind removing both the custom dependency properties and the groovy script features from the daemon. WDYT, @gnodet? Have you ever used the groovy script feature somewhere?

I thought it was used in one camel subproject, but I can't find any reference, so I suppose not.

@ppalaga
Copy link
Contributor

ppalaga commented Dec 15, 2020

We have upgraded to groovy 3.0.7 already in the master #254
BTW, now that we know that module build order can be controlled via stock Maven means, like

        <dependency>
            <groupId>org.group</groupId>
            <artifactId>my-dependency</artifactId>
            <version>${project.version}</version>
            <type>pom</type>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>*</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

I don't follow how that affects the build order. Can you be more explicit ?

We started to use these kind of dependencies it in Camel Quarkus instead of <mvnd.builder.rules> and the provider Groovy scripts.
A dependency like above will cause that the current module is built after org.group:my-dependency. Note that adding a pom dependency with all transitives excluded to the test class path has no actual effect on the class path. It only impacts the build order.

I would not mind removing both the custom dependency properties and the groovy script features from the daemon. WDYT, @gnodet? Have you ever used the groovy script feature somewhere?

I thought it was used in one camel subproject, but I can't find any reference, so I suppose not.

Let's deprecate it and warn for the case that somebody uses it.

@ppalaga
Copy link
Contributor

ppalaga commented Dec 15, 2020

I have filed #264

@gnodet gnodet added this to the 0.1.2 milestone Dec 15, 2020
@gnodet gnodet closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants