cve-2024-5642
Vulnerability from cvelistv5
Published
2024-06-27 21:05
Modified
2025-02-13 17:54
Summary
CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).
Impacted products
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  cvssV3_1: {
                     attackComplexity: "LOW",
                     attackVector: "NETWORK",
                     availabilityImpact: "LOW",
                     baseScore: 6.5,
                     baseSeverity: "MEDIUM",
                     confidentialityImpact: "LOW",
                     integrityImpact: "NONE",
                     privilegesRequired: "NONE",
                     scope: "UNCHANGED",
                     userInteraction: "NONE",
                     vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L",
                     version: "3.1",
                  },
               },
               {
                  other: {
                     content: {
                        id: "CVE-2024-5642",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-06-28T13:47:34.169947Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            problemTypes: [
               {
                  descriptions: [
                     {
                        description: "CWE-noinfo Not enough information",
                        lang: "en",
                        type: "CWE",
                     },
                  ],
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-11-06T20:14:30.590Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
         {
            providerMetadata: {
               dateUpdated: "2024-08-01T21:18:06.642Z",
               orgId: "af854a3a-2127-422b-91ae-364da2661108",
               shortName: "CVE",
            },
            references: [
               {
                  tags: [
                     "third-party-advisory",
                     "x_transferred",
                  ],
                  url: "https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html",
               },
               {
                  tags: [
                     "mitigation",
                     "x_transferred",
                  ],
                  url: "https://github.com/python/cpython/pull/23014",
               },
               {
                  tags: [
                     "vendor-advisory",
                     "x_transferred",
                  ],
                  url: "https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/",
               },
               {
                  tags: [
                     "patch",
                     "x_transferred",
                  ],
                  url: "https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "http://www.openwall.com/lists/oss-security/2024/06/28/4",
               },
               {
                  tags: [
                     "issue-tracking",
                     "x_transferred",
                  ],
                  url: "https://github.com/python/cpython/issues/121227",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://security.netapp.com/advisory/ntap-20240726-0005/",
               },
            ],
            title: "CVE Program Container",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "CPython",
               repo: "https://github.com/python/cpython",
               vendor: "Python Software Foundation",
               versions: [
                  {
                     lessThan: "3.10.0b1",
                     status: "affected",
                     version: "0",
                     versionType: "python",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               supportingMedia: [
                  {
                     base64: false,
                     type: "text/html",
                     value: "CPython 3.9 and earlier doesn't disallow configuring an empty list (\"[]\") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see <span style=\"background-color: oklab(0.0852327 0.00000386313 0.00000170618 / 0.06);\">CVE</span><span style=\"background-color: oklab(0.0852327 0.00000386313 0.00000170618 / 0.06);\">-2024</span><span style=\"background-color: oklab(0.0852327 0.00000386313 0.00000170618 / 0.06);\">-5535</span> for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).<br>",
                  },
               ],
               value: "CPython 3.9 and earlier doesn't disallow configuring an empty list (\"[]\") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-07-28T14:06:06.558Z",
            orgId: "28c92f92-d60d-412d-b760-e73465c3df22",
            shortName: "PSF",
         },
         references: [
            {
               tags: [
                  "third-party-advisory",
               ],
               url: "https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html",
            },
            {
               tags: [
                  "mitigation",
               ],
               url: "https://github.com/python/cpython/pull/23014",
            },
            {
               tags: [
                  "vendor-advisory",
               ],
               url: "https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/",
            },
            {
               tags: [
                  "patch",
               ],
               url: "https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e",
            },
            {
               url: "http://www.openwall.com/lists/oss-security/2024/06/28/4",
            },
            {
               tags: [
                  "issue-tracking",
               ],
               url: "https://github.com/python/cpython/issues/121227",
            },
            {
               url: "https://security.netapp.com/advisory/ntap-20240726-0005/",
            },
         ],
         source: {
            discovery: "UNKNOWN",
         },
         title: "Buffer overread when using an empty list with SSLContext.set_npn_protocols()",
         x_generator: {
            engine: "Vulnogram 0.2.0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "28c92f92-d60d-412d-b760-e73465c3df22",
      assignerShortName: "PSF",
      cveId: "CVE-2024-5642",
      datePublished: "2024-06-27T21:05:31.281Z",
      dateReserved: "2024-06-04T18:40:21.539Z",
      dateUpdated: "2025-02-13T17:54:23.641Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      fkie_nvd: {
         descriptions: "[{\"lang\": \"en\", \"value\": \"CPython 3.9 and earlier doesn't disallow configuring an empty list (\\\"[]\\\") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).\"}, {\"lang\": \"es\", \"value\": \"CPython 3.9 y versiones anteriores no permiten la configuraci\\u00f3n de una lista vac\\u00eda (\\\"[]\\\") para SSLContext.set_npn_protocols(), que es un valor no v\\u00e1lido para la API OpenSSL subyacente. Esto da como resultado una lectura excesiva del b\\u00fafer cuando se utiliza NPN (consulte CVE-2024-5535 para OpenSSL). Esta vulnerabilidad es de baja gravedad debido a que NPN no se usa ampliamente y especificar una lista vac\\u00eda probablemente sea poco com\\u00fan en la pr\\u00e1ctica (normalmente se configurar\\u00eda un nombre de protocolo).\"}]",
         id: "CVE-2024-5642",
         lastModified: "2024-11-21T09:48:04.713",
         metrics: "{\"cvssMetricV31\": [{\"source\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L\", \"baseScore\": 6.5, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"LOW\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"LOW\"}, \"exploitabilityScore\": 3.9, \"impactScore\": 2.5}]}",
         published: "2024-06-27T21:15:16.070",
         references: "[{\"url\": \"http://www.openwall.com/lists/oss-security/2024/06/28/4\", \"source\": \"cna@python.org\"}, {\"url\": \"https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e\", \"source\": \"cna@python.org\"}, {\"url\": \"https://github.com/python/cpython/issues/121227\", \"source\": \"cna@python.org\"}, {\"url\": \"https://github.com/python/cpython/pull/23014\", \"source\": \"cna@python.org\"}, {\"url\": \"https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html\", \"source\": \"cna@python.org\"}, {\"url\": \"https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/\", \"source\": \"cna@python.org\"}, {\"url\": \"https://security.netapp.com/advisory/ntap-20240726-0005/\", \"source\": \"cna@python.org\"}, {\"url\": \"http://www.openwall.com/lists/oss-security/2024/06/28/4\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/python/cpython/issues/121227\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://github.com/python/cpython/pull/23014\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://security.netapp.com/advisory/ntap-20240726-0005/\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
         sourceIdentifier: "cna@python.org",
         vulnStatus: "Awaiting Analysis",
      },
      nvd: "{\"cve\":{\"id\":\"CVE-2024-5642\",\"sourceIdentifier\":\"cna@python.org\",\"published\":\"2024-06-27T21:15:16.070\",\"lastModified\":\"2024-11-21T09:48:04.713\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"CPython 3.9 and earlier doesn't disallow configuring an empty list (\\\"[]\\\") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).\"},{\"lang\":\"es\",\"value\":\"CPython 3.9 y versiones anteriores no permiten la configuración de una lista vacía (\\\"[]\\\") para SSLContext.set_npn_protocols(), que es un valor no válido para la API OpenSSL subyacente. Esto da como resultado una lectura excesiva del búfer cuando se utiliza NPN (consulte CVE-2024-5535 para OpenSSL). Esta vulnerabilidad es de baja gravedad debido a que NPN no se usa ampliamente y especificar una lista vacía probablemente sea poco común en la práctica (normalmente se configuraría un nombre de protocolo).\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L\",\"baseScore\":6.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"LOW\"},\"exploitabilityScore\":3.9,\"impactScore\":2.5}]},\"references\":[{\"url\":\"http://www.openwall.com/lists/oss-security/2024/06/28/4\",\"source\":\"cna@python.org\"},{\"url\":\"https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e\",\"source\":\"cna@python.org\"},{\"url\":\"https://github.com/python/cpython/issues/121227\",\"source\":\"cna@python.org\"},{\"url\":\"https://github.com/python/cpython/pull/23014\",\"source\":\"cna@python.org\"},{\"url\":\"https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html\",\"source\":\"cna@python.org\"},{\"url\":\"https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/\",\"source\":\"cna@python.org\"},{\"url\":\"https://security.netapp.com/advisory/ntap-20240726-0005/\",\"source\":\"cna@python.org\"},{\"url\":\"http://www.openwall.com/lists/oss-security/2024/06/28/4\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/python/cpython/issues/121227\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://github.com/python/cpython/pull/23014\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://security.netapp.com/advisory/ntap-20240726-0005/\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html\", \"tags\": [\"third-party-advisory\", \"x_transferred\"]}, {\"url\": \"https://github.com/python/cpython/pull/23014\", \"tags\": [\"mitigation\", \"x_transferred\"]}, {\"url\": \"https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/\", \"tags\": [\"vendor-advisory\", \"x_transferred\"]}, {\"url\": \"https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e\", \"tags\": [\"patch\", \"x_transferred\"]}, {\"url\": \"http://www.openwall.com/lists/oss-security/2024/06/28/4\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://github.com/python/cpython/issues/121227\", \"tags\": [\"issue-tracking\", \"x_transferred\"]}, {\"url\": \"https://security.netapp.com/advisory/ntap-20240726-0005/\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-01T21:18:06.642Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"LOW\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"LOW\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-5642\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-06-28T13:47:34.169947Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"description\": \"CWE-noinfo Not enough information\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-06-28T13:47:40.782Z\"}}], \"cna\": {\"title\": \"Buffer overread when using an empty list with SSLContext.set_npn_protocols()\", \"source\": {\"discovery\": \"UNKNOWN\"}, \"affected\": [{\"repo\": \"https://github.com/python/cpython\", \"vendor\": \"Python Software Foundation\", \"product\": \"CPython\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"3.10.0b1\", \"versionType\": \"python\"}], \"defaultStatus\": \"unaffected\"}], \"references\": [{\"url\": \"https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html\", \"tags\": [\"third-party-advisory\"]}, {\"url\": \"https://github.com/python/cpython/pull/23014\", \"tags\": [\"mitigation\"]}, {\"url\": \"https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/\", \"tags\": [\"vendor-advisory\"]}, {\"url\": \"https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e\", \"tags\": [\"patch\"]}, {\"url\": \"http://www.openwall.com/lists/oss-security/2024/06/28/4\"}, {\"url\": \"https://github.com/python/cpython/issues/121227\", \"tags\": [\"issue-tracking\"]}, {\"url\": \"https://security.netapp.com/advisory/ntap-20240726-0005/\"}], \"x_generator\": {\"engine\": \"Vulnogram 0.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"CPython 3.9 and earlier doesn't disallow configuring an empty list (\\\"[]\\\") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).\", \"supportingMedia\": [{\"type\": \"text/html\", \"value\": \"CPython 3.9 and earlier doesn't disallow configuring an empty list (\\\"[]\\\") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see <span style=\\\"background-color: oklab(0.0852327 0.00000386313 0.00000170618 / 0.06);\\\">CVE</span><span style=\\\"background-color: oklab(0.0852327 0.00000386313 0.00000170618 / 0.06);\\\">-2024</span><span style=\\\"background-color: oklab(0.0852327 0.00000386313 0.00000170618 / 0.06);\\\">-5535</span> for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).<br>\", \"base64\": false}]}], \"providerMetadata\": {\"orgId\": \"28c92f92-d60d-412d-b760-e73465c3df22\", \"shortName\": \"PSF\", \"dateUpdated\": \"2024-07-01T13:51:32.404Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-5642\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-11-06T20:14:30.590Z\", \"dateReserved\": \"2024-06-04T18:40:21.539Z\", \"assignerOrgId\": \"28c92f92-d60d-412d-b760-e73465c3df22\", \"datePublished\": \"2024-06-27T21:05:31.281Z\", \"assignerShortName\": \"PSF\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.