Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Update net.minidev:json-smart to >2.4.9 #1513

Open
vinicius-stravito opened this issue Apr 18, 2023 · 0 comments
Open

Update net.minidev:json-smart to >2.4.9 #1513

vinicius-stravito opened this issue Apr 18, 2023 · 0 comments
Assignees
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@vinicius-stravito
Copy link

Version

com.microsoft.bot:bot-builder:4.14.3

Describe the bug

Affected versions of net.minidev:json-smart are vulnerable to Denial of Service (DoS) due to a StackOverflowError when parsing a deeply nested JSON array or object.

When reaching a ‘[‘ or ‘{‘ character in the JSON input, the code parses an array or an object respectively. It was discovered that the 3PP does not have any limit to the nesting of such arrays or objects. Since the parsing of nested arrays and objects is done recursively, nesting too many of them can cause stack exhaustion (stack overflow) and crash the software.

Patches
This vulnerability was fixed in json-smart version 2.4.9, but the maintainer recommends upgrading to 2.4.10, due to a remaining bug.

Workarounds
N/A

References
https://www.cve.org/CVERecord?id=CVE-2023-1370
https://nvd.nist.gov/vuln/detail/CVE-2023-1370
https://security.snyk.io/vuln/SNYK-JAVA-NETMINIDEV-3369748

@vinicius-stravito vinicius-stravito added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Apr 18, 2023
@tracyboehrer tracyboehrer self-assigned this Apr 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

2 participants