PT-2022-4597 · Unknown+8 · Client Golang+8

Bwplotka

·

Publicado

2022-02-15

·

Atualizado

2026-06-04

·

CVE-2022-21698

CVSS v2.0

7.8

Alta

VetorAV:N/AC:L/Au:N/C:N/I:N/A:C
Nome do software vulnerável e versões afetadas
Versões do client golang anteriores à 1.11.1
Descrição
O servidor HTTP no client golang está suscetível a um ataque de negação de serviço (DoS) devido a cardinalidade ilimitada e a um possível esgotamento de memória ao processar solicitações com métodos HTTP não padronizados. Para ser afetado, um software instrumentado deve usar qualquer middleware promhttp.InstrumentHandler*, exceto RequestsInFlight, não filtrar nenhum método específico antes do middleware, passar métricas com o nome de rótulo method para o middleware e não ter nenhum firewall/LB/proxy que filtre solicitações com method desconhecido.
Recomendações
Para versões do client golang anteriores à 1.11.1, atualize para a versão 1.11.1 ou posterior para resolver o problema.
Como solução temporária, considere remover o nome da etiqueta method do contador/medidor usado no InstrumentHandler.
Como alternativa, desative os manipuladores promhttp afetados ou adicione um middleware personalizado antes do manipulador promhttp que irá sanitizar o método de solicitação fornecido pelo Go http.Request.
Usar um proxy reverso ou um firewall de aplicativos web, configurado para permitir apenas um conjunto limitado de métodos, também pode ajudar a mitigar o problema.

Exploit

Correção

DoS

Resource Exhaustion

Allocation of Resources Without Limits

Missing Release of Resource after Effective Lifetime

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

ALSA-2022:1762
ALSA-2022:7519
ALSA-2022:7529
ALSA-2022:8057
ALSA-2022_1762
ALSA-2022_7529
ALSA-2025_16880
AZL-31981
AZL-33567
AZL-33603
AZL-33611
AZL-33614
AZL-33618
AZL-33620
AZL-33623
AZL-33626
AZL-33634
AZL-33637
AZL-33639
AZL-34541
AZL-34835
AZL-34999
AZL-35012
AZL-35040
AZL-35122
AZL-39665
AZL-43738
AZL-45249
BDU:2022-05475
CESA-2022_1762
CESA-2022_7519
CESA-2022_7529
CVE-2022-21698
GHSA-CG3Q-J54F-5P7P
GO-2022-0322
GO-2023-1546
GO-2023-2113
MGASA-2022-0180
MGASA-2023-0213
OPENSUSE-SU-2022_1435-1
OPENSUSE-SU-2022_2139-1
OPENSUSE-SU-2022_2140-1
OPENSUSE-SU-2022_2834-1
OPENSUSE-SU-2022_2839-1
OPENSUSE-SU-2022_3745-1
OPENSUSE-SU-2024:11965-1
OPENSUSE-SU-2024:12231-1
OPENSUSE-SU-2024:12259-1
OPENSUSE-SU-2024:12400-1
OPENSUSE-SU-2026:10634-1
OPENSUSE-SU-2026:10644-1
RHSA-2022:1762
RHSA-2022:2280
RHSA-2022:4667
RHSA-2022:5068
RHSA-2022:6042
RHSA-2022:6061
RHSA-2022:6066
RHSA-2022:7519
RHSA-2022:7529
RHSA-2022:8057
RHSA-2022_1762
RHSA-2022_7519
RHSA-2022_7529
RHSA-2022_8057
RHSA-2024:0564
RLSA-2022:1762
RLSA-2022:7519
RLSA-2022:7529
RLSA-2022:8057
SUSE-RU-2022:2145-1
SUSE-SU-2022:1433-1
SUSE-SU-2022:1434-1
SUSE-SU-2022:1435-1
SUSE-SU-2022:1531-1
SUSE-SU-2022:1545-1
SUSE-SU-2022:2134-1
SUSE-SU-2022:2137-1
SUSE-SU-2022:2139-1
SUSE-SU-2022:2140-1
SUSE-SU-2022:2145-1
SUSE-SU-2022:2834-1
SUSE-SU-2022:2839-1
SUSE-SU-2022:2839-2
SUSE-SU-2022:3745-1
SUSE-SU-2022:3747-1
SUSE-SU-2022_1435-1
SUSE-SU-2022_2137-1
SUSE-SU-2022_2140-1
SUSE-SU-2022_3745-1
SUSE-SU-2022_3747-1
SUSE-SU-2024:0191-1
SUSE-SU-2026:2241-1
SUSE-SU-2026:2243-1
SUSE-SU-2026:2254-1
SUSE-SU-2026:2265-1

Produtos afetados

Almalinux
Astra Linux
Centos
Debian
Red Hat
Red Os
Rocky Linux
Suse
Client Golang