{"id":"CVE-2023-22963","aliases":["CVE-2023-22963","GHSA-4xh4-v2pq-jvhm"],"related":[],"kind":"vulnerability","state":"published","title":"personnummer/dart vulnerable to Improper Input Validation","summary":"The personnummer implementation before 3.0.3 for Dart mishandles numbers in which the last four digits match the ^000[0-9]$ regular expression.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The personnummer implementation before 3.0.3 for Dart mishandles numbers in which the last four digits match the ^000[0-9]$ regular expression.","source":"cvelist"},{"lang":"en","text":"This vulnerability was reported to the personnummer team in June 2020. The slow response was due to locked ownership of some of the affected packages, which caused delays to update packages prior to disclosure.\n\nThe vulnerability is determined to be low severity.\n\n### Impact\n\nThis vulnerability impacts users who rely on the for last digits of personnummer to be a _real_ personnummer.  \n\n### Patches\n\nThe issue have been patched in all repositories. The following versions should be updated to as soon as possible:\n\n[C#](https://github.com/advisories/GHSA-qv8q-v995-72gr) 3.0.2  \nD 3.0.1  \n[Dart](https://github.com/advisories/GHSA-4xh4-v2pq-jvhm) 3.0.3  \nElixir 3.0.0  \n[Go](https://github.com/advisories/GHSA-hv53-vf5m-8q94) 3.0.1  \n[Java](https://github.com/advisories/GHSA-q3vw-4jx3-rrr2) 3.3.0  \n[JavaScript](https://github.com/advisories/GHSA-vpgc-7h78-gx8f) 3.1.0  \nKotlin 1.1.0  \nLua 3.0.1  \n[PHP](https://github.com/advisories/GHSA-2p6g-gjp8-ggg9) 3.0.2  \nPerl 3.0.0  \n[Python](https://github.com/advisories/GHSA-rxq3-5249-8hgg) 3.0.2  \n[Ruby](https://github.com/advisories/GHSA-vp9c-fpxx-744v) 3.0.1  \n[Rust](https://github.com/advisories/GHSA-28r9-pq4c-wp3c) 3.0.0  \nScala 3.0.1  \nSwift 1.0.1  \n\nIf you are using any of the earlier packages, please update to latest.\n\n### Workarounds\n\nThe issue arrieses from the regular expression allowing the first three digits in the last four digits of the personnummer to be\n000, which is invalid. To mitigate this without upgrading, a check on the last four digits can be made to make sure it's not\n000x.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Personnummer Meta](https://github.com/personnummer/meta/issues)\n* Email us at [Personnummer Email](mailto:security@personnummer.dev)","format":"markdown","source":"ghsa"},{"lang":"es","text":"La implementación de personnummer anterior a 3.0.3 para Dart maneja mal los números en los que los últimos cuatro dígitos coinciden con la expresión regular ^000[0-9]$.","source":"nvd"}],"published":"2022-09-19T22:47:29.000Z","modified":"2026-07-08T06:53:12.190Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"rating","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.3"}],"ecosystem":"Pub","package":"personnummer","purl":"pkg:pub/personnummer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.3"}],"vendor":"personnummer","product":"personnummer","cpe":"cpe:2.3:a:personnummer:personnummer:*:*:*:*:*:dart:*:*","source":"nvd"}],"references":[{"url":"https://github.com/personnummer/dart/security/advisories/GHSA-4xh4-v2pq-jvhm","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-4xh4-v2pq-jvhm","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22963","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/personnummer/dart","tags":["package"],"sources":["ghsa"]},{"url":"https://pub.dev/packages/personnummer","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-07T17:46:51.316Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-22963","url":"https://www.cve.org/CVERecord?id=CVE-2023-22963","licence":"CVE Terms of Use","modified":"2025-04-07T18:41:36.152Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4xh4-v2pq-jvhm","url":"https://github.com/advisories/GHSA-4xh4-v2pq-jvhm","licence":"CC-BY-4.0","modified":"2026-07-08T06:53:12.190Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-22963","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22963","licence":"Public domain","modified":"2026-06-17T05:36:31.913Z"}],"updatedAt":"2026-11-25T22:58:21.553Z","epss":{"score":0.00531,"percentile":0.4636,"date":"2026-12-01T12:00:22.000Z"}}