CVE-2024-31995 zcap has incomplete expiration checks in capability chains.

Medium 4.3 Published Updated

Attackers can bypass expiration checks in delegated capability chains, allowing unauthorized access outside the intended time period.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-31995?

CVE-2024-31995 is a medium-severity vulnerability in digitalbazaar zcap, published on 10 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

`@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.

Weakness: CWE-613

Which versions are affected by CVE-2024-31995?

2 open source packages ship an affected version, including @digitalbazaar/zcap.

PackageAffectedFixed in
@digitalbazaar/zcap npmAll versions9.0.1
@digitalbazaar/zcap npmAll versions9.0.1

How do I fix CVE-2024-31995?

Upgrade @digitalbazaar/zcap to 9.0.1 or later.

Is CVE-2024-31995 being exploited?

There is no known exploitation of CVE-2024-31995 in the wild and no public exploit code.

Sources

Also known as GHSA-hp8h-7x69-4wmv.

Is CVE-2024-31995 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free