There’s a new Vulnerability occur, and the id is CVE-2021-23840. The description is as below:
"Calls to EVP_CipherUpdate, EVP_EncryptUpdate and EVP_DecryptUpdate may overflow the output length argument in some cases where the input length is close to the maximum permissable length for an integer on the platform. In such cases the return value from the function call will be 1 (indicating success), but the output length value will be negative. This could cause applications to behave incorrectly or crash. "
The function EVP_CipherUpdate could be found in sqlcipher’s source code.So could it be possible that “the input length is close to the maximum permissable length” and cause this vulnerability? Or, as a user of sqlcipher, what should I do to avoid this vulnerability?
Looking forward for your reply,and thanks for your time!
:)