CVE-2024-47616
JSON

6.8medium

Pomerium's service account access token may grant unintended access to databroker API

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.58% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-r7rh-jww5-5fjrGO-2024-3179

Description

Pomerium is an identity and context-aware access proxy. The Pomerium databroker service is responsible for managing all persistent Pomerium application state. Requests to the databroker service API are authorized by the presence of a JSON Web Token (JWT) signed by a key known by all Pomerium services in the same deployment. However, incomplete validation of this JWT meant that some service account access tokens would incorrectly be treated as valid for the purpose of databroker API authorization. Improper access to the databroker API could allow exfiltration of user info, spoofing of user sessions, or tampering with Pomerium routes, policies, and other settings. A Pomerium deployment is susceptible to this issue if all of the following conditions are met, you have issued a service account access token using Pomerium Zero or Pomerium Enterprise, the access token has an explicit expiration date in the future, and the core Pomerium databroker gRPC API is not otherwise secured by network access controls. This vulnerability is fixed in 0.27.1.

Affected

Product or packageVersionsReported by
pomerium pomerium< 0.27.1CVE List
github.com/pomerium/pomerium (Go)before 0.27.1GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub6.8high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-863

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Pomerium is an identity and context-aware access proxy. The Pomerium databroker service is responsible for managing all persistent Pomerium application state. Requests to the databroker service API are authorized by the presence of a JSON Web Token (JWT) signed by a key known by all Pomerium services in the same deployment. However, incomplete validation of this JWT meant that some service account access tokens would incorrectly be treated as valid for the purpose of databroker API authorization. Improper access to the databroker API could allow exfiltration of user info, spoofing of user sessions, or tampering with Pomerium routes, policies, and other settings. A Pomerium deployment is susceptible to this issue if all of the following conditions are met, you have issued a service account access token using Pomerium Zero or Pomerium Enterprise, the access token has an explicit expiration date in the future, and the core Pomerium databroker gRPC API is not otherwise secured by network access controls. This vulnerability is fixed in 0.27.1.

GitHub Advisory Database
Impact

We've identified a vulnerability in the Pomerium databroker service API that may grant unintended access under specific conditions. This affects only certain Pomerium Zero and Pomerium Enterprise deployments.

Who is affected?

A Pomerium deployment is susceptible to this issue if all of the following conditions are met:

  • You have issued a service account access token using Pomerium Zero or Pomerium Enterprise.
  • The access token has an explicit expiration date in the future.
  • The core Pomerium databroker gRPC API is not otherwise secured by network access controls.

If your deployment does not meet all of these conditions, you are not affected by this vulnerability.

Details

The Pomerium databroker service is responsible for managing all persistent Pomerium application state. Requests to the databroker service API are authorized by the presence of a JSON Web Token (JWT) signed by a key known by all Pomerium services in the same deployment. However, incomplete validation of this JWT meant that some service account access tokens would incorrectly be treated as valid for the purpose of databroker API authorization.

Improper access to the databroker API could allow exfiltration of user info, spoofing of user sessions, or tampering with Pomerium routes, policies, and other settings.

Discovery

This issue was discovered during internal review. At this time we have no evidence to suggest that this vulnerability has been exploited in the wild.

Patches

We have released Pomerium v0.27.1 which includes a fix for the JWT validation logic. All affected users are strongly encouraged to upgrade to this version.

Workarounds

If you cannot upgrade immediately, consider the following mitigations:

  • Network access controls: Restrict access to the Pomerium internal gRPC API by configuring your network firewall or security groups to limit access to trusted sources only. Ensure that the port specified in the grpc_address setting is not exposed to unauthorized networks.

  • For Pomerium Zero deployments only: As of Pomerium v0.26.0, you can disable the gRPC API listener by setting grpc_address: "" in your YAML configuration file. In all-in-one mode, Pomerium does not require the internal gRPC API to be exposed beyond localhost.

For more information

If you have questions or need further assistance:

Go Vulnerability Database

Pomerium service account access token may grant unintended access to databroker API in github.com/pomerium/pomerium

NVD (es)

Pomerium es un proxy de acceso que reconoce la identidad y el contexto. El servicio de agente de datos Pomerium es responsable de administrar todo el estado persistente de la aplicación Pomerium. Las solicitudes a la API del servicio de agente de datos se autorizan mediante la presencia de un token web JSON (JWT) firmado por una clave conocida por todos los servicios Pomerium en la misma implementación. Sin embargo, la validación incompleta de este JWT significaba que algunos tokens de acceso a la cuenta de servicio se tratarían incorrectamente como válidos para el propósito de la autorización de la API del agente de datos. El acceso inadecuado a la API del agente de datos podría permitir la exfiltración de información del usuario, la suplantación de sesiones de usuario o la manipulación de las rutas, políticas y otras configuraciones de Pomerium. Una implementación de Pomerium es susceptible a este problema si se cumplen todas las siguientes condiciones: ha emitido un token de acceso a la cuenta de servicio mediante Pomerium Zero o Pomerium Enterprise, el token de acceso tiene una fecha de vencimiento explícita en el futuro y la API gRPC del agente de datos Pomerium principal no está protegida de otra manera por controles de acceso a la red. Esta vulnerabilidad se corrigió en 0.27.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-47616 changed 2024-10-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-r7rh-jww5-5fjr changed 2024-10-09CC-BY-4.0
Go Vulnerability DatabaseGO-2024-3179 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-47616 changed 2026-06-17Public domain