Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-12083

The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, can violate Rust's safety guarantees and cause memory unsafety. If the `Error::type_id` method is overridden then any type can be safely cast to any other type, causing memory safety vulnerabilities in safe code (e.g., out-of-bounds write or read). Code that does not manually implement Error::type_id is unaffected.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-12083
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 05:27 UTC · Revision 1

Source evidence

CVE-2019-12083

core-osv · Original source

Published 13 May 2019, 20:29 UTC

The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, can violate Rust's safety guarantees and cause memory unsafety. If the `Error::type_id` method is overridden then any type can be safely cast to any other type, causing memory safety vulnerabilities in safe code (e.g., out-of-bounds write or read). Code that does not manually implement Error::type_id is unaffected.

osv:CVE-2019-12083
Complete source record
{
  "id": "bc6992793735793498ccd64f2fcc27bdf8847dd23423806560245f640be71e07",
  "url": "https://osv.dev/vulnerability/CVE-2019-12083",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-12083",
    "summary": "The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, can violate Rust's safety guarantees and cause memory unsafety. If the `Error::type_id` method is overridden then any type can be safely cast to any other type, causing memory safety vulnerabilities in safe code (e.g., out-of-bounds write or read). Code that does not manually implement Error::type_id is unaffected.",
    "evidence": "osv:CVE-2019-12083",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2019-12083",
      "aliases": [
        "CVE-2019-12083"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rust-lang/rust",
              "type": "GIT",
              "events": [
                {
                  "introduced": "91856ed52c58aa5ba66a015354d1cc69e9779bdf"
                },
                {
                  "fixed": "6c2484dc3c532c052f159264e970278d8b77cdc9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.34.0"
                      },
                      {
                        "fixed": "1.34.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.34.1",
            "1.34.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12083.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:29.053834091Z",
      "provider": "osv",
      "references": [
        "https://groups.google.com/forum/#%21topic/rustlang-security-announcements/aZabeCMUv70",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HG47HYH3AQTUMBUMX3S3G5DNAY4CBW6N/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K6T4BNA5KQYJRIKIGGBOGBMR7TRXPHLR/",
        "https://blog.rust-lang.org/2019/05/13/Security-advisory.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "rust-lang:rust",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.34.0"
                  },
                  {
                    "fixed": "1.34.2"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "29"
                  },
                  {
                    "last_affected": "29"
                  },
                  {
                    "introduced": "30"
                  },
                  {
                    "last_affected": "30"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:leap",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "15.1"
                  },
                  {
                    "last_affected": "15.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-12083",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 432208,
  "published_at": "2019-05-13T20:29:02.913+00:00"
}