{"id":"RUSTSEC-2020-0166","summary":"personnummer Input validation error","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's not 000x.\n\nThe affected version should not be relied on without the mitigation to check\nthat the swedish personal identity number is valid.","aliases":["GHSA-28r9-pq4c-wp3c"],"modified":"2023-11-08T04:13:59.081891Z","published":"2020-09-04T12:00:00Z","database_specific":{"license":"CC0-1.0"},"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"}],"affected":[{"package":{"name":"personnummer","ecosystem":"crates.io","purl":"pkg:cargo/personnummer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"3.0.1"}]}],"ecosystem_specific":{"affects":{"functions":[],"os":[],"arch":[]},"affected_functions":null},"database_specific":{"informational":"notice","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0166.json","categories":[],"cvss":null}}],"schema_version":"1.7.3"}