cesanta.mongoose is vulnerable to Out-of-bounds Read
75
High Risk
The built-in TLS X.509 parser decodes a long-form DER length without checking it against the remaining buffer, so a later subtraction on an unsigned counter underflows to a huge value. The parser then advances a pointer past the buffer and keeps reading out of bounds while walking a peer certificate. A malicious TLS peer can crash the process during the handshake without authentication. The fix bounds the decoded length against the available data.
You are affected if you are using a version that falls within the vulnerable range and you use the built-in TLS backend (MG_TLS_BUILTIN) and parse a peer certificate.
cesanta.mongoose is vulnerable to Out-of-bounds Read in versions 7.14.0 - 7.22.0.
Upgrade the cesanta.mongoose library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant