Security Vulnerability found in Aspose dependency

Hi Team,

We have found following vulnerabilities in Aspose dependencies.

org.apache.xmlgraphics:fop
CVE-2017-5661
Severity : High

com.google.code.gson:gson
CVE-2022-25647
Severity : High

org.bouncycastle:bcprov-jdk15on
CVE-2020-15522
Severity : Moderate

org.bouncycastle:bc-fips
CVE-2022-45146
Severity : Moderate

com.fasterxml.woodstox:woodstox-core
CVE-2022-40152
Impact : Low

Can you review these vulnerabilities reported and update us suitable remediation to integrate Aspose libraries in our project ?

Note: Our customers expect all open source versions to be updated even when they are reported as not impacted.

@ask4dhananjay,

All Aspose APIs/SDKs have been checked time to time for any kind of vulnerabilities (including CVE-xxxx) and we remove them internally (if found any). We recommend you to kindly try using latest versions of the APIs. Please try using Aspose APIs (latest versions) and in case you face any issues regarding security, please let us know with details (e.g., which Aspose API and version details). We will check and address it accordingly.

Hi @amjad.sahi

We are using latest Aspose total libraries (Aspose total 23.3) and Security scan is performed through MEND (Whitesource). From scan above reported vulnerabilities are reported.

More details from vulnerability reported above.

CVE-2017-5661
high severity
Vulnerable versions: < 2.2
Patched version: 2.2

CVE-2022-25647
high severity
Vulnerable versions: < 2.8.9
Patched version: 2.8.9

CVE-2020-15522
moderate severity
Vulnerable versions: < 1.66
Patched version: 1.66

CVE-2022-45146
moderate severity
Vulnerable versions: < 1.0.2.4
Patched version: 1.0.2.4

CVE-2022-40152
low severity
Vulnerable versions: >= 6.0.0, < 6.4.0
Patched version: 6.4.0

@ask4dhananjay,

We have logged a ticket with an id “CELLSJAVA-45455” for your issue. We will evaluate for Aspose.Cells whether we need to upgrade the version of bouncycastle for your mentioned security vulnerability. Once we have an update on it, we will let you know.

Regarding other security vulnerabilities, we will evaluate using other Aspose APIs/SDKs and get back to you with updates.

@ask4dhananjay

We have also registered a ticket with ID WORDSJAVA-2863 for your problem. We will evaluate it for Aspose.Words for Java. As soon as we have an update, we will let you know.

@ask4dhananjay,
Regarding Aspose.Slides, we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39217

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as CELLSJAVA-45455) have been fixed in Aspose.Cells for Java 23.6.

@ask4dhananjay

Aspose.Cells for Java has upgraded the depended BouncyCastle version from 1.60 to 1.68 in Aspose.Cells for Java 23.6.

Even, in your used Aspose.Cells for Java 23.3, you can change the dependency version to use BouncyCastle version 1.68 even the lastest version 1.73(Please note, if you use v1.73, the “bcutil-*-1.73.jar” is also needed besides “bcprov-*-1.73.jar” and “bcpkix-*-1.73.jar”).

Thanks for investigating and taking actions on the vulnerability we highlighted. Also for scanning we created our own pom.xml file to scan the Aspose libraries using our security tool. However, we are not sure if that file refers all the third party libraries used by Aspose. Is it possible to share your pom.xml file so that we can cover all the libraries in the scan ?

@ask4dhananjay,

See the document on defining Aspose.Cells for Java API dependencies in pom.xml as follows.
https://docs.aspose.com/cells/java/installation/#installing-asposecells-for-java-from-maven-repository

Since it involves multiple Aspose for Java APIs, so you should refer to installation page of each API (you want) for maven dependencies/configurations and write your pom.xml.
e.g.
https://docs.aspose.com/words/java/installation/ (Aspose.Words for Java)
https://docs.aspose.com/pdf/java/installation/ (Aspose.PDF for Java)

Hi

Thanks for the details. I am able to resolve vulnerability that is reported on org.bouncycastle:bcprov-jdk15on after updating version in pom.xml to 1.68

But I am not sure where I can track following items in Aspose libraries at installation detals.

org.apache.xmlgraphics:fop
com.google.code.gson:gson
org.bouncycastle:bc-fips
com.fasterxml.woodstox:woodstox-core

Also what is the status on other tickets raised ? -

SLIDESJAVA-39217
WORDSJAVA-2863

Redards,
Dhananjay

@ask4dhananjay,

Good to know that your issue is sorted out regarding org.bouncycastle:bcprov-jdk15on for Aspose.Cells for Java.

For other items and issues, respective teams will get back to you with updates.

@ask4dhananjay The issue WORDSJAVA-2863 is already resolved in the current codebase. The fix will be included into the next 23.6 version of Aspose.Words for Java.

Also, there is another WORDSJAVA-2812 defect regarding org.bouncycastle:bc-fips, it is also already resolved and the fix will also be included into 23.6 version.

@alexey.noskov Thanks for the update. May I know where I can find references of following in Aspose pom.xml ?

org.apache.xmlgraphics:fop
com.google.code.gson:gson
org.bouncycastle:bc-fips
com.fasterxml.woodstox:woodstox-core

Also suggest what would be the updated dependencies after resolving outstanding tickets (incl WORDSJAVA 2812 and WORDSJAVA 2863)?

Thanks

@ask4dhananjay,

The SLIDESJAVA-39217 issue has been blocked by another issue. As far as I can see, our developers are actively working on the issues and will resolve them as soon as possible.

@ask4dhananjay,

Aspose.Words for Java does not include dependencies on org.apache.xmlgraphics:fop and com.google.code.gson:gson. Other dependencies have been updated accordingly to the following versions:
org.bouncycastle:bc-fips - 1.0.2.4
com.fasterxml.woodstox:woodstox-core - 6.5.2

The issues you have found earlier (filed as WORDSJAVA-2863,WORDSJAVA-2812) have been fixed in this Aspose.Words for Java 23.6 update.

Hi

I went through the installation guides you shared ( Installation|Aspose.Words for Java, Install Aspose.PDF for Java|Aspose.PDF for Java ) for the dependencies.

However, I don’t see the details of third party / open source products like org.bouncycastle:bc-fips used by Aspose products.

Where can I see all the third party products including open source used in Aspose products ? This will help us in populating pom.xml properly.

Regards
Dhananjay

@ask4dhananjay

You can download aspose-pdf-23.5-java.zip from the Package Explorer in Aspose Downloads section. This .zip contains files that have all the information about third party APIs and licenses.

Furthermore,

org.apache.xmlgraphics:fop
CVE-2017-5661
Severity : High

We don’t use Apache.

com.google.code.gson:gson
CVE-2022-25647
Severity : High

We don’t use gson.

org.bouncycastle:bcprov-jdk15on
CVE-2020-15522
Severity : Moderate
And
org.bouncycastle:bc-fips
CVE-2022-45146
Severity : Moderate

We have task to updates bouncycastle , as soon as new version of FIPS for bouncycastle will be released. The task PDFJAVA-42406 has been logged for it.

com.fasterxml.woodstox:woodstox-core
CVE-2022-40152
Impact : Low

We don’t use this code.

HI @asad.ali

Thanks for the details. I understand that you gave reference from Aspose for PDF only. But vulnerable third party / opensource references mentioned in this ticket are included from other Aspose libaries as well.

Also Apache referece is found in Aspose for PDF.

Aspose PDF : We can find Apache reference after extracting jar also its mentioned in “Aspose.PDF for Java .Agreements.pdf” located in META-INF. Same can be referenced in Slides and Html libraries.

Other references I identified -

Aspose OMR : We can find gson refernce after extracting jar.

Aspose Words : Woodstox Streaming XML parser is referencd.

From your reply “This .zip contains files that have all the information about third party APIs and licenses.” - I am not able to locate third party resource details (incl artifacts and version) after extracting zip/jar. It would be helpful if you give reference like pom.xml that includes these dependencies. (for other Aspose libaries also [word, slides, OMR, … etc])

Regards
Dhananjay