rustsec-2020-0166
Vulnerability from osv_rustsec
Published
2020-09-04 12:00
Modified
2023-02-02 10:57
Summary
personnummer Input validation error
Details

Swedish personal identity is in the form of YYMMDD-XXXX

An issue arises from the regular expression allowing the first three digits in the last four digits of the personnummer to be 000, which is invalid.

To mitigate this without upgrading, a check on the last four digits can be made to make sure it's not 000x.

The affected version should not be relied on without the mitigation to check that the swedish personal identity number is valid.


{
  "affected": [
    {
      "database_specific": {
        "categories": [],
        "cvss": null,
        "informational": "notice"
      },
      "ecosystem_specific": {
        "affected_functions": null,
        "affects": {
          "arch": [],
          "functions": [],
          "os": []
        }
      },
      "package": {
        "ecosystem": "crates.io",
        "name": "personnummer",
        "purl": "pkg:cargo/personnummer"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.0.0-0"
            },
            {
              "fixed": "3.0.1"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": []
    }
  ],
  "aliases": [
    "GHSA-28r9-pq4c-wp3c"
  ],
  "database_specific": {
    "license": "CC0-1.0"
  },
  "details": "Swedish personal identity is in the form of YYMMDD-XXXX\n\nAn issue arises from the regular expression allowing the first three digits in\nthe last four digits of the personnummer to be 000, which is invalid.\n\nTo mitigate this without upgrading, a check on the last four digits can be made\nto make sure it\u0027s not 000x.\n\nThe affected version should not be relied on without the mitigation to check\nthat the swedish personal identity number is valid.",
  "id": "RUSTSEC-2020-0166",
  "modified": "2023-02-02T10:57:52Z",
  "published": "2020-09-04T12:00:00Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://crates.io/crates/personnummer"
    },
    {
      "type": "ADVISORY",
      "url": "https://rustsec.org/advisories/RUSTSEC-2020-0166.html"
    },
    {
      "type": "WEB",
      "url": "https://github.com/personnummer/rust/pull/4"
    }
  ],
  "related": [],
  "severity": [],
  "summary": "personnummer Input validation error"
}


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…