Skip to content

Fix XStream Security Vulnerability in XML Deserialization #443

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

Merged
merged 1 commit into from
May 26, 2025

Conversation

simei2k
Copy link
Contributor

@simei2k simei2k commented May 18, 2025

Description

This PR addresses a critical security vulnerability (CVE-2021-21341 and similar) in our XStream usage that could allow remote code execution through XML deserialization attacks. The current implementation lacked proper security restrictions on the XStream instance, allowing deserialization of arbitrary classes.

This vulnerability was also found in t-oster/VisiCut@3d6b930, corresponding to CVE-2021-39141 and fixed in this git commit.

References:

  1. https://nvd.nist.gov/vuln/detail/cve-2021-39141
  2. t-oster/VisiCut@3d6b930

This PR addresses a critical security vulnerability (CVE-2021-21341 and similar) in our XStream usage that could allow remote code execution through XML deserialization attacks. The current implementation lacked proper security restrictions on the XStream instance, allowing deserialization of arbitrary classes.

This vulnerability was also found in t-oster/VisiCut@3d6b930, corresponding to CVE-2021-39141 and fixed in this git commit.

References:
1. https://nvd.nist.gov/vuln/detail/cve-2021-39141
2. t-oster/VisiCut@3d6b930
@baisui1981 baisui1981 merged commit 90575b6 into datavane:master May 26, 2025
baisui1981 added a commit that referenced this pull request May 26, 2025
@simei2k
Copy link
Contributor Author

simei2k commented May 27, 2025

hi @baisui1981 thanks for merging my PR! I'm planning to submit this as a CVE, do let me know whether it's okay!

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

Successfully merging this pull request may close these issues.

2 participants