Crypt::JWT versions before 0.024 for Perl skip issuer, subject, audience and JWT ID checks when the claim is absent or the option is a plain string....
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANCrypt-JWT |
< 0.024→ 0.024 |
0.024 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2018-25445 libcrypt-jwt-perl Fix available
- Ubuntu UBUNTU-CVE-2018-25445 libcrypt-jwt-perl No fixed version in this record
Original description The description as published by the source.
Crypt::JWT versions before 0.024 for Perl skip issuer, subject, audience and JWT ID checks when the claim is absent or the option is a plain string.
decode_jwt runs the verify_iss, verify_sub, verify_aud and verify_jti checks only when the token carries the claim, and honours an option only as a Regexp or CODE reference. Any other value, such as verify_aud => 'myapp', is ignored.
An application that relies on these checks accepts a validly signed token meant for a different issuer, subject or audience.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- patch github.com
- web metacpan.org
- web nvd.nist.gov
- web github.com