Skip to content
Heist/ feed
Back to feed
Medium

rust-lock-api — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2020-35913

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockReadGuard unsoundness.

Products
rust-lock-api
Affected versions
0.1.5-1, 0.3.1-1, 0.3.2-1, 0.3.3-1, 0.3.4-1, 0.4.11-1, 0.4.12-1, 0.4.13-1, 0.4.14-1, 0.4.5-1, 0.4.9-1
Fixed versions
Not specified
CVEs
CVE-2020-35913
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:38 UTC · Revision 1

Source evidence

UBUNTU-CVE-2020-35913

core-osv · Original source

Published 31 Dec 2020, 09:15 UTC

An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockReadGuard unsoundness.

osv:UBUNTU-CVE-2020-35913

rust-lock-api

Fixed versions: Not specified

rust-lock-api

Fixed versions: Not specified

rust-lock-api

Fixed versions: Not specified

rust-lock-api

Fixed versions: Not specified

rust-lock-api

Fixed versions: Not specified

rust-lock-api

Fixed versions: Not specified

Complete source record
{
  "id": "d77bc0607441fb2628d83f1d27d9ef4be40ac3a527700d80ddd9af1cc97ddb95",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-35913",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2020-35913",
    "summary": "An issue was discovered in the lock_api crate before 0.4.2 for Rust. A data race can occur because of RwLockReadGuard unsoundness.",
    "evidence": "osv:UBUNTU-CVE-2020-35913",
    "products": [
      {
        "name": {
          "value": "rust-lock-api",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.1.5-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.3.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.3.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.3.3-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-lock-api",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.4.5-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-lock-api",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.9-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.4.11-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-lock-api",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.12-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-lock-api",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.14-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "rust-lock-api",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4.12-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.4.13-1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.4.14-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2020-35913",
      "aliases": [
        "UBUNTU-CVE-2020-35913"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-lock-api",
            "purl": "pkg:deb/ubuntu/rust-lock-api?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.1.5-1",
            "0.3.1-1",
            "0.3.2-1",
            "0.3.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-35913.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-lock-api+owning-ref-dev",
                "binary_version": "0.3.3-1"
              },
              {
                "binary_name": "librust-lock-api+serde-dev",
                "binary_version": "0.3.3-1"
              },
              {
                "binary_name": "librust-lock-api-dev",
                "binary_version": "0.3.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-lock-api",
            "purl": "pkg:deb/ubuntu/rust-lock-api?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.3.4-1",
            "0.4.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-35913.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-lock-api+owning-ref-dev",
                "binary_version": "0.4.5-1"
              },
              {
                "binary_name": "librust-lock-api+serde-dev",
                "binary_version": "0.4.5-1"
              },
              {
                "binary_name": "librust-lock-api-dev",
                "binary_version": "0.4.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-lock-api",
            "purl": "pkg:deb/ubuntu/rust-lock-api?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.4.9-1",
            "0.4.11-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-35913.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-lock-api-dev",
                "binary_version": "0.4.11-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-lock-api",
            "purl": "pkg:deb/ubuntu/rust-lock-api?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.4.12-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-35913.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-lock-api-dev",
                "binary_version": "0.4.12-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-lock-api",
            "purl": "pkg:deb/ubuntu/rust-lock-api?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.4.14-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-35913.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-lock-api-dev",
                "binary_version": "0.4.14-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-lock-api",
            "purl": "pkg:deb/ubuntu/rust-lock-api?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.4.12-1",
            "0.4.13-1",
            "0.4.14-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-35913.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-lock-api-dev",
                "binary_version": "0.4.14-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:52.934459019Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-35913"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2020-35913",
        "https://rustsec.org/advisories/RUSTSEC-2020-0070.html",
        "https://github.com/Amanieu/parking_lot/pull/262",
        "https://www.cve.org/CVERecord?id=CVE-2020-35913"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-35913",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354209,
  "published_at": "2020-12-31T09:15:00+00:00"
}