CVE-2023-22963: personnummer/dart vulnerable to Improper Input Validation
5.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.22696%
CWE
Published
9/19/2022
Updated
1/11/2023
KEV Status
No
Technology
Dart
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| personnummer | pub | < 3.0.3 | 3.0.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from an insufficient regular expression pattern in the validation logic. The core function responsible for validation (Personnummer.valid) likely contained a regex pattern that accepted '000' as the first three digits in the last four-digit group of a personnummer. This matches the described vulnerability where numbers ending with '000x' were improperly validated as legitimate. The workaround and patch both focus on correcting this specific regex pattern, indicating the validation function itself was the primary vulnerable component.