Uncaught exception in com.ctc.wstx.dtd.FullDTDReader.readContentSpec in xstream
Summary
OSV-2022-455: Uncaught exception in com.ctc.wstx.dtd.FullDTDReader.readContentSpec. Affects xstream versions >= eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee, < eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee. Fixed in eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
xstream is an open-source library for serializing Java objects to XML and back. It provides a simple API for converting objects to XML and vice versa. This vulnerability affects the xstream package and can lead to uncaught exceptions in the FullDTDReader.readContentSpec method.
Vulnerability Detail
The vulnerability occurs when the FullDTDReader.readContentSpec method encounters an uncaught exception. This can result in a crash, causing the application to become unresponsive or terminate unexpectedly. The issue has been reported in the OSS-Fuzz project and is considered to have a low severity level. More details about the crash state can be found in the provided OSS-Fuzz report.
How To Fix
Minimum fixed version
eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
In conclusion, the xstream package is vulnerable to an uncaught exception in the FullDTDReader.readContentSpec method. To mitigate this vulnerability, it is recommended to update the package to the latest version. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for xstream →
FAQ
xstream is an open-source library for serializing Java objects to XML and back. It provides a simple API for converting objects to XML and vice versa.
The vulnerability can lead to crashes in applications using the xstream package, causing them to become unresponsive or terminate unexpectedly.
To fix this vulnerability, update the xstream package to the latest version that includes the fix for this issue.
No specific workaround has been mentioned for this vulnerability.
You can find more information about this vulnerability in the provided OSS-Fuzz report and the associated source code repository.
References
Related vulnerabilities
Recent vulnerabilities recorded for xstream.