inout is vulnerable to Out-of-bounds Write
55
CVE Score
Medium
Out-of-bounds Write
Before the fix, into_padded_blocks accepted an output buffer only as long as the input and still built a padded buffer containing a padding tail block; when the caller then used get_tail_block or into_out, the crate wrote or read one block past the output allocation. Any crate consumer calling this public API with the optional block-padding feature enabled and an output buffer without room for the padding tail hit the out-of-bounds access. The missing check existed only in 0.2.3; earlier releases rejected undersized output buffers with PadError. The fix counts the output buffer's full blocks and returns PadError before building the padded buffer when the output cannot hold the padded data.
Upgrade the inout crate to 0.2.4 or later.
You are affected if you are using a version that falls within the vulnerable range and enable the block-padding feature and pass an output buffer without room for the padding tail to into_padded_blocks.
0.2.3 - 0.2.3
Fixed in 0.2.4inout is vulnerable to Out-of-bounds Write in versions 0.2.3 - 0.2.3.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.