GHSA-F95P-4CV5-8W8X

Vulnerability from github – Published: 2024-12-04 18:26 – Updated: 2024-12-04 18:26
VLAI?
Summary
linkme fails to ensure slice elements match the slice's declared type
Details

Affected versions allow populating a DistributedSlice of T with elements of an arbitrary other type that coerces to T. For example, elements of type &&str could end up in a slice of type [&str], since &&str coerces to &str via a deref coercion.

The flaw was corrected by implementing typechecking for distributed slice elements in such a way that coercion no longer occurs. The element's type must be a subtype of the slice's declared element type.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "linkme"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.3.24"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-04T18:26:13Z",
    "nvd_published_at": null,
    "severity": "LOW"
  },
  "details": "Affected versions allow populating a DistributedSlice of T with elements of an arbitrary other type that coerces to T. For example, elements of type `\u0026\u0026str` could end up in a slice of type `[\u0026str]`, since `\u0026\u0026str` coerces to `\u0026str` via a deref coercion.\n\nThe flaw was corrected by implementing typechecking for distributed slice elements in such a way that coercion no longer occurs. The element\u0027s type must be a subtype of the slice\u0027s declared element type.",
  "id": "GHSA-f95p-4cv5-8w8x",
  "modified": "2024-12-04T18:26:13Z",
  "published": "2024-12-04T18:26:13Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/dtolnay/linkme/issues/82"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/dtolnay/linkme"
    },
    {
      "type": "WEB",
      "url": "https://rustsec.org/advisories/RUSTSEC-2024-0407.html"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [],
  "summary": "linkme fails to ensure slice elements match the slice\u0027s declared type"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…