GHSA-j34v-3552-5r7j: Github.com/pomerium/pomerium Multiple Security Issues Vulnerability

MODERATE
Published
Advisory Summary

GHSA-j34v-3552-5r7j is a MODERATE multiple security issues vulnerability (General Security Weakness) affecting Github.com/pomerium/pomerium libraries in the Go ecosystem. The issue involves multiple security issues in pomerium's embedded envoy. Remediation is available by upgrading affected packages to version 0.16.4.

GHSA-j34v-3552-5r7j at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-j34v-3552-5r7j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/pomerium/pomerium
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-j34v-3552-5r7j

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.16.4
Upgrade github.com/pomerium/pomerium to 0.16.4
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 GHSA-j34v-3552-5r7j, 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.16.4), 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 General Security Weakness. 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

Envoy, which Pomerium is based on, has issued multiple CVEs impacting stability and security. Though Pomerium may not be vulnerable to all of the issues, it is recommended that all users upgrade to Pomerium v0.16.4 as soon as possible to minimize risk. ### Impact - Possible DoS or crash - Resources available to unauthorized users - Pomerium may trust upstream certificates that should not be trusted ### Patches Patched in v0.16.4 ### Workarounds No ### References [Envoy Security Announcement](https://groups.google.com/g/envoy-security-announce/c/QBGxoqZdTR4) * [CVE-2021-43824](https://github.com/envoyproxy/envoy/security/advisories/GHSA-vj5m-rch8-5r2p) (CVSS Score 6.5, Medium): Envoy 1.21.0 and earlier - Potential null pointer dereference when using JWT filter safe_regex match * [CVE-2021-43825](https://github.com/envoyproxy/envoy/security/advisories/GHSA-h69p-g6xg-mhhh) (CVSS Score 6.1, Medium): Envoy 1.21.0 and earlier - Use-after-free when response filters increase response data, and increased data exceeds downstream buffer limits. * [CVE-2021-43826](https://github.com/envoyproxy/envoy/security/advisories/GHSA-cmx3-fvgf-83mf) (CVSS Score 6.1, Medium): Envoy 1.21.0 and earlier - Use-after-free when tunneling TCP over HTTP, if downstream disconnects during upstream connection establishment * [CVE-2022-21654](https://github.com/envoyproxy/envoy/security/advisories/GHSA-5j4x-g36v-m283) (CVSS Score 7.3, High): Envoy 1.7.0 and later - Incorrect configuration handling allows mTLS session re-use without re-validation after validation settings have changed. * [CVE-2022-21655](https://github.com/envoyproxy/envoy/security/advisories/GHSA-7r5p-7fmh-jxpg) (CVSS Score 7.5, High): Envoy 1.21 and earlier - Incorrect handling of internal redirects to routes with a direct response entry * [CVE-2022-21657](https://github.com/envoyproxy/envoy/security/advisories/GHSA-837m-wjrv-vm5g) (CVSS Score 3.1, Low): Envoy 1.20.1 and earlier - X.509 Extended Key Usage and Trust Purposes bypass ### For more information If you have any questions or comments about this advisory: Open an issue in [pomerium/pomerium](https://github.com/pomerium/pomerium/issues) Email us at [security@pomerium.com](mailto:security@pomerium.com)

GHSA-j34v-3552-5r7j Affected Github.com/pomerium/pomerium Versions

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

References

Frequently Asked Questions

What is GHSA-j34v-3552-5r7j?
GHSA-j34v-3552-5r7j is a security vulnerability in Github.com/pomerium/pomerium involving Multiple security issues in Pomerium's embedded envoy under General Security Weakness.
Which Github.com/pomerium/pomerium versions are affected?
Affected versions include releases prior to 0.16.4 across affected packages: github.com/pomerium/pomerium.
What version fixes GHSA-j34v-3552-5r7j?
Upgrading to 0.16.4 (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.16.4. Upgrade your dependency to 0.16.4 or later.
What CWE is associated with GHSA-j34v-3552-5r7j?
GHSA-j34v-3552-5r7j is classified under General Security Weakness.
How can I check Go dependencies for GHSA-j34v-3552-5r7j?
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-j34v-3552-5r7j",
  "modified" : "2022-03-01T22:04:17Z",
  "published" : "2022-03-01T22:04:17Z",
  "aliases" : [ ],
  "summary" : "Multiple security issues in Pomerium's embedded envoy",
  "details" : "Envoy, which Pomerium is based on, has issued multiple CVEs impacting stability and security.\n\nThough Pomerium may not be vulnerable to all of the issues, it is recommended that all users upgrade to Pomerium v0.16.4 as soon as possible to minimize risk.\n\n### Impact\n\n- Possible DoS or crash\n- Resources available to unauthorized users\n- Pomerium may trust upstream certificates that should not be trusted\n\n### Patches\nPatched in v0.16.4\n\n### Workarounds\nNo\n\n### References\n\n[Envoy Security Announcement](https://groups.google.com/g/envoy-security-announce/c/QBGxoqZdTR4)\n\n* [CVE-2021-43824](https://github.com/envoyproxy/envoy/security/advisories/GHSA-vj5m-rch8-5r2p) (CVSS Score 6.5, Medium): Envoy 1.21.0 and earlier - Potential null pointer dereference when using JWT filter safe_regex match\n* [CVE-2021-43825](https://github.com/envoyproxy/envoy/security/advisories/GHSA-h69p-g6xg-mhhh) (CVSS Score 6.1, Medium): Envoy 1.21.0 and earlier - Use-after-free when response filters increase response data, and increased data exceeds downstream buffer limits.\n* [CVE-2021-43826](https://github.com/envoyproxy/envoy/security/advisories/GHSA-cmx3-fvgf-83mf) (CVSS Score 6.1, Medium): Envoy 1.21.0 and earlier - Use-after-free when tunneling TCP over HTTP, if downstream disconnects during upstream connection establishment\n* [CVE-2022-21654](https://github.com/envoyproxy/envoy/security/advisories/GHSA-5j4x-g36v-m283) (CVSS Score 7.3, High): Envoy 1.7.0 and later - Incorrect configuration handling allows mTLS session re-use without re-validation after validation settings have changed.\n* [CVE-2022-21655](https://github.com/envoyproxy/envoy/security/advisories/GHSA-7r5p-7fmh-jxpg) (CVSS Score 7.5, High): Envoy 1.21 and earlier - Incorrect handling of internal redirects to routes with a direct response entry\n* [CVE-2022-21657](https://github.com/envoyproxy/envoy/security/advisories/GHSA-837m-wjrv-vm5g) (CVSS Score 3.1, Low): Envoy 1.20.1 and earlier - X.509 Extended Key Usage and Trust Purposes bypass\n\n### For more information\nIf you have any questions or comments about this advisory:\n\nOpen an issue in [pomerium/pomerium](https://github.com/pomerium/pomerium/issues)\nEmail us at [security@pomerium.com](mailto:security@pomerium.com)\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/pomerium/pomerium"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.16.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pomerium/pomerium/security/advisories/GHSA-j34v-3552-5r7j"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pomerium/pomerium"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-01T22:04:17Z",
    "nvd_published_at" : null
  }
}