Skip to content
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

Fix CVE-2023-5363 #537

Merged
merged 3 commits into from
Dec 4, 2023
Merged

Fix CVE-2023-5363 #537

merged 3 commits into from
Dec 4, 2023

Conversation

dongbeiouba
Copy link
Member

Checklist
  • https://yuque.com/tsdoc 增加或更新了必要的文档
  • 增加或更新了必要的测试用例
  • 对于重要修改,更新了CHANGES文件
  • 当前修改存在对已有API参数或返回值的改变
  • 当前修改存在对旧版本功能的兼容性改变(如网络协议或密码算法)

@dongbeiouba dongbeiouba added bug Something isn't working branch-8.4 labels Nov 29, 2023
@dongbeiouba dongbeiouba requested review from InfoHunter, wa5i and a team November 29, 2023 03:15
@dongbeiouba dongbeiouba linked an issue Nov 29, 2023 that may be closed by this pull request
Copy link
Contributor

@wa5i wa5i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

evp_cipher_init_internal() takes a params array argument and this is processed
late in the initialisation process for some ciphers (AEAD ones).

This means that changing the IV length as a parameter will either truncate the
IV (very bad if SP 800-38d section 8.2.1 is used) or grab extra uninitialised
bytes.

Truncation is very bad if SP 800-38d section 8.2.1 is being used to
contruct a deterministic IV.  This leads to an instant loss of confidentiality.

Grabbing extra bytes isn't so serious, it will most likely result in a bad
decryption.

Problem reported by Tony Battersby of Cybernetics.com but earlier discovered
and raised as issue #19822.

Fixes CVE-2023-5363
@InfoHunter InfoHunter merged commit 8f44e7b into Tongsuo-Project:8.4-stable Dec 4, 2023
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-8.4 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CVE-2023-5363
3 participants