Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-20004

In the standard library in Rust before 1.19.0, there is a synchronization problem in the MutexGuard object. MutexGuards can be used across threads with any types, allowing for memory safety issues through race conditions.

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

Source evidence

CVE-2017-20004

core-osv · Original source

Published 14 Apr 2021, 07:15 UTC

In the standard library in Rust before 1.19.0, there is a synchronization problem in the MutexGuard object. MutexGuards can be used across threads with any types, allowing for memory safety issues through race conditions.

osv:CVE-2017-20004
Complete source record
{
  "id": "beb498bf429351ce1faec1768c79b21d4323b0fd379d1ded4f91d270081af2aa",
  "url": "https://osv.dev/vulnerability/CVE-2017-20004",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-20004",
    "summary": "In the standard library in Rust before 1.19.0, there is a synchronization problem in the MutexGuard object. MutexGuards can be used across threads with any types, allowing for memory safety issues through race conditions.",
    "evidence": "osv:CVE-2017-20004",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2017-20004",
      "aliases": [
        "CVE-2017-20004"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rust-lang/rust",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0ade339411587887bf01bcfa2e9ae4414c8900d4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.19.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-2017-20004.json"
          }
        }
      ],
      "modified": "2026-10-24T10:47:32.738777645Z",
      "provider": "osv",
      "references": [
        "https://github.com/rust-lang/rust/issues/41622",
        "https://github.com/rust-lang/rust/pull/41624"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "rust-lang:rust",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "1.19.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2017-20004",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 441316,
  "published_at": "2021-04-14T07:15:11.493+00:00"
}