{"schemaVersion":3,"id":"CVE-2021-34141","aliases":["GHSA-fpfv-jqm9-f5jm","PYSEC-2021-855","UBUNTU-CVE-2021-34141","DEBIAN-CVE-2021-34141"],"status":"published","duplicateOf":null,"title":null,"description":"An incomplete string comparison in the numpy.core component in NumPy before 1.22.0 allows attackers to trigger slightly incorrect copying by constructing specific string objects. NOTE: the vendor states that this reported code behavior is \"completely harmless.\"","dates":{"published":"2021-12-17T18:43:17.000Z","modified":"2026-10-08T21:03:14.497Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01679,"percentile":0.76701,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.11799999999999988,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01561},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01679,"percentile":0.76701}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01561,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01679,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01679,"percentile":0.76701}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_NUMPY_NUMPY","name":"Numpy","source":"github","url":"https://github.com/numpy/numpy/issues/9560#issuecomment-322395292","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-697","name":"Incorrect Comparison","description":"The product compares two entities in a security-relevant context, but the comparison is incorrect.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/697.html"}],"affected":[{"vendor":"debian","product":"numpy","name":"numpy","label":"numpy","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/numpy","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"numpy","name":"numpy","label":"numpy","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/numpy","purlType":"deb","versions":[{"text":"< 1:1.17.4-5ubuntu3.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1:1.21.5-1ubuntu22.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:1.17.4-5ubuntu3.1 | < 1:1.21.5-1ubuntu22.04.1","eol":null,"hubHref":null},{"vendor":"numpy","product":"numpy","name":"numpy","label":"numpy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.22.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.22.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"numpy","label":"NumPy","category":"framework"}},"hubHref":"/vendor/numpy/numpy"},{"vendor":"oracle","product":"communications_cloud_native_core_policy","name":"communications cloud native core policy","label":"communications_cloud_native_core_policy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"22.1.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"22.1.3","eol":null,"hubHref":"/vendor/oracle/communications_cloud_native_core_policy"},{"vendor":"PyPI","product":"numpy","name":"numpy","label":"numpy","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/numpy","purlType":"pypi","versions":[{"text":"< 1.22","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.9.0, < 1.10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.22 | ≥ 1.9.0, < 1.10.0","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/numpy/numpy/issues/18993","label":"github.com/numpy/numpy/issues/18993","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","label":"www.oracle.com/security-alerts/cpujul2022.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-34141","label":"nvd.nist.gov/vuln/detail/CVE-2021-34141","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/numpy/numpy/issues/18993#issuecomment-1010735102","label":"github.com/numpy/numpy/issues/18993","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-fpfv-jqm9-f5jm","label":"github.com/advisories/GHSA-fpfv-jqm9-f5jm","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/numpy/numpy","label":"github.com/numpy/numpy","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-855.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-855.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-34141","label":"ubuntu.com/security/CVE-2021-34141","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/numpy/numpy/commit/eeef9d4646103c3b1afd3085f1393f2b3f9575b2","label":"github.com/numpy/numpy/commit/eeef9d4646103c3b1afd3085f1393f2b3f9575b2","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5763-1","label":"ubuntu.com/security/notices/USN-5763-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-34141","label":"www.cve.org/CVERecord?id=CVE-2021-34141","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-34141","label":"security-tracker.debian.org/tracker/CVE-2021-34141","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-5763-1"],"duplicates":[],"related":["USN-5763-1"]},"timeline":[{"kind":"published","date":"2021-12-17T18:43:17.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T21:03:14.497Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T15:01:14.779Z","stale":false,"partial":false}}