GHSA-hhfg-fwrw-87w7

Suggest an improvement
Source
https://github.com/advisories/GHSA-hhfg-fwrw-87w7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/12/GHSA-hhfg-fwrw-87w7/GHSA-hhfg-fwrw-87w7.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-hhfg-fwrw-87w7
Aliases
Published
2024-12-11T18:42:00Z
Modified
2024-12-11T18:57:11.339376Z
Severity
  • 2.7 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
sigstore has insufficient validation of integration timestamp during verification
Details

Summary

Versions of sigstore-python newer than 2.0.0 but prior to 3.6.0 perform insufficient validation of the "integration time" present in "v2" and "v3" bundles during the verification flow: the "integration time" is verified if a source of signed time (such as an inclusion promise) is present, but is otherwise trusted if no source of signed time is present.

This does not affect "v1" bundles, as the "v1" bundle format always requires an inclusion promise.

Details

Sigstore uses signed time to support verification of signatures made against short-lived signing keys.

Impact

The impact and severity of this weakness is low, as Sigstore contains multiple other enforcing components that prevent an attacker who modifies the integration timestamp within a bundle from impersonating a valid signature. In particular, an attacker who modifies the integration timestamp can induce a Denial of Service, but in no different manner than already possible with bundle access (e.g. modifying the signature itself such that it fails to verify).

Separately, an attacker could upload a new entry to the transparency service, and substitute their new entry's time. However, this would still be rejected at validation time, as the new entry's (valid) signed time would be outside the validity window of the original signing certificate and would nonetheless render the attacker auditable.

Database specific
{
    "nvd_published_at": "2024-12-10T23:15:06Z",
    "cwe_ids": [
        "CWE-20",
        "CWE-325"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2024-12-11T18:42:00Z"
}
References

Affected packages

PyPI / sigstore

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
3.6.0

Affected versions

2.*

2.0.0
2.0.1
2.1.0
2.1.2
2.1.3
2.1.5

3.*

3.0.0rc1
3.0.0rc2
3.0.0
3.1.0
3.2.0
3.3.0
3.4.0
3.5.0
3.5.1
3.5.3