CVE-2025-31492mod_auth_openidc allows OIDCProviderAuthRequestMethod POSTs to leak protected data
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libapache2-mod-auth-openidc | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libapache2-mod-auth-openidc | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-31492 | |
| Ubuntu 24.04 | libapache2-mod-auth-openidc | Fixed | 2.4.15.1-1ubuntu0.1 | UBUNTU-CVE-2025-31492 |
| Ubuntu 22.04 | libapache2-mod-auth-openidc | Fixed | 2.4.11-1ubuntu0.1 | UBUNTU-CVE-2025-31492 |
| Ubuntu 20.04 | libapache2-mod-auth-openidc | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-31492 | |
| Ubuntu 18.04 | libapache2-mod-auth-openidc | Fix pending | UBUNTU-CVE-2025-31492 | |
| Debian 14 | libapache2-mod-auth-openidc | Fixed | 2.4.16.11-1 | DEBIAN-CVE-2025-31492 |
| Debian 13 | libapache2-mod-auth-openidc | Fixed | 2.4.16.11-1 | DEBIAN-CVE-2025-31492 |
| Debian 12 | libapache2-mod-auth-openidc | Fixed | 2.4.12.3-2+deb12u3 | DEBIAN-CVE-2025-31492 |
| Red Hat Enterprise Linux 10 | mod_auth_openidc | Fixed | 0:2.4.15-4.el10_0.1 | RHSA-2025:7490 |
| Red Hat Enterprise Linux 9 | mod_auth_openidc | Fixed | 0:2.4.10-1.el9_6.1 | RHSA-2025:7419 |
| Red Hat Enterprise Linux 8 | cjose | Fixed | 0:0.6.1-4.module+el8.10.0+21813+b5444eb8 | RHSA-2025:3997 |
| Red Hat Enterprise Linux 8 | cjose-devel | Fixed | 0:0.6.1-4.module+el8.10.0+21813+b5444eb8 | RHSA-2025:3997 |
| Red Hat Enterprise Linux 8 | mod_auth_openidc | Fixed | 0:2.4.9.4-7.module+el8.10.0+23023+ba6d7066 | RHSA-2025:3997 |
| Red Hat Enterprise Linux 7 | mod_auth_openidc | Will not fix Out of support scope | ||
| AlmaLinux 10 | mod_auth_openidc | Fixed | 2.4.15-4.el10_0.1 | ALSA-2025:7490 |
| AlmaLinux 9 | mod_auth_openidc | Fixed | 2.4.10-1.el9_6.1 | ALSA-2025:7419 |
| AlmaLinux 8 | cjose | Fixed | 0.6.1-4.module_el8.10.0+3881+234adf82 | ALSA-2025:3997 |
| AlmaLinux 8 | cjose-devel | Fixed | 0.6.1-4.module_el8.9.0+3631+0ced13d7 | ALSA-2025:3997 |
| AlmaLinux 8 | mod_auth_openidc | Fixed | 2.4.9.4-7.module_el8.10.0+3978+e883c40d | ALSA-2025:3997 |
| Rocky Linux 10 | mod_auth_openidc | Fixed | 0:2.4.15-4.el10_0.1 | RLSA-2025:7490 |
| Rocky Linux 9 | mod_auth_openidc | Fixed | 0:2.4.10-1.el9_6.1 | RLSA-2025:7419 |
| Rocky Linux 8 | cjose | Fixed | 0:0.6.1-4.module+el8.9.0+1384+4b58c166 | RLSA-2025:3997 |
| Rocky Linux 8 | mod_auth_openidc | Fixed | 0:2.4.9.4-7.module+el8.10.0+1953+b76d6417 | RLSA-2025:3997 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenIDC mod_auth_openidc: affected: < 2.4.16.11
References
- https://github.com/OpenIDC/mod_auth_openidc/security/advisories/GHSA-59jp-rwph-878r
- https://github.com/OpenIDC/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.