{"id":"CVE-2024-31995","published":"2024-04-10T21:57:41Z","modified":"2024-08-02T01:59:50Z","title":"zcap has incomplete expiration checks in capability chains.","vendor":"digitalbazaar","product":"zcap","tier":"tail","description":{"text":"`@digitalbazaar/zcap` provides JavaScript reference implementation for Authorization Capabilities. Prior to version 9.0.1, when invoking a capability with a chain depth of 2, i.e., it is delegated directly from the root capability, the `expires` property is not properly checked against the current date or other `date` param.  This can allow invocations outside of the original intended time period.  A zcap still cannot be invoked without being able to use the associated private key material. `@digitalbazaar/zcap` v9.0.1 fixes expiration checking. As a workaround, one may revoke a zcap at any time.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00441,"percentile":0.39176,"provenance":"source"},"cwes":[{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"}],"references":[{"url":"https://github.com/digitalbazaar/zcap/security/advisories/GHSA-hp8h-7x69-4wmv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/digitalbazaar/zcap/pull/82","tags":["x_refsource_MISC"]},{"url":"https://github.com/digitalbazaar/zcap/commit/261eea040109b6e25159c88d8ed49d3c37f8fcfe","tags":["x_refsource_MISC"]},{"url":"https://github.com/digitalbazaar/zcap/commit/55f8549c80124b85dfb0f3dcf83f2c63f42532e5","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":7.84},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"digitalbazaar","affectedVersions":[{"vendor":"digitalbazaar","product":"zcap","versions":["< 9.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-14T17:44:20.360065Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@digitalbazaar/zcap","vulnerableRanges":["<9.0.1"],"patched":["9.0.1"],"from":["GHSA-hp8h-7x69-4wmv"],"provenance":"source"}],"summary":{"text":"The flaw is an incomplete expiration check in the zcap JavaScript reference implementation of Authorization Capabilities (@digitalbazaar/zcap), where the expires property is not properly validated against the current date for capability chains of depth 2 (capabilities delegated directly from the root capability). An attacker with network access and low-privilege access can invoke such a capability outside its original intended time period, but only if they still hold the associated private key material, since a capability cannot be invoked without it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:05Z"},"euvd":{"id":"EUVD-2024-1217","exploited":false,"provenance":"source"}}