CVE-2019-12422: Improper input validation in Apache Shiro

org.apache.shiro:shiro-core Updated 02 Oct 2025

Summary

04/02/2020
Yes i
High
7.5

CVE-2019-12422: Improper input validation in Apache Shiro. Affects org.apache.shiro:shiro-core versions < 1.4.2. Fixed in 1.4.2. How to fix ↓

Also tracked for

The same CVE-2019-12422 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Shiro is a powerful and easy-to-use Java security framework that provides authentication, authorization, cryptography, and session management capabilities. It is widely used in various applications to secure user data and protect against unauthorized access. However, versions before 1.4.2 are vulnerable to an improper input validation issue when using the default "remember me" configuration. This vulnerability could allow an attacker to exploit cookies using a padding attack.

Vulnerability Detail

The vulnerability in Apache Shiro arises from improper input validation when handling cookies in the default "remember me" configuration. By exploiting this vulnerability, an attacker could launch a padding attack on the cookies, potentially leading to unauthorized access or data leakage. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.

How To Fix

Latest published version: 3.0.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of Apache Shiro to mitigate the risk of exploitation.

Conclusion

In conclusion, Apache Shiro versions before 1.4.2 are vulnerable to an improper input validation issue that could be exploited through a padding attack on cookies. To mitigate this risk, it is crucial to upgrade to Apache Shiro 1.4.2 or later. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.shiro:shiro-core →

Share this vulnerability

FAQ

Apache Shiro is a Java security framework that provides authentication, authorization, cryptography, and session management capabilities.

This vulnerability could allow an attacker to exploit cookies using a padding attack, potentially leading to unauthorized access or data leakage.

To fix this vulnerability, upgrade to Apache Shiro version 1.4.2 or later.

No, there is no known workaround for this vulnerability. Upgrading to the fixed version is the recommended solution.

The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.shiro:shiro-core.

How To Fix

Latest published version: 3.0.1 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.2

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback