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

Upgrade commons-text-1.9.jar #892

Closed
datenimperator opened this issue Nov 16, 2022 · 8 comments
Closed

Upgrade commons-text-1.9.jar #892

datenimperator opened this issue Nov 16, 2022 · 8 comments
Labels
dependencies Pull requests that update a dependency file for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: internal-architecture

Comments

@datenimperator
Copy link

datenimperator commented Nov 16, 2022

Describe the bug
The VScode extension pivotal.vscode-spring-boot-1.40.0 includes the file language-server\BOOT-INF\lib\commons-text-1.9.jar. A critical security issue is reported as CVE-2022-42889 for this release. This error has been fixed in releases 1.10.0 and higher.

Please update the dependency to one not vulnerable.

To Reproduce

  • Install the current extension "Pivotal Spring Boot Tools" on VScode.
  • Inspect the contents of the path %HOME%\.vscode\extensions\pivotal.vscode-spring-boot-1.40.0\language-server\BOOT-INF\lib to find the vulnerable jar file.
@BoykoAlex
Copy link
Contributor

@datenimperator @martinlippert we have switched to a snapshot of rewrite-maven library which was pulling commons-text-1.9. The snapshot is pulling 1.10 and there are releases since Rewrite 7.30.0 which are likely having commons-text-1.10 as well. If we are okay to wait for the next scheduled release of 1.41 for vscode extensions then I'd keep it opened until the release. Otherwise, if urgent release is required, I could try a later two minor version rewrite release which are very likely to pull commons-text-1.10

@BoykoAlex
Copy link
Contributor

I find it unlikely that we'd be affected by CVE-2022-42889. The lib rewrite-maven only uses commons-text for org.apache.commons.text.StringEscapeUtils namely methods:

  • escapeEcmaScript(String)
  • escapeJava(String)
    From what I've gathered these methods don't use StringLookup. Therefore, I'd keep this opened until the next release when we switch to Rewrite release dependencies and double-check they use commons-text 1.10 and above

@martinlippert
Copy link
Member

@datenimperator Please feel free to report the usage of the CVE-effected dependency to the rewrite-maven project as well. And thanks for reporting this here.

@datenimperator
Copy link
Author

@BoykoAlex @martinlippert thx for responding so quickly, really appreciated. Personally, I do not assume that this is so much of an actual issue, given the way how the lib is used. But this warning comes up if your computer is scanned for vulnerabilities, and many organizations (like my employer) will perform such scans. I think its safe to assume that this warning has been seen already by lots of users. Once your PC has been on a "vulnerable computers" list for some days, it doesn't take too long until emails from top-execs come flying in...

So, for the sake of you helping me to get rid of our sec guy telling me to update, I eagerly await the next release :-)

@datenimperator
Copy link
Author

Please feel free to report the usage of the CVE-effected dependency to the rewrite-maven project as well.

Done, see openrewrite/rewrite-maven-plugin#438

@martinlippert
Copy link
Member

@datenimperator ETA for the next release is the week of Dec 7

@martinlippert martinlippert added this to the 4.17.0.RELEASE milestone Nov 20, 2022
@martinlippert martinlippert added theme: internal-architecture for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode dependencies Pull requests that update a dependency file and removed type: bug labels Nov 20, 2022
@martinlippert
Copy link
Member

rewrite-maven as well as rewrite-java have been updated to commons-text version 1.10.0, so we are not shipping version 1.9.0 of commons-text anymore. This will ship as part of the next release (in Spring Tools Extension for VSCode 1.41.0, as part of the broader Spring Tools 4.17.0 release)

@martinlippert
Copy link
Member

Thanks again @datenimperator for reporting this!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file for: eclipse something that is specific for Eclipse for: vscode something that is specific for VSCode theme: internal-architecture
Projects
None yet
Development

No branches or pull requests

3 participants