CVE-2024-31995: Digital Bazaar zcap incomplete expiration checks in capability chains

CVE-2024-31995 · Severity: low · CVSS 3.1 · Published 2024-04-10

Digital Bazaar's zcap library manages cryptographic capability tokens used for delegated authorization in decentralized systems. The library failed to properly validate expiration dates on delegated capabilities, allowing attackers with access to private key material to use expired authorization tokens beyond their intended time window. This could enable unauthorized actions if a capability is delegated but later expires or if time-based access controls are relied upon for security.

Vendors: Digital Bazaar, npm.

Quick answers

Is CVE-2024-31995 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-31995 being exploited in the wild.
How severe is CVE-2024-31995?
Low severity, with a CVSS score of 3.1, published 10 April 2024.
Which products and versions are affected?
Digital Bazaar Zcap before 9.0.1; @digitalbazaar/zcap (npm) SEMVER:introduced=0,fixed=9.0.1.
Is there a fix for CVE-2024-31995?
Yes. @digitalbazaar/zcap (npm): upgrade to 9.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-31995 attacked?
It is attacked over the network.
Am I affected by CVE-2024-31995?
Check whether you run Digital Bazaar Zcap or @digitalbazaar/zcap (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • @digitalbazaar/zcap (npm): upgrade to 9.0.1 or later
    npm install @digitalbazaar/zcap@9.0.1

Technical details

The vulnerability is an improper input validation (CWE-20) and insufficient session expiration (CWE-613) flaw in the zcap library's capability chain handling. When a capability is invoked with a chain depth of 2 (delegated directly from the root capability), the expires property is not properly validated against the current date or supplied date parameter. An attacker who possesses the associated private key material can invoke expired capabilities outside the originally intended time period. The flaw requires the attacker to already have access to the private key, limiting the attack surface. A fix was released in version 9.0.1.

Affected products

  • Digital Bazaar zcap before 9.0.1

Identifiers

  • CVE-2024-31995
  • GHSA-hp8h-7x69-4wmv

Timeline

  • 2024-04-10: disclosed
  • 2024-04-10: patched: Fixed in v9.0.1

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.