CVE-2021-44878: pac4j - Authentication Bypass
- Cve: CVE-2021-44878
- Name: pac4j - Authentication Bypass
- Description: If an OpenID Connect provider supports the "none" algorithm (i.e., tokens with no signature), pac4j v5.3.0 (and prior) does not refuse it without an explicit configuration on its side or for the "idtoken" response type which is not secure and violates the OpenID Core Specification. The "none" algorithm does not require any signature verification when validating the ID tokens, which allows the attacker to bypass the token validation by injecting a malformed ID token using "none" as the value of "alg" key in the header with an empty signature value.
- Impact: Attackers can forge valid-looking ID tokens, leading to impersonation and security bypass.
- Remediation: Update to the latest version of pac4j that enforces 'none' algorithm rejection or configure the provider to disallow 'none' algorithm tokens.
- Vulnerability type: broken_authentication
- Vulnerability impact: privilege_escalation
- Requirement type: user_interaction
- Requirements: Attacker needs to inject a malformed ID token with 'none' algorithm
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00899
- Epss percentile: 0.60553
- Assignee: [email protected]
- Published at: 2022-01-06T13:15:08Z
- Age in days: 1783
- Modified at: 2026-06-17T04:12:55Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-44878
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-347 | Improper Verification of Cryptographic Signature |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/pac4j/pac4j/commit/22b82ffd702a132d9f09da60362fc6264fc281ae | Patch, Third Party Advisory |
| https://www.pac4j.org/blog/cve_2021_44878_is_this_serious.html | Mitigation, Vendor Advisory |
| https://openid.net/specs/openid-connect-core-1_0.html#IDToken | Product, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pac4j:pac4j | >= 5.0.0, < 5.3.1; < 4.5.5 | no | nvd | /v1/products/pac4j/pac4j |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pac4j/pac4j | commit, fix, package | yes | /v1/repositories/pac4j/pac4j |
Index
- Repositories: 3
- Repositories high signal: 1
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts