1. CVE archive
  2. 2018
  3. CVE-2018-25445

CVE-2018-25445

7.5 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N 7.5 – High

Description

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.

Affected products

VendorProductVersionPlatform
– crypt-jwt < 0.024 –

Vulnerability type

CWE-636 Not Failing Securely

When the product encounters an error condition or failure, its design requires it to fall back to a state that is less secure than other options that are available, such as selecting the weakest encryption algorithm or using the most permissive access control restrictions.

Impact on systems

ScopeImpact
Other Varies by Context
By entering a less secure state, the product inherits the weaknesses associated with that state, making it easier to compromise. At the least, it causes administrators to have a false sense of security.
Access Control Bypass Protection Mechanism
Intended access restrictions can be bypassed, which is often contradictory to what the product's administrator expects.

How to prevent it

Architecture and Design Subdivide and allocate resources and components so that a failure in one part does not affect the entire product.

All 74 CWE-636 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org