Wiz Agents & Workflows are here
Vulnerability DatabaseGHSA-2p6g-gjp8-ggg9

GHSA-2p6g-gjp8-ggg9
PHP vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-2p6g-gjp8-ggg9) was discovered in personnummer/php package, affecting versions prior to 3.0.2. This security issue, reported in June 2020 and published on September 4, 2020, involves improper input validation in the Swedish social security number validation library. The vulnerability was classified as low severity and impacts the validation of personnummer's last four digits (GitHub Advisory).

Technical details

The vulnerability stems from a regular expression implementation that incorrectly allowed the first three digits in the last four digits of the personnummer to be '000', which is invalid according to Swedish social security number rules. The issue was present in the validation logic of the library, specifically in the regex pattern that validates the structure of personnummer (GitHub Commit).

Impact

The vulnerability affects users who rely on the validation of the last four digits of personnummer to be accurate. It could potentially allow invalid personnummer numbers to be accepted as valid, which might impact systems that depend on strict validation of Swedish social security numbers (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in version 3.0.2 of the PHP package. For users unable to upgrade immediately, a workaround involves implementing an additional check on the last four digits to ensure they're not '000x'. The fix involved updating the regular expression pattern to explicitly exclude the invalid pattern using a negative lookahead assertion (GitHub Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-wprj-9cvc-5w37HIGH7.5
  • PHPPHP
  • wwbn/avideo
NoNoMar 29, 2026
CVE-2026-34036MEDIUM6.5
  • PHPPHP
  • dolibarr/dolibarr
NoNoMar 31, 2026
CVE-2026-33887MEDIUM5.4
  • PHPPHP
  • statamic/cms
NoYesMar 27, 2026
CVE-2026-27599MEDIUM4.7
  • PHPPHP
  • ci4-cms-erp/ci4ms
NoYesMar 30, 2026
CVE-2026-34372MEDIUMN/A
  • PHPPHP
  • sulu/sulu
NoYesMar 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management