Intercept URL map auth bypass via encoded slash or blank path variable
Description
An authorization bypass in micronaut-security's intercept URL map lets a client without credentials run a controller method that the map restricts to a role. The client only has to put an encoded slash (x%2Fy) or a blank value (%20, %09, %00) into a path variable. The application must protect a route with a fixed-depth pattern such as /admin/, /users//roles or /*/admin/, and a broader permissive pattern, typically a later / → isAnonymous(), must also match. When that broader entry is isAuthenticated(), the same requests let any logged-in user past a role entry instead. Routes protected with @Secured are not affected.
Affected and patched versions
The following ranges cover stable releases.
| Release line | Affected versions | First patched release | Fix commit |
|---|---|---|---|
| 3.11.x and earlier | >= 1.1.1, < 3.11.3 | 3.11.3 | 25e969d058 |
| 4.x | >= 4.0.0, < 4.18.2 | 4.18.2 | bd1dc217cf |
| 5.0.x–5.4.x | >= 5.0.0, < 5.4.2 | 5.4.2 | f98e23c78e |
| 5.5.x | >= 5.5.0, < 5.5.2 | 5.5.2 | 46284a2c8c |
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.1, 5.5.1).
Earliest verified affected stable source: 1.1.1. Pattern matching uses request.getUri().getPath, the decoded path.
Version 1.1.1 is the earliest stable source tag available in this repository. Releases before that tag have not been verified.
Suggested severity
Suggested CVSS v3.1 vector: CVSS:3.1/AV:N/AC:L/PR:N/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-IBBPVBHW.