Every CVESearch/Get API key

GHSA-pjx8-984p-7p3x

FOSUserBundle Entropy is lost in the TokenGenerator

No scoreFix available

GHSA-pjx8-984p-7p3x is a vulnerability with no CVSS score yet in friendsofsymfony/user-bundle, published May 15, 2024. No source lists public exploit code. Fixed in friendsofsymfony/user-bundle 1.3.5.

What does this mean?
Severity
UnratedNo CVSS score yet
Exploit chance
UnscoredNo EPSS score yet
Exploitation
None knownNot on CISA’s or ENISA’s lists

Description

Description

Because of the usage of base_convert which looses precision for large inputs, the entropy of tokens generated by FOSUserBundle for the email confirmation and password resetting is lost. This makes these tokens much less random than they are expected to be, and so not cryptographically safe.

Resolution

The token generation logic used in the 2.0.x branch based on base64 encoding has been backported. This changes the range of characters used in the token. Any route placeholder expected to match a token generated by FOSUserBundle must be updated to allow dashes, which are not allowed by \w in regexes. A \w+ requirement should so become [\w-]+.

Affected packages

Affected packages
PackageAffectedFixed
friendsofsymfony/user-bundle
Packagist
1.0.0 up to 1.3.5
1.3.5
friendsofsymfony/user-bundle
Packagist
1.0.0 up to 1.3.5, plus listed versions
1.1.01.2.0v1.2.1v1.2.2v1.2.3
Show 7 moreShow less
v1.2.4v1.2.5v1.3.0v1.3.1v1.3.2v1.3.3v1.3.4
1.3.5

What each source reports

GitHub AdvisoriesNo score

FOSUserBundle Entropy is lost in the TokenGenerator

Description

Because of the usage of base_convert which looses precision for large inputs, the entropy of tokens generated by FOSUserBundle for the email confirmation and password resetting is lost. This makes these tokens much less random than they are expected to be, and so not cryptographically safe.

Resolution

The token generation logic used in the 2.0.x branch based on base64 encoding has been backported. This changes the range of characters used in the token. Any route placeholder expected to match a token generated by FOSUserBundle must be updated to allow dashes, which are not allowed by \w in regexes. A \w+ requirement should so become [\w-]+.

Record
GHSA-pjx8-984p-7p3x
Weakness
CWE-331
Updated
2026-11-02
OSVNo score

FOSUserBundle Entropy is lost in the TokenGenerator

Description

Because of the usage of base_convert which looses precision for large inputs, the entropy of tokens generated by FOSUserBundle for the email confirmation and password resetting is lost. This makes these tokens much less random than they are expected to be, and so not cryptographically safe.

Resolution

The token generation logic used in the 2.0.x branch based on base64 encoding has been backported. This changes the range of characters used in the token. Any route placeholder expected to match a token generated by FOSUserBundle must be updated to allow dashes, which are not allowed by \w in regexes. A \w+ requirement should so become [\w-]+.

Record
GHSA-pjx8-984p-7p3x
Weakness
CWE-331
Updated
2026-11-02

History

History
RecordedChangedSources
first indexedGitHub Advisories, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

References

MoveEnter Open