CVE-2022-24797: Github.com/pomerium/pomerium Exposure Of Debug And Metrics Vulnerability

MODERATE
Advisory Identifier: GHSA-q98f-2x4p-prjr
CVSS 6.5
CWE-200
Published
Advisory Summary

CVE-2022-24797 is a MODERATE (CVSS 6.5) exposure of debug and metrics vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Github.com/pomerium/pomerium libraries in the Go ecosystem. The issue involves exposure of debug and metrics endpoints in pomerium. Remediation is available by upgrading affected packages to version 0.17.1.

CVE-2022-24797 at a Glance

CVE Identifier CVE-2022-24797
GHSA Identifier GHSA-q98f-2x4p-prjr
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Github.com/pomerium/pomerium
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2022-24797

To remediate this vulnerability, upgrade all affected Github.com/pomerium/pomerium dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/pomerium/pomerium fixed: 0.17.1
Upgrade github.com/pomerium/pomerium to 0.17.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/pomerium/pomerium

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-24797, inspect your project dependencies for Github.com/pomerium/pomerium:

inspect dependencies for github.com/pomerium/pomerium

Analyze the terminal output to locate any version of Github.com/pomerium/pomerium in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Github.com/pomerium/pomerium, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact In distributed service mode, Pomerium's Authenticate service exposes pprof debug and prometheus metrics handlers to untrusted traffic. This can leak potentially sensitive environmental information or lead to limited denial of service conditions. ### Patches v0.17.1 ### Workarounds Block access to `/debug` and `/metrics` paths on the authenticate service. This can be done with any L7 proxy, including Pomerium's own proxy service. ### References https://github.com/pomerium/pomerium/pull/3212 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Pomerium](https://github.com/pomerium/pomerium) * Email us at [security@pomerium.com](mailto:security@pomerium.com)

CVE-2022-24797 Affected Github.com/pomerium/pomerium Versions

1 component(s)
Fixed Versions:
0.17.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/pomerium/pomerium
Go
≥ 0.16.0
< 0.17.1
0.17.1

References

Frequently Asked Questions

What is CVE-2022-24797?
CVE-2022-24797 is a security vulnerability in Github.com/pomerium/pomerium involving Exposure of debug and metrics endpoints in Pomerium under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Github.com/pomerium/pomerium versions are affected?
Affected versions include releases prior to 0.17.1 across affected packages: github.com/pomerium/pomerium.
What version fixes CVE-2022-24797?
Upgrading to 0.17.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/pomerium/pomerium affected?
Yes, github.com/pomerium/pomerium is affected in releases prior to 0.17.1. Upgrade your dependency to 0.17.1 or later.
What is the CVSS score of CVE-2022-24797?
CVE-2022-24797 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L.
What CWE is associated with CVE-2022-24797?
CVE-2022-24797 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Go dependencies for CVE-2022-24797?
Run the dependency tree command: 'inspect dependencies for github.com/pomerium/pomerium'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q98f-2x4p-prjr",
  "modified" : "2024-09-06T21:01:22Z",
  "published" : "2024-09-06T21:01:22Z",
  "aliases" : [ "CVE-2022-24797" ],
  "summary" : "Exposure of debug and metrics endpoints in Pomerium",
  "details" : "### Impact\nIn distributed service mode, Pomerium's Authenticate service exposes pprof debug and prometheus metrics handlers to untrusted traffic.  This can leak potentially sensitive environmental information or lead to limited denial of service conditions.\n\n### Patches\nv0.17.1\n\n### Workarounds\nBlock access to `/debug` and `/metrics` paths on the authenticate service.  This can be done with any L7 proxy, including Pomerium's own proxy service.\n\n### References\nhttps://github.com/pomerium/pomerium/pull/3212\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Pomerium](https://github.com/pomerium/pomerium)\n* Email us at [security@pomerium.com](mailto:security@pomerium.com)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pomerium/pomerium"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.16.0"
      }, {
        "fixed" : "0.17.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pomerium/pomerium/security/advisories/GHSA-q98f-2x4p-prjr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24797"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pomerium/pomerium/pull/3212"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pomerium/pomerium/commit/b435f73e2b54088da2aca5e8c3aa1808293d6903"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pomerium/pomerium"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-0413"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-06T21:01:22Z",
    "nvd_published_at" : "2022-03-31T23:15:08Z"
  }
}