Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2022-22978 — Reproducible lab environment demonstrating CVE-2022-22978 Spring Security authorization bypass via encoded newline characters in RegexRequestMatcher. | Kitploit
Tools/GitHubGitHub/he-ewo/cve-2022-22978
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubhe-ewo/cve-2022-22978

CVE-2022-22978

Reproducible lab environment demonstrating CVE-2022-22978 Spring Security authorization bypass via encoded newline characters in RegexRequestMatcher.

View Repository
21 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2022-22978: Spring Security Authorization Bypass

Summary

  • Spring Security framework is a security framework that provides authentication and authorization functions in Spring-based applications.
  • In Spring Security versions 5.5.6, 5.6.3 and earlier, when using RegexRequestMatcher, a function that grants permissions using regular expressions, an authorization bypass may occur if the request URL contains newline characters.
  • An attacker can bypass access to the admin page (/admin) by using encoded newline characters such as %0a, %0d.

Environment Setup and Execution

  • The test environment was prepared by running docker compose up -d.
  • Run http://localhost:8080/admin to verify that access to the admin page is blocked.
  • Run http://localhost:8080/admin/%0atest to access the admin page.

image image A vulnerable environment was configured.

Results

image

Access to the admin page is blocked.

image image

%0d represents '\r' and %0a represents '\n', both newline characters. Sending requests using %0d or %0a allows bypassing access permissions.

Conclusion

If newline characters such as %0a or %0d are included in the URL, the RegexRequestMatcher processes the request path without handling newline characters, enabling permission bypass. Attackers can access the admin page via permission bypass and steal sensitive information there, so caution is required.

GitHub address: https://github.com/he-ewo/CVE-2022-22978.git

Download Tool