CVE-2024-5535CWE-125

CVE-2024-5535

Critical · published June 27, 2024

CVSS v3.1
9.1
EPSS
6%
Percentile
92.9
In the wild
Unconfirmed
What it is

🚨 An empty protocols buffer in OpenSSL can lead to some shocking consequences! Picture this: a data leak that could spill up to 255 bytes of your sensitive memory to the other side. 🔥 It’s like a hotel receptionist accidentally handing out the wrong room keys because they misfiled the occupancy list — suddenly, strangers could wander into private spaces without anyone noticing! If an application calls the SSL_select_next_proto function with a zero-length list, it could inadvertently transmit private data, leading to a loss of confidentiality. While this scenario typically arises from configuration errors, the potential for unexpected behavior or crashes makes it a risk that should not be ignored!

Put simply

It’s like a hotel receptionist accidentally handing out the wrong room keys because they misfiled the occupancy list — suddenly, strangers could wander into private spaces without anyone noticing! This vulnerability arises when the OpenSSL API function SSL_select_next_proto is called with an empty list of supported client protocols, causing it to return invalid memory. The conditions for exploitation are often not under the attacker's control, but accidental misconfigurations can expose sensitive data.

What to do

If an application calls the SSL_select_next_proto function with a zero-length list, it could inadvertently transmit private data, leading to a loss of confidentiality. While this scenario typically arises from configuration errors, the potential for unexpected behavior or crashes makes it a risk that should not be ignored! To protect against this, ensure that your application configurations validate protocol lists properly before calling SSL_select_next_proto. If your application uses NPN, consider reviewing your code to avoid passing a zero-length client list, and keep an eye on future OpenSSL updates for patches. 🛡️ You've got this! With a little diligence in checking your configs, you can prevent this from becoming a problem. 🦸‍♂️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.05582 · 92.9th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2024-06-27T15:15Z
References (28)
https://github.com/openssl/openssl/commit/4ada436a1946cbb24db5ab4ca082b69c1bc10f37 · [email protected]https://github.com/openssl/openssl/commit/99fb785a5f85315b95288921a321a935ea29a51e · [email protected]https://github.com/openssl/openssl/commit/cf6f91f6121f4db167405db2f0de410a456f260c · [email protected]https://github.com/openssl/openssl/commit/e86ac436f0bd54d4517745483e2315650fae7b2c · [email protected]https://github.openssl.org/openssl/extended-releases/commit/9947251413065a05189a63c9b7a6c1d4e224c21c · [email protected]https://github.openssl.org/openssl/extended-releases/commit/b78ec0824da857223486660177d3b1f255c65d87 · [email protected]https://www.openssl.org/news/secadv/20240627.txt · [email protected]http://www.openwall.com/lists/oss-security/2024/06/27/1 · af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2024/06/28/4 · af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2024/08/15/1 · af854a3a-2127-422b-91ae-364da2661108https://github.com/openssl/openssl/commit/4ada436a1946cbb24db5ab4ca082b69c1bc10f37 · af854a3a-2127-422b-91ae-364da2661108https://github.com/openssl/openssl/commit/99fb785a5f85315b95288921a321a935ea29a51e · af854a3a-2127-422b-91ae-364da2661108https://github.com/openssl/openssl/commit/cf6f91f6121f4db167405db2f0de410a456f260c · af854a3a-2127-422b-91ae-364da2661108https://github.com/openssl/openssl/commit/e86ac436f0bd54d4517745483e2315650fae7b2c · af854a3a-2127-422b-91ae-364da2661108https://github.openssl.org/openssl/extended-releases/commit/9947251413065a05189a63c9b7a6c1d4e224c21c · af854a3a-2127-422b-91ae-364da2661108https://github.openssl.org/openssl/extended-releases/commit/b78ec0824da857223486660177d3b1f255c65d87 · af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html · af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20240712-0005/ · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20241025-0006/ · af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20241025-0010/ · af854a3a-2127-422b-91ae-364da2661108https://www.openssl.org/news/secadv/20240627.txt · af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/html/ssa-265688.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-277137.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-398330.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-613116.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-769027.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5ehttps://cert-portal.siemens.com/productcert/html/ssa-915275.html · 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
EPSS history
Timeline
  • 27 JUN 10:30Z
    SSL_select_next_proto buffer overread
    cvelistv5