CVE-2025-31492 Details
Description
mod_auth_openidc is an OpenID Certified authentication and authorization module for the Apache 2.x HTTP server that implements the OpenID Connect Relying Party functionality. Prior to 2.4.16.11, a bug in a mod_auth_openidc results in disclosure of protected content to unauthenticated users. The conditions for disclosure are an OIDCProviderAuthRequestMethod POST, a valid account, and there mustn't be any application-level gateway (or load balancer etc) protecting the server. When you request a protected resource, the response includes the HTTP status, the HTTP headers, the intended response (the self-submitting form), and the protected resource (with no headers). This is an example of a request for a protected resource, including all the data returned. In the case where mod_auth_openidc returns a form, it has to return OK from check_userid so as not to go down the error path in httpd. This means httpd will try to issue the protected resource. oidc_content_handler is called early, which has the opportunity to prevent the normal output being issued by httpd. oidc_content_handler has a number of checks for when it intervenes, but it doesn't check for this case, so the handler returns DECLINED. Consequently, httpd appends the protected content to the response. The issue has been patched in mod_auth_openidc versions >= 2.4.16.11.
A vulnerability in mod_auth_openidc, an OpenID Certified authentication and authorization module for Apache 2.x, prior to version 2.4.16.11, allows for the disclosure of protected content to unauthenticated users. This issue arises when the OIDCProviderAuthRequestMethod is set to POST, a valid account is used, and there is no application-level gateway or load balancer protecting the server. Under these conditions, requesting a protected resource results in the response containing the HTTP status, headers, the intended response (a self-submitting form), and the protected resource itself, without any headers. The content leakage occurs because the oidc_content_handler, which could intercept and prevent the output of protected content, does not check for this specific case, leading to the unauthorized data being included in the response.
Users should upgrade to mod_auth_openidc version 2.4.16.11 or later. For Debian 11 (bullseye) users, the updated version is 2.4.9.4-0+deb11u5.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 6, 2025CISA-ADP
Assessed Apr 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/04/msg00025.html | CVE | AdvisoryMailing ListRemedy |
| https://github.com/OpenIDC/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127 | [email protected] | Source CodeVendor |
| https://github.com/OpenIDC/mod_auth_openidc/security/advisories/GHSA-59jp-rwph-878r | [email protected] | AdvisoryExploitRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| OpenIDC mod_auth_openidc | <= 2.4.16.10 |
CPE
Remediation
| |
| Debian | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 17, 2025 | CVE Modified | CVE |
| Apr 6, 2025 | New CVE Received | [email protected] |
Volerion