GHSA-9c54-x2g4-v92j

Suggest an improvement
Source
https://github.com/advisories/GHSA-9c54-x2g4-v92j
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9c54-x2g4-v92j/GHSA-9c54-x2g4-v92j.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9c54-x2g4-v92j
Aliases
  • CVE-2026-49835
Related
Published
2026-06-30T18:40:39Z
Modified
2026-07-01T12:47:35.087769097Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Sigstore Timestamp Authority has OOM due to unbounded metric label cardinality
Details

Impact

An unauthenticated remote attacker can trigger unbounded memory growth on the timestamp authority server.

This vulnerability exists because the global wrapMetrics middleware records the raw HTTP request path (r.URL.Path) and raw HTTP request method (r.Method) as Prometheus labels for latency and request count metric vectors. Since this middleware runs before standard routing occurs, it executes for all incoming requests, including those for unmatched paths (yielding 404 responses) or arbitrary request methods. The Prometheus library registers a new, permanent time-series entry for every distinct label combination. An attacker can continuously issue requests containing random paths (e.g., /api/v1/timestamp/<uuid>) or random HTTP methods to exhaust system memory.

Patches

This issue has been patched by limiting the metric label values to a strict allowlist of expected paths (/ping, /api/v1/timestamp, /api/v1/timestamp/certchain) and expected HTTP methods (GET, POST, HEAD, OPTIONS). Unrecognized paths or methods are normalized to a static string ("unrecognized").

Users should update to version v2.0.7 or later.

Workarounds

  1. Block or drop incoming requests with invalid HTTP methods or unknown request paths at a reverse proxy or load balancer before they reach the timestamp authority server.
  2. Configure rate-limiting on the public interface to prevent remote attackers from issuing millions of unique requests in a short duration.
Database specific
{
    "nvd_published_at": null,
    "severity": "MODERATE",
    "cwe_ids": [
        "CWE-770"
    ],
    "github_reviewed_at": "2026-06-30T18:40:39Z",
    "github_reviewed": true
}
References

Affected packages

Go / github.com/sigstore/timestamp-authority/v2

Package

Name
github.com/sigstore/timestamp-authority/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/sigstore/timestamp-authority/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9c54-x2g4-v92j/GHSA-9c54-x2g4-v92j.json"
last_known_affected_version_range
"<= 2.0.6"

Go / github.com/sigstore/timestamp-authority

Package

Name
github.com/sigstore/timestamp-authority
View open source insights on deps.dev
Purl
pkg:golang/github.com/sigstore/timestamp-authority

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.2.9

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-9c54-x2g4-v92j/GHSA-9c54-x2g4-v92j.json"