Skip to main content
Menu
Advisories

Authenticator ignores provider order: the fastest provider's roles win

GHSA-H926-PF3J-RWQ5Published Updated GitHub

Description

When an application has several authentication providers under the default ANY strategy, Authenticator uses whichever provider answers first, not the highest-precedence provider that accepts the user. So a user whose own password is accepted by two providers can be logged in with the roles of the lower-precedence one, even though the application ordered a more restrictive provider ahead of it. The attached reproducer shows a contractor, limited to ROLE_CONTRACTOR by a HIGHEST_PRECEDENCE provider, getting HTTP 200 and the protected body from a @Secured("ROLE_EMPLOYEE") route in 110 to 647 of 1000 Basic-auth requests. The control instance returns 403 in all 1000.

Affected and patched versions

The following ranges cover stable releases.

Release lineAffected versionsFirst patched releaseFix commit
3.11.x and earlier>= 2.0.0, < 3.11.33.11.31ce3b68002
4.x>= 4.0.0, < 4.18.24.18.2b47d20c71e
5.0.x–5.4.x>= 5.0.0, < 5.4.35.4.36f51f0db0a
5.5.x>= 5.5.0, < 5.5.35.5.3997f25db38

The fix commits are included in the corresponding release tags and absent from the preceding stable releases (3.11.2, 4.18.1, 5.4.2, 5.5.2).

The lower bound is the earliest stable release the finding traces the behavior to.

Suggested severity

Suggested CVSS v3.1 vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N. This is an initial estimate based on the finding report and should be reviewed against the final impact and deployment prerequisites.

Source finding: ANT-2026-U1ARHH5B.

Affected versions

References

GitHub · micronaut-projects/micronaut-security