{"id":"CVE-2024-31995","summary":"zcap has incomplete expiration checks in capability chains.","details":"`@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.","aliases":["GHSA-hp8h-7x69-4wmv"],"modified":"2026-05-18T05:58:51.264083472Z","published":"2024-04-10T21:57:41.129Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31995.json","cwe_ids":["CWE-613"],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31995.json"},{"type":"ADVISORY","url":"https://github.com/digitalbazaar/zcap/security/advisories/GHSA-hp8h-7x69-4wmv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31995"},{"type":"FIX","url":"https://github.com/digitalbazaar/zcap/commit/261eea040109b6e25159c88d8ed49d3c37f8fcfe"},{"type":"FIX","url":"https://github.com/digitalbazaar/zcap/commit/55f8549c80124b85dfb0f3dcf83f2c63f42532e5"},{"type":"FIX","url":"https://github.com/digitalbazaar/zcap/pull/82"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/digitalbazaar/zcap","events":[{"introduced":"0"},{"fixed":"85a87734b4ca7185287bb1cf836f7d2bfa2b3613"}]}],"versions":["v9.0.0","v8.0.0","v7.2.2","v7.2.1","v7.2.0","v7.1.0","v7.0.1","v7.0.0","v6.0.0","v5.2.0","v5.1.3","v5.1.2","v5.1.1","v5.1.0","v5.0.0","v4.0.0","v3.1.1","v3.1.0","v3.0.0","v2.0.0","v1.8.0","v1.7.0","v1.6.1","v1.6.0","v1.5.1","v1.5.0","v1.4.0","v1.3.1","v1.3.0","v1.2.1","v1.2.0","v1.1.0","v1.0.2","v1.0.1","v1.0.0","v0.1.1-0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-31995.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}