Skip to content

Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - #28

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/go-github.com-prometheus-client_golang-vulnerability
Open

Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY]#28
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/go-github.com-prometheus-client_golang-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Aug 6, 2024

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
github.com/prometheus/client_golang v1.11.0v1.11.1 age confidence

Uncontrolled Resource Consumption in promhttp

CVE-2022-21698 / GHSA-cg3q-j54f-5p7p

More information

Details

This is the Go client library for Prometheus. It has two separate parts, one for instrumenting application code, and one for creating clients that talk to the Prometheus HTTP API. client_golang is the instrumentation library for Go applications in Prometheus, and the promhttp package in client_golang provides tooling around HTTP servers and clients.

Impact

HTTP server susceptible to a Denial of Service through unbounded cardinality, and potential memory exhaustion, when handling requests with non-standard HTTP methods.

Affected Configuration

In order to be affected, an instrumented software must

  • Use any of promhttp.InstrumentHandler* middleware except RequestsInFlight.
  • Do not filter any specific methods (e.g GET) before middleware.
  • Pass metric with method label name to our middleware.
  • Not have any firewall/LB/proxy that filters away requests with unknown method.
Patches
Workarounds

If you cannot upgrade to v1.11.1 or above, in order to stop being affected you can:

  • Remove method label name from counter/gauge you use in the InstrumentHandler.
  • Turn off affected promhttp handlers.
  • Add custom middleware before promhttp handler that will sanitize the request method given by Go http.Request.
  • Use a reverse proxy or web application firewall, configured to only allow a limited set of methods.
For more information

If you have any questions or comments about this advisory:

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

prometheus/client_golang (github.com/prometheus/client_golang)

v1.11.1: 1.11.1 / 2022-02-15

Compare Source

  • [SECURITY FIX] promhttp: Check validity of method and code label values #​987 (Addressed CVE-2022-21698)

What's Changed

Full Changelog: prometheus/client_golang@v1.11.0...v1.11.1


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed Nov 21, 2024
@renovate renovate Bot closed this Nov 21, 2024
@renovate
renovate Bot deleted the renovate/go-github.com-prometheus-client_golang-vulnerability branch November 21, 2024 05:23
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] Nov 21, 2024
@renovate renovate Bot reopened this Nov 21, 2024
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch from 4ebae64 to b56d316 Compare November 21, 2024 07:53
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed Dec 12, 2024
@renovate renovate Bot closed this Dec 12, 2024
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] Dec 12, 2024
@renovate renovate Bot reopened this Dec 12, 2024
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch from a7fe53a to b56d316 Compare December 12, 2024 23:40
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed Jan 9, 2025
@renovate renovate Bot closed this Jan 9, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] Jan 10, 2025
@renovate renovate Bot reopened this Jan 10, 2025
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch from e8acaca to b56d316 Compare January 10, 2025 02:28
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed May 31, 2025
@renovate renovate Bot closed this May 31, 2025
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] May 31, 2025
@renovate renovate Bot reopened this May 31, 2025
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch from ca735b8 to b56d316 Compare May 31, 2025 16:54
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] - autoclosed fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch 2 times, most recently from b56d316 to 6545051 Compare March 30, 2026 18:04
@renovate renovate Bot changed the title fix(deps): update module github.com/prometheus/client_golang to v1.11.1 [security] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Apr 8, 2026
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate renovate Bot reopened this Jun 6, 2026
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch 2 times, most recently from 1c3c0e4 to b81818b Compare June 6, 2026 02:48
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Jul 10, 2026
@renovate renovate Bot closed this Jul 10, 2026
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Jul 10, 2026
@renovate renovate Bot reopened this Jul 10, 2026
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch 2 times, most recently from b81818b to 377fa0b Compare July 10, 2026 22:58
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Aug 28, 2026
@renovate renovate Bot closed this Aug 28, 2026
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Aug 28, 2026
@renovate renovate Bot reopened this Aug 28, 2026
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch 2 times, most recently from 377fa0b to c6d4a85 Compare August 28, 2026 15:13
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Aug 29, 2026
@renovate renovate Bot closed this Aug 29, 2026
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Aug 29, 2026
@renovate renovate Bot reopened this Aug 29, 2026
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch 2 times, most recently from c6d4a85 to dcf94c9 Compare August 29, 2026 09:56
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Sep 1, 2026
@renovate renovate Bot closed this Sep 1, 2026
@renovate renovate Bot changed the title Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] - autoclosed Update module github.com/prometheus/client_golang to v1.11.1 [SECURITY] Sep 1, 2026
@renovate renovate Bot reopened this Sep 1, 2026
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch 2 times, most recently from dcf94c9 to 2f1d830 Compare September 1, 2026 17:04
@renovate
renovate Bot force-pushed the renovate/go-github.com-prometheus-client_golang-vulnerability branch from 2f1d830 to 02f0f1a Compare September 2, 2026 16:15
@renovate

renovate Bot commented Sep 2, 2026

Copy link
Copy Markdown
Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -t ./...
go: downloading github.com/gorilla/websocket v1.4.2
go: downloading github.com/prometheus/client_golang v1.11.1
go: downloading github.com/sirupsen/logrus v1.8.1
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.26.0
go: downloading github.com/prometheus/procfs v0.6.0
go: downloading golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40
go: downloading google.golang.org/protobuf v1.26.0-rc.1
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/proto imports
	google.golang.org/protobuf/encoding/prototext: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/proto imports
	google.golang.org/protobuf/encoding/protowire: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/proto imports
	google.golang.org/protobuf/proto: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/proto imports
	google.golang.org/protobuf/reflect/protoreflect: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/proto imports
	google.golang.org/protobuf/reflect/protoregistry: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/proto imports
	google.golang.org/protobuf/runtime/protoiface: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/proto imports
	google.golang.org/protobuf/runtime/protoimpl: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/ptypes imports
	github.com/golang/protobuf/ptypes/any imports
	google.golang.org/protobuf/types/known/anypb: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/ptypes imports
	github.com/golang/protobuf/ptypes/duration imports
	google.golang.org/protobuf/types/known/durationpb: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer
go: cluster-operator imports
	github.com/prometheus/client_golang/prometheus imports
	github.com/golang/protobuf/ptypes imports
	github.com/golang/protobuf/ptypes/timestamp imports
	google.golang.org/protobuf/types/known/timestamppb: google.golang.org/protobuf@v1.26.0-rc.1: read "https://proxy.golang.org/google.golang.org/protobuf/@v/v1.26.0-rc.1.zip": stream error: stream ID 283; INTERNAL_ERROR; received from peer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants