CVE-2013-7040
Vulnerability from cvelistv5
Published
2014-05-19 14:00
Modified
2024-08-06 17:53
Severity ?
Summary
Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash values, which causes it to compute hash values without restricting the ability to trigger hash collisions predictably and makes it easier for context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1150.
Impacted products
n/an/a
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-06T17:53:45.848Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "name": "64194",
            "tags": [
              "vdb-entry",
              "x_refsource_BID",
              "x_transferred"
            ],
            "url": "http://www.securityfocus.com/bid/64194"
          },
          {
            "name": "[oss-security] 20131209 Re: CPython hash secret can be recoved remotely",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2013/12/09/13"
          },
          {
            "name": "[oss-security] 20131209 CPython hash secret can be recoved remotely",
            "tags": [
              "mailing-list",
              "x_refsource_MLIST",
              "x_transferred"
            ],
            "url": "http://www.openwall.com/lists/oss-security/2013/12/09/3"
          },
          {
            "name": "APPLE-SA-2015-08-13-2",
            "tags": [
              "vendor-advisory",
              "x_refsource_APPLE",
              "x_transferred"
            ],
            "url": "http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html"
          },
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "http://bugs.python.org/issue14621"
          },
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "https://support.apple.com/kb/HT205031"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "datePublic": "2012-04-19T00:00:00",
      "descriptions": [
        {
          "lang": "en",
          "value": "Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash values, which causes it to compute hash values without restricting the ability to trigger hash collisions predictably and makes it easier for context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1150."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "n/a",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2016-11-25T19:57:01",
        "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "shortName": "mitre"
      },
      "references": [
        {
          "name": "64194",
          "tags": [
            "vdb-entry",
            "x_refsource_BID"
          ],
          "url": "http://www.securityfocus.com/bid/64194"
        },
        {
          "name": "[oss-security] 20131209 Re: CPython hash secret can be recoved remotely",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST"
          ],
          "url": "http://www.openwall.com/lists/oss-security/2013/12/09/13"
        },
        {
          "name": "[oss-security] 20131209 CPython hash secret can be recoved remotely",
          "tags": [
            "mailing-list",
            "x_refsource_MLIST"
          ],
          "url": "http://www.openwall.com/lists/oss-security/2013/12/09/3"
        },
        {
          "name": "APPLE-SA-2015-08-13-2",
          "tags": [
            "vendor-advisory",
            "x_refsource_APPLE"
          ],
          "url": "http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html"
        },
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "http://bugs.python.org/issue14621"
        },
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://support.apple.com/kb/HT205031"
        }
      ],
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2013-7040",
          "STATE": "PUBLIC"
        },
        "affects": {
          "vendor": {
            "vendor_data": [
              {
                "product": {
                  "product_data": [
                    {
                      "product_name": "n/a",
                      "version": {
                        "version_data": [
                          {
                            "version_value": "n/a"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vendor_name": "n/a"
              }
            ]
          }
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "eng",
              "value": "Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash values, which causes it to compute hash values without restricting the ability to trigger hash collisions predictably and makes it easier for context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1150."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "n/a"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "64194",
              "refsource": "BID",
              "url": "http://www.securityfocus.com/bid/64194"
            },
            {
              "name": "[oss-security] 20131209 Re: CPython hash secret can be recoved remotely",
              "refsource": "MLIST",
              "url": "http://www.openwall.com/lists/oss-security/2013/12/09/13"
            },
            {
              "name": "[oss-security] 20131209 CPython hash secret can be recoved remotely",
              "refsource": "MLIST",
              "url": "http://www.openwall.com/lists/oss-security/2013/12/09/3"
            },
            {
              "name": "APPLE-SA-2015-08-13-2",
              "refsource": "APPLE",
              "url": "http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html"
            },
            {
              "name": "http://bugs.python.org/issue14621",
              "refsource": "CONFIRM",
              "url": "http://bugs.python.org/issue14621"
            },
            {
              "name": "https://support.apple.com/kb/HT205031",
              "refsource": "CONFIRM",
              "url": "https://support.apple.com/kb/HT205031"
            }
          ]
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
    "assignerShortName": "mitre",
    "cveId": "CVE-2013-7040",
    "datePublished": "2014-05-19T14:00:00",
    "dateReserved": "2013-12-09T00:00:00",
    "dateUpdated": "2024-08-06T17:53:45.848Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2013-7040\",\"sourceIdentifier\":\"cve@mitre.org\",\"published\":\"2014-05-19T14:55:09.987\",\"lastModified\":\"2019-10-25T11:53:59.117\",\"vulnStatus\":\"Modified\",\"descriptions\":[{\"lang\":\"en\",\"value\":\"Python 2.7 before 3.4 only uses the last eight bits of the prefix to randomize hash values, which causes it to compute hash values without restricting the ability to trigger hash collisions predictably and makes it easier for context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table.  NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1150.\"},{\"lang\":\"es\",\"value\":\"Python 2.7 anterior a 3.4 solamente utiliza las \u00faltimas ocho partes del prefijo para asignar valores de hash de forma aleatoria, lo que causa que calcule valores de hash sin restringir la habilidad de provocar colisiones de hash de forma previsible y facilita a atacantes dependientes de contexto causar una denegaci\u00f3n de servicio (consumo de CPU) a trav\u00e9s de entradas manipuladas hacia una aplicaci\u00f3n que mantiene una tabla de hash. NOTA: esta vulnerabilidad existe debido a una soluci\u00f3n incompleta para CVE-2012-1150.\"}],\"metrics\":{\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:N/AC:M/Au:N/C:N/I:N/A:P\",\"accessVector\":\"NETWORK\",\"accessComplexity\":\"MEDIUM\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"PARTIAL\",\"baseScore\":4.3},\"baseSeverity\":\"MEDIUM\",\"exploitabilityScore\":8.6,\"impactScore\":2.9,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-310\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*\",\"versionEndIncluding\":\"10.10.4\",\"matchCriteriaId\":\"7883E465-932D-4C11-AA54-97E44181F906\"}]}]},{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"8CE2063E-5B74-4731-885F-80D2D7B15604\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"FC647F82-9679-4B26-AFF1-1B43B0AF18B5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"046BCC55-F166-4C31-AB2B-815A0DFA2BEE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6A3CABCB-9FA8-4B13-8CF1-AA89B9E9B7E7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"41925551-AC82-4EEA-836F-56E280114765\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.5:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A213A57A-85BB-4B12-B394-3FF5459797EF\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.6:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"76D82E41-8B87-4D6E-9E59-C12E37E30965\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.7:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"0778B0B9-4918-49A9-944F-08FC337EE090\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.1150:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"0D00809F-8D47-428E-9347-2BF36A61901A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.2150:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"CC94B908-E405-4BD2-BE36-2BB90238F7EE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"FC0C702F-59E0-40AB-BA95-8F0803AB0550\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"3190C547-7230-476C-A43F-641FE7B891EB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"74AC7EE5-F01D-4F28-80D1-4076B7B24BA6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"2B547525-E0DB-4D64-8ED1-AF3F1B6FF65F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"19064C18-1CD7-4F10-8065-4B900BB31F83\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"B1997CB6-FD72-4B13-915A-7500AA06F4B1\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"06A1811C-4E97-4226-8335-ADF0827A03B3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"BF2C50D1-187B-4E98-BA02-008D0ED4C220\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"87845E79-F4A3-4390-9ACF-A14E86BCDB10\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2:alpha:*:*:*:*:*:*\",\"matchCriteriaId\":\"E2C8F3C4-91AB-4AE3-A2FB-A093F97742FD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"B511BDFA-D1DC-4E50-9A08-66DA05947A43\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"0708E98D-5C84-47DC-89E5-8BB7CFFB12A7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6595C4F3-5683-4889-AD30-83840F6A58D1\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"027FD902-9B08-4EDF-9F83-314FBF0583ED\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"89FB9D30-8559-4F57-9D20-DC603765B346\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"957FCB4A-32D0-4449-8995-80144CC713B4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.2.2150:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"F236E583-D23D-4769-8A25-EBFC930E4798\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6DF7665B-3A10-46D1-B486-AFC9ED6C0B8A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3:beta2:*:*:*:*:*:*\",\"matchCriteriaId\":\"0E2DAB9D-5D7D-40ED-8110-E3FDF7AE0729\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"875ABC97-2783-41DA-AB9F-9E6F0870B74C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"5262D28D-204C-41E8-BC4D-27372E366295\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.1:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"0D553F40-92C2-4537-AF74-5F9307E20AE4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"121225D0-C5DA-4F26-93B8-3D56BC1D38B1\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"52DD66F7-FE7B-4C1C-B07B-F9E4CEEA7AFD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.3:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"5D540913-0EEF-413B-8AFD-82E858844FD6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.3:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"BFD75566-C783-4B16-9FF1-4AC2670310F2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6C2C18A1-F202-4E48-8E29-F250AD1A6737\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.4:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"C146E248-4A45-42DD-A09A-66C47A40282D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.5:-:*:*:*:*:*:*\",\"matchCriteriaId\":\"40A22D40-A174-4C5E-9E68-6D0E2D816916\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.5:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"A64A4D69-5526-4EDC-A759-F06A80DE582D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:3.3.5:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"182C8567-8F04-440F-8B3F-4F6018AAAFC4\"}]}]}],\"references\":[{\"url\":\"http://bugs.python.org/issue14621\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://www.openwall.com/lists/oss-security/2013/12/09/13\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://www.openwall.com/lists/oss-security/2013/12/09/3\",\"source\":\"cve@mitre.org\"},{\"url\":\"http://www.securityfocus.com/bid/64194\",\"source\":\"cve@mitre.org\"},{\"url\":\"https://support.apple.com/kb/HT205031\",\"source\":\"cve@mitre.org\",\"tags\":[\"Vendor Advisory\"]}]}}"
  }
}


Log in or create an account to share your comment.




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.