RHSA-2026:58471

Vulnerability from csaf_redhat - Published: 2026-08-22 00:36 - Updated: 2026-09-21 17:22
Summary
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
Severity
Important
Notes
Topic: An update for Red Hat Hardened Images RPMs is now available.
Details: This update includes the following RPMs: oauth2-proxy: * oauth2-proxy-7.15.4-0.1.hum1 (aarch64, x86_64) * oauth2-proxy-7.15.4-0.1.hum1.src (src)
Terms of Use: This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.

A flaw was found in OAuth2 Proxy. When configured with `--reverse-proxy` and either `--skip-auth-regex` or `--skip-auth-route`, the proxy may trust a client-supplied `X-Forwarded-Uri` header. An unauthenticated remote attacker can exploit this by spoofing the header, leading to an authentication bypass. This allows unauthorized access to protected routes without a valid session.

CWE-290 - Authentication Bypass by Spoofing
Affected products
Product Identifier Version Remediation
Unresolved product id: Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@aarch64 —
Vendor Fix fix
Workaround
Unresolved product id: Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@src —
Vendor Fix fix
Workaround
Unresolved product id: Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@x86_64 —
Vendor Fix fix
Workaround
Threats
Impact Important

{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Important"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright \u00a9 Red Hat, Inc. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "summary",
        "text": "An update for Red Hat Hardened Images RPMs is now available.",
        "title": "Topic"
      },
      {
        "category": "general",
        "text": "This update includes the following RPMs:\n\noauth2-proxy:\n  * oauth2-proxy-7.15.4-0.1.hum1 (aarch64, x86_64)\n  * oauth2-proxy-7.15.4-0.1.hum1.src (src)",
        "title": "Details"
      },
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "https://access.redhat.com/errata/RHSA-2026:58471",
        "url": "https://access.redhat.com/errata/RHSA-2026:58471"
      },
      {
        "category": "external",
        "summary": "https://images.redhat.com/",
        "url": "https://images.redhat.com/"
      },
      {
        "category": "external",
        "summary": "https://access.redhat.com/security/cve/CVE-2026-40575",
        "url": "https://access.redhat.com/security/cve/CVE-2026-40575"
      },
      {
        "category": "external",
        "summary": "https://access.redhat.com/security/updates/classification/",
        "url": "https://access.redhat.com/security/updates/classification/"
      },
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_58471.json"
      }
    ],
    "title": "Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update",
    "tracking": {
      "current_release_date": "2026-09-21T17:22:32+00:00",
      "generator": {
        "date": "2026-09-21T17:22:32+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.4.0"
        }
      },
      "id": "RHSA-2026:58471",
      "initial_release_date": "2026-08-22T00:36:49+00:00",
      "revision_history": [
        {
          "date": "2026-08-22T00:36:49+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-09-21T10:38:22+00:00",
          "number": "2",
          "summary": "Last updated version"
        },
        {
          "date": "2026-09-21T17:22:32+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Hardened Images",
                "product": {
                  "name": "Red Hat Hardened Images",
                  "product_id": "Red Hat Hardened Images",
                  "product_identification_helper": {
                    "cpe": "cpe:/a:redhat:hummingbird:1"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Hardened Images"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "oauth2-proxy-0:7.15.4-0.1.hum1@aarch64",
                "product": {
                  "name": "oauth2-proxy-0:7.15.4-0.1.hum1@aarch64",
                  "product_id": "oauth2-proxy-0:7.15.4-0.1.hum1@aarch64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/oauth2-proxy@7.15.4-0.1.hum1?arch=aarch64\u0026distro=hummingbird-20251124\u0026repository_id=public-hummingbird-aarch64-rpms"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "aarch64"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "oauth2-proxy-0:7.15.4-0.1.hum1@src",
                "product": {
                  "name": "oauth2-proxy-0:7.15.4-0.1.hum1@src",
                  "product_id": "oauth2-proxy-0:7.15.4-0.1.hum1@src",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/oauth2-proxy@7.15.4-0.1.hum1?arch=src\u0026distro=hummingbird-20251124\u0026repository_id=public-hummingbird-source-rpms"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "src"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "oauth2-proxy-0:7.15.4-0.1.hum1@x86_64",
                "product": {
                  "name": "oauth2-proxy-0:7.15.4-0.1.hum1@x86_64",
                  "product_id": "oauth2-proxy-0:7.15.4-0.1.hum1@x86_64",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/redhat/oauth2-proxy@7.15.4-0.1.hum1?arch=x86_64\u0026distro=hummingbird-20251124\u0026repository_id=public-hummingbird-x86_64-rpms"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "oauth2-proxy-0:7.15.4-0.1.hum1@aarch64 as a component of Red Hat Hardened Images",
          "product_id": "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@aarch64"
        },
        "product_reference": "oauth2-proxy-0:7.15.4-0.1.hum1@aarch64",
        "relates_to_product_reference": "Red Hat Hardened Images"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "oauth2-proxy-0:7.15.4-0.1.hum1@src as a component of Red Hat Hardened Images",
          "product_id": "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@src"
        },
        "product_reference": "oauth2-proxy-0:7.15.4-0.1.hum1@src",
        "relates_to_product_reference": "Red Hat Hardened Images"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "oauth2-proxy-0:7.15.4-0.1.hum1@x86_64 as a component of Red Hat Hardened Images",
          "product_id": "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@x86_64"
        },
        "product_reference": "oauth2-proxy-0:7.15.4-0.1.hum1@x86_64",
        "relates_to_product_reference": "Red Hat Hardened Images"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2026-40575",
      "cwe": {
        "id": "CWE-290",
        "name": "Authentication Bypass by Spoofing"
      },
      "discovery_date": "2026-04-22T00:01:48.616402+00:00",
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "2460449"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "A flaw was found in OAuth2 Proxy. When configured with `--reverse-proxy` and either `--skip-auth-regex` or `--skip-auth-route`, the proxy may trust a client-supplied `X-Forwarded-Uri` header. An unauthenticated remote attacker can exploit this by spoofing the header, leading to an authentication bypass. This allows unauthorized access to protected routes without a valid session.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "oauth2-proxy: github.com/oauth2-proxy/oauth2-proxy: OAuth2 Proxy: Authentication bypass due to spoofed X-Forwarded-Uri header",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "There\u0027s an Important flaw in `oauth2-proxy` software where it trusts a client supplied `X-Forwarded-Uri` request header. This header is used by `oauth2-proxy` to identify the original URI from the incoming request it\u0027s currently handling. An attacker which manages to spoof the requests sent to it when it\u0027s running behind a reverse-proxy may change this header field to match the routes or the regular expressions configured to have authentication skipped, as a consequence the attacker may manage to have access to protected resources or internal routes without any kind of authentication being required resulting in a high impact for data confidentiality and integrity for the services positioned behind the reverse proxy.\n\nRed Hat Product Security team has rated this vulnerability as having a impact of Important as for a `oauth2-proxy` being considered vulnerable it should be being executed with the following specific configuration options enabled:\n\n1) `--reverse-proxy`\n2) `--skip-auth-regex` or `--skip-auth-route`\n\nAdditionally to exploit this vulnerability the attacker should be able to change the headers in the request being sent (either via a local proxy or by performing a Man-In-The-Middle attack before) and should have previous knowledge about the routes or patterns of URI which the authentication are being skipped by the `oauth2-proxy` deployment.",
          "title": "Statement"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product\u0027s status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@aarch64",
          "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@src",
          "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@x86_64"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2026-40575"
        },
        {
          "category": "external",
          "summary": "RHBZ#2460449",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2460449"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2026-40575",
          "url": "https://www.cve.org/CVERecord?id=CVE-2026-40575"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2026-40575",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40575"
        },
        {
          "category": "external",
          "summary": "https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x",
          "url": "https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x"
        }
      ],
      "release_date": "2026-04-21T23:20:30.486000+00:00",
      "remediations": [
        {
          "category": "vendor_fix",
          "date": "2026-08-22T00:36:49+00:00",
          "details": "For details on how to apply this update, which includes the changes described in this advisory, refer to:\nhttps://images.redhat.com/",
          "product_ids": [
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@aarch64",
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@src",
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@x86_64"
          ],
          "restart_required": {
            "category": "none"
          },
          "url": "https://access.redhat.com/errata/RHSA-2026:58471"
        },
        {
          "category": "workaround",
          "details": "This issue can be mitigated by one of the options bellow:\n\n1) Strip any client-provided `X-Forwarded-Uri` header at any layer before it reaches `oauth2-proxy`;\n2) Overwrite the `X-Forwarded-Uri` header with the actual request URI before the request reaches `oauth2-proxy`. If you are using NGINX you can use the following example to create your tailored mitigation:\n\n~~~\n  location /internal-auth/ {\n    internal; # Ensure external users can\u0027t access this path\n\n    # Make sure the OAuth2 Proxy knows where the original request came from.\n    proxy_set_header Host       $host;\n    proxy_set_header X-Real-IP  $remote_addr;\n    # set the value to the actual $request_uri and therefore strip any user provided X-Forwarded-Uri\n    proxy_set_header X-Forwarded-Uri $request_uri;\n\n    proxy_pass http://oauth2-proxy:4180/;\n  }\n~~~\n\n\n3) Restrict direct client access to OAuth2 Proxy so it can only be reached through a trusted reverse proxy;\n4) Remove or narrow --skip-auth-route / --skip-auth-regex rules where possible;",
          "product_ids": [
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@aarch64",
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@src",
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@x86_64"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 8.7,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "CHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N",
            "version": "3.1"
          },
          "products": [
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@aarch64",
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@src",
            "Red Hat Hardened Images:oauth2-proxy-0:7.15.4-0.1.hum1@x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Important"
        }
      ],
      "title": "oauth2-proxy: github.com/oauth2-proxy/oauth2-proxy: OAuth2 Proxy: Authentication bypass due to spoofed X-Forwarded-Uri header"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…