Skip to main content
Menu
Advisories

IpPatternsRule: documented 192.168.1. range also admits 192.168.10.x

GHSA-CJFM-J2VW-R8G8Published Updated GitHub

Description

The IP allowlist in micronaut-security admits clients outside the range the manual says it allows. With the manual's own example, micronaut.security.ip-patterns: [127.0.0.1, 192.168.1.*], requests from 192.168.10.x–192.168.19.x and 192.168.100.x–192.168.199.x pass IpPatternsRule exactly as if they came from 192.168.1.0/24. The attached reproducer runs that configuration against an anonymous route. It shows 192.168.10.5 and 192.168.100.5 receiving 200 and the page, while the control address 192.168.2.5 gets 401.

Affected and patched versions

The following ranges cover stable releases.

Release lineAffected versionsFirst patched releaseFix commit
3.11.x and earlier>= 1.1.1, < 3.11.33.11.3a65fffe409
4.x>= 4.0.0, < 4.18.24.18.29a6d793779
5.0.x–5.4.x>= 5.0.0, < 5.4.25.4.2e9617d032d
5.5.x>= 5.5.0, < 5.5.25.5.27c8b8397c2

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. Configured IP patterns are compiled directly as regular expressions without escaping dots.

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:L/I:N/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-8KKW5J62.

Affected versions

References

GitHub · micronaut-projects/micronaut-security