Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-36323

In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-36323
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:46 UTC · Revision 1

Source evidence

CVE-2020-36323

core-osv · Original source

Published 14 Apr 2021, 07:15 UTC

In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.

osv:CVE-2020-36323
Complete source record
{
  "id": "627d1f50445b61304abe1b8dfe47e1f61924950fc1b08a34d251f23e6276b796",
  "url": "https://osv.dev/vulnerability/CVE-2020-36323",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-36323",
    "summary": "In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.",
    "evidence": "osv:CVE-2020-36323",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-36323",
      "aliases": [
        "CVE-2020-36323"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rust-lang/rust",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "88f19c6dab716c6281af7602e30f413e809c5974"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.52.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.0-beta",
            "1.0.0-alpha.2",
            "1.0.0-alpha",
            "0.9",
            "0.8",
            "release-0.7",
            "0.7",
            "release-0.6",
            "0.6",
            "release-0.5",
            "0.5",
            "release-0.4",
            "0.4",
            "release-0.2",
            "0.2",
            "release-0.1",
            "0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-36323.json"
          }
        }
      ],
      "modified": "2026-10-24T10:50:06.268448959Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/",
        "https://github.com/rust-lang/rust/issues/80335",
        "https://github.com/rust-lang/rust/pull/81728",
        "https://github.com/rust-lang/rust/pull/81728#issuecomment-821549174",
        "https://github.com/rust-lang/rust/pull/81728#issuecomment-824904190"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "rust-lang:rust",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.52.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "32"
                  },
                  {
                    "last_affected": "32"
                  },
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-36323",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 441955,
  "published_at": "2021-04-14T07:15:12.087+00:00"
}