CriticalCVE-2024-5535

    SSL_select_next_proto buffer overread (CVE-2024-5535)

    Published Last modified Sources: Siemens ProductCERT, BSI, CVE.org, Red Hat, Msrc Update Guide, EUVD, Ubuntu

    What is affected, what to do

    Issue summary: Calling the OpenSSL API function SSL_select_next_proto with an empty supported client protocols buffer may cause a crash or memory contents to be sent to the peer. Impact summary: A buffer overread can have a range of potential consequences such as unexpected application beahviour or a crash.

    Update OpenSSL to version 3.3.2, OpenSSL to version 3.2.3, OpenSSL to version 3.1.7.

    Affected
    • OpenSSL lt 3.3.0..3.3.2
    • OpenSSL lt 3.2.0..3.2.3
    • OpenSSL lt 3.1.0..3.1.7
    • OpenSSL lt 3.0.0..3.0.15
    • OpenSSL lt 1.1.1..1.1.1za
    • OpenSSL lt 1.0.2..1.0.2zk
    Fixed in
    • OpenSSL 3.3.2
    • OpenSSL 3.2.3
    • OpenSSL 3.1.7
    • OpenSSL 3.0.15
    • OpenSSL 1.1.1za
    • OpenSSL 1.0.2zk

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    9.1

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: NVD, CVSS v3

    9.1

    CVSS v3

    Severity Critical on the scale from 0 to 10.

    Source: Siemens ProductCERT, BSI, CVE.org, Red Hat, Msrc Update Guide, EUVD, Ubuntu

    5.6 %

    EPSS score

    Moderate — model estimates 1-10% exploitation likelihood.

    Source: FIRST EPSS, percentile 92.9

    Show all metrics
    Severity
    Critical
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    120.03 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    9.1 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    9.1
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    5.6 %
    Moderate — model estimates 1-10% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    92.9
    Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CISA assessment (SSVC)
    Exploitation: none known · automatable · Technical impact: partial
    Source: CISA Vulnrichment, as of 8 November 2024
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-125

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    Issue summary: Calling the OpenSSL API function SSL_select_next_proto with an empty supported client protocols buffer may cause a crash or memory contents to be sent to the peer. Impact summary: A buffer overread can have a range of potential consequences such as unexpected application beahviour or a crash. In particular this issue could result in up to 255 bytes of arbitrary private data from memory being sent to the peer leading to a loss of confidentiality. However, only applications that directly call the SSL_select_next_proto function with a 0 length list of supported client protocols are affected by this issue. This would normally never be a valid scenario and is typically not under attacker control but may occur by accident in the case of a configuration or programming error in the calling application. The OpenSSL API function SSL_select_next_proto is typically used by TLS applications that support ALPN (Application Layer Protocol Negotiation) or NPN (Next Protocol Negotiation). NPN is older, was never standardised and is deprecated in favour of ALPN. We believe that ALPN is significantly more widely deployed than NPN. The SSL_select_next_proto function accepts a list of protocols from the server and a list of protocols from the client and returns the first protocol that appears in the server list that also appears in the client list. In the case of no overlap between the two lists it returns the first item in the client list. In either case it will signal whether an overlap between the two lists was found. In the case where SSL_select_next_proto is called with a zero length client list it fails to notice this condition and returns the memory immediately following the client list pointer (and reports that there was no overlap in the lists). This function is typically called from a server side application callback for ALPN or a client side application callback for NPN. In the case of ALPN the list of protocols supplied by the client is guaranteed by libssl to never be zero in length. The list of server protocols comes from the application and should never normally be expected to be of zero length. In this case if the SSL_select_next_proto function has been called as expected (with the list supplied by the client passed in the client/client_len parameters), then the application will not be vulnerable to this issue. If the application has accidentally been configured with a zero length server list, and has accidentally passed that zero length server list in the client/client_len parameters, and has additionally failed to correctly handle a "no overlap" response (which would normally result in a handshake failure in ALPN) then it will be vulnerable to this problem. In the case of NPN, the protocol permits the client to opportunistically select a protocol when there is no overlap. OpenSSL returns the first client protocol in the no overlap case in support of this. The list of client protocols comes from the application and should never normally be expected to be of zero length. However if the SSL_select_next_proto function is accidentally called with a client_len of 0 then an invalid memory pointer will be returned instead. If the application uses this output as the opportunistic protocol then the loss of confidentiality will occur. This issue has been assessed as Low severity because applications are most likely to be vulnerable if they are using NPN instead of ALPN - but NPN is not widely used. It also requires an application configuration or programming error. Finally, this issue would not typically be under attacker control making active exploitation unlikely. The FIPS modules in 3.3, 3.2, 3.1 and 3.0 are not affected by this issue. Due to the low severity of this issue we are not issuing new releases of OpenSSL at this time. The fix will be included in the next releases when they become available.

    Source: siemens_advisory, BSI CSAF, BSI WID Portal, cvelistv5, NVD (NIST), redhat_csaf, Microsoft Security Update Guide, CVE.org (MITRE), ENISA EUVD, Ubuntu Security Notices

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    OpenSSLOpenSSL
    • 1.1.1 – < 1.1.1za
    • 3.2.0 – < 3.2.3
    • 3.1.0 – < 3.1.7
    • 3.3.0 – < 3.3.2
    • 3.0.0 – < 3.0.15
    • 1.0.2 – < 1.0.2zk
    • 1.1.1za
    • 3.2.3
    • 3.1.7
    • 3.3.2
    • 3.0.15
    • 1.0.2zk
    DellNetWorker
    • < 19.14
    • 19.14
    DellPowerEdge
    • T40
    • —
    DellPowerProtect Data Domain
    • < 8.4.0.0
    • < 8.3.1.10
    • < 7.13.1.40
    • < 7.10.1.70
    • 8.4.0.0
    • 8.3.1.10
    • 7.13.1.40
    • 7.10.1.70
    DellPowerScale OneFS
    • < 13.2.3
    • 13.2.3
    HitachiOps Center
    • < 11.0.3-00
    • 11.0.3-00
    HPEHP-UX OpenSSL Software
    • < A.03.00.15.001
    • A.03.00.15.001
    IBMAIX
    • 7.2
    • 7.3
    • —
    • —
    IBMApp Connect Enterprise
    • Certified Container
    • —
    IBMCognos Analytics
    • <11.2.4 FP7
    • < 12.1.2
    • <12.0.4 FP2
    • —
    • 12.1.2
    • —
    IBMInfoSphere Information Server
    • 11.7
    • —
    IBMPower Hardware Management Console
    • v10
    • —
    IBMQRadar SIEM
    • <7.5.0 UP10 IF01
    • —
    IBMRational Build Forge
    • < 8.0.0.27
    • 8.0.0.27
    IBMRational ClearCase
    • < 10.0.1.3
    • < 9.1.0.8
    • < 11.0.0.3
    • 10.0.1.3
    • 9.1.0.8
    • 11.0.0.3
    IBMRational ClearQuest
    • < 10.0.7
    • <Fix Pack 8 (9.1.0.8) for 9.1
    • 10.0.7
    • —
    IBMSecurity Guardium
    • 12
    • —
    IBMSpectrum Protect Plus
    • < 10.1.17
    • 10.1.17
    IBMStorage Scale System
    • < 6.2.3.0
    • < 6.1.9.7
    • 6.2.3.0
    • 6.1.9.7
    IBMVIOS
    • 4.1
    • 3.1
    • —
    • —
    InsydeUEFI Firmware
    • < RV24.06.3
    • < RV23.08.1
    • RV24.06.3
    • RV23.08.1
    Open SourceOpenSSL
    • < 3.2.3
    • < 3.1.7
    • < 1.1.1za
    • < 3.0.15
    • < 3.3.2
    • < 1.0.2zk
    • 3.2.3
    • 3.1.7
    • 1.1.1za
    • 3.0.15
    • 3.3.2
    • 1.0.2zk
    OracleCommunications
    • 24.2.5
    • 24.1.0
    • 22.4.0
    • 24.2.0
    • —
    • —
    • —
    • —

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxubuntuopensslfocal
    Linuxubuntuopenssljammy
    Linuxubuntuopensslnoble

    Weakness classes (CWE)

    • CWE-125Out-of-bounds Read

      Base

      The product reads data past the end, or before the beginning, of the intended buffer.

      Entry at MITRE CWE-125

    References & sources

    Changes to this CVE

    Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).

    1. Record modifiedopenssl.org

      Show 14 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Referenceadded
      —
      https://github.com/openssl/openssl/commit/4ada436a1946cbb24db5ab4ca082b69c1bc10f37
      Referenceadded
      —
      https://github.com/openssl/openssl/commit/99fb785a5f85315b95288921a321a935ea29a51e
      Referenceadded
      —
      https://github.com/openssl/openssl/commit/cf6f91f6121f4db167405db2f0de410a456f260c
      Referenceadded
      —
      https://github.com/openssl/openssl/commit/e86ac436f0bd54d4517745483e2315650fae7b2c
      Referenceadded
      —
      https://github.openssl.org/openssl/extended-releases/commit/9947251413065a05189a63c9b7a6c1d4e224c21c
      Referenceadded
      —
      https://github.openssl.org/openssl/extended-releases/commit/b78ec0824da857223486660177d3b1f255c65d87
      Referenceadded
      —
      https://www.openssl.org/news/secadv/20240627.txt
      Referenceremoved
      https://github.com/openssl/openssl/commit/4ada436a1946cbb24db5ab4ca082b69c1bc10f37
      —
      Referenceremoved
      https://github.com/openssl/openssl/commit/99fb785a5f85315b95288921a321a935ea29a51e
      —
      Referenceremoved
      https://github.com/openssl/openssl/commit/cf6f91f6121f4db167405db2f0de410a456f260c
      —
      Referenceremoved
      https://github.com/openssl/openssl/commit/e86ac436f0bd54d4517745483e2315650fae7b2c
      —
      Referenceremoved
      https://github.openssl.org/openssl/extended-releases/commit/9947251413065a05189a63c9b7a6c1d4e224c21c
      —
      Referenceremoved
      https://github.openssl.org/openssl/extended-releases/commit/b78ec0824da857223486660177d3b1f255c65d87
      —
      Referenceremoved
      https://www.openssl.org/news/secadv/20240627.txt
      —

      Source identifier: openssl-security@openssl.org

    2. Record modifiedCVE Program

      Show 30 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Referenceadded
      —
      http://www.openwall.com/lists/oss-security/2024/06/27/1
      Referenceadded
      —
      http://www.openwall.com/lists/oss-security/2024/06/28/4
      Referenceadded
      —
      http://www.openwall.com/lists/oss-security/2024/08/15/1
      Referenceadded
      —
      https://github.com/openssl/openssl/commit/4ada436a1946cbb24db5ab4ca082b69c1bc10f37
      Referenceadded
      —
      https://github.com/openssl/openssl/commit/99fb785a5f85315b95288921a321a935ea29a51e
      Referenceadded
      —
      https://github.com/openssl/openssl/commit/cf6f91f6121f4db167405db2f0de410a456f260c
      Referenceadded
      —
      https://github.com/openssl/openssl/commit/e86ac436f0bd54d4517745483e2315650fae7b2c
      Referenceadded
      —
      https://github.openssl.org/openssl/extended-releases/commit/9947251413065a05189a63c9b7a6c1d4e224c21c
      Referenceadded
      —
      https://github.openssl.org/openssl/extended-releases/commit/b78ec0824da857223486660177d3b1f255c65d87
      Referenceadded
      —
      https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html
      Referenceadded
      —
      https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html
      Referenceadded
      —
      https://security.netapp.com/advisory/ntap-20240712-0005/
      Referenceadded
      —
      https://security.netapp.com/advisory/ntap-20241025-0006/
      Referenceadded
      —
      https://security.netapp.com/advisory/ntap-20241025-0010/
      Referenceadded
      —
      https://www.openssl.org/news/secadv/20240627.txt
      Referenceremoved
      http://www.openwall.com/lists/oss-security/2024/06/27/1
      —
      Referenceremoved
      http://www.openwall.com/lists/oss-security/2024/06/28/4
      —
      Referenceremoved
      http://www.openwall.com/lists/oss-security/2024/08/15/1
      —
      Referenceremoved
      https://github.com/openssl/openssl/commit/4ada436a1946cbb24db5ab4ca082b69c1bc10f37
      —
      Referenceremoved
      https://github.com/openssl/openssl/commit/99fb785a5f85315b95288921a321a935ea29a51e
      —
      Referenceremoved
      https://github.com/openssl/openssl/commit/cf6f91f6121f4db167405db2f0de410a456f260c
      —
      Referenceremoved
      https://github.com/openssl/openssl/commit/e86ac436f0bd54d4517745483e2315650fae7b2c
      —
      Referenceremoved
      https://github.openssl.org/openssl/extended-releases/commit/9947251413065a05189a63c9b7a6c1d4e224c21c
      —
      Referenceremoved
      https://github.openssl.org/openssl/extended-releases/commit/b78ec0824da857223486660177d3b1f255c65d87
      —
      Referenceremoved
      https://lists.debian.org/debian-lts-announce/2024/10/msg00033.html
      —
      Referenceremoved
      https://lists.debian.org/debian-lts-announce/2024/11/msg00000.html
      —
      Referenceremoved
      https://security.netapp.com/advisory/ntap-20240712-0005/
      —
      Referenceremoved
      https://security.netapp.com/advisory/ntap-20241025-0006/
      —
      Referenceremoved
      https://security.netapp.com/advisory/ntap-20241025-0010/
      —
      Referenceremoved
      https://www.openssl.org/news/secadv/20240627.txt
      —

      Source identifier: af854a3a-2127-422b-91ae-364da2661108

    3. Record modifiedSiemens ADP

      Show 13 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Affected versions (publisher)added
      —
      Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2024/5xxx/CVE-2024-5535.json">CVE-2024-5535</a>
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-265688.html
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-277137.html
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-398330.html
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-613116.html
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-769027.html
      Referenceadded
      —
      https://cert-portal.siemens.com/productcert/html/ssa-915275.html
      Referenceremoved
      https://cert-portal.siemens.com/productcert/html/ssa-265688.html
      —
      Referenceremoved
      https://cert-portal.siemens.com/productcert/html/ssa-277137.html
      —
      Referenceremoved
      https://cert-portal.siemens.com/productcert/html/ssa-398330.html
      —
      Referenceremoved
      https://cert-portal.siemens.com/productcert/html/ssa-613116.html
      —
      Referenceremoved
      https://cert-portal.siemens.com/productcert/html/ssa-769027.html
      —
      Referenceremoved
      https://cert-portal.siemens.com/productcert/html/ssa-915275.html
      —

      Source identifier: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2024-5535
    <a href="https://intel.neosec.eu/en/cve/CVE-2024-5535"><img src="https://intel.neosec.eu/badge/cve/CVE-2024-5535.svg?lang=en" alt="CVE-2024-5535 – NEOSEC Intel" height="20"></a>