Skip to content
OpenAdvisories
High · 8.2 CVE-2025-31492 EUVD-2025-10018

mod_auth_openidc allows OIDCProviderAuthRequestMethod POSTs to leak protected data

Published Apr 6, 2025 · Updated Apr 17, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
OpenIDC mod_auth_openidc < 2.4.16.11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libapache2-mod-auth-openidc 2.4.16.11-1 —
Debian 13 libapache2-mod-auth-openidc 2.4.16.11-1 —
Debian 12 libapache2-mod-auth-openidc 2.4.12.3-2+deb12u3 DSA-5904-1
Debian 11 libapache2-mod-auth-openidc 2.4.9.4-0+deb11u5 DLA-4129-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 libapache2-mod-auth-openidc No fix yet —
Ubuntu 24.04 LTS libapache2-mod-auth-openidc 2.4.15.1-1ubuntu0.1 USN-7446-1
Ubuntu 22.04 LTS libapache2-mod-auth-openidc 2.4.11-1ubuntu0.1 USN-7446-1
Ubuntu 20.04 LTS libapache2-mod-auth-openidc No fix yet —
Ubuntu 18.04 LTS libapache2-mod-auth-openidc No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 mod_auth_openidc 2.4.15-4.el10_0.1 RHSA-2025:7490
RHEL 9 mod_auth_openidc 2.4.10-1.el9_6.1 RHSA-2025:7419
RHEL 8 cjose +1 0.6.1-4.module+el8.10.0+21813+b5444eb8 RHSA-2025:3997
RHEL 8 mod_auth_openidc 2.4.9.4-7.module+el8.10.0+23023+ba6d7066 RHSA-2025:3997
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS mod_auth_openidc 2.4.9.4-4.el9_4.1 RHSA-2025:4224
RHEL 9.2 EUS mod_auth_openidc 2.4.9.4-1.el9_2.2 RHSA-2025:4225
RHEL 9.0 E4S mod_auth_openidc 2.4.9.4-1.el9_0.2 RHSA-2025:3945
RHEL 8.8 EUS cjose +1 0.6.1-3.module+el8.8.0+19464+578f4546 RHSA-2025:4128
RHEL 8.8 EUS mod_auth_openidc 2.4.9.4-1.module+el8.8.0+23028+2aae5ce6.1 RHSA-2025:4128
RHEL 8.6 TUS cjose +1 0.6.1-3.module+el8.6.0+19463+7d2e1f9c RHSA-2025:4192
RHEL 8.6 TUS mod_auth_openidc 2.4.9.4-1.module+el8.6.0+23040+515b7c43.1 RHSA-2025:4192
RHEL 8.6 E4S cjose +1 0.6.1-3.module+el8.6.0+19463+7d2e1f9c RHSA-2025:4192
RHEL 8.6 E4S mod_auth_openidc 2.4.9.4-1.module+el8.6.0+23040+515b7c43.1 RHSA-2025:4192
RHEL 8.6 AUS cjose +1 0.6.1-3.module+el8.6.0+19463+7d2e1f9c RHSA-2025:4192
RHEL 8.6 AUS mod_auth_openidc 2.4.9.4-1.module+el8.6.0+23040+515b7c43.1 RHSA-2025:4192
RHEL 8.4 TUS cjose +1 0.6.1-3.module+el8.4.0+19462+14bde120 RHSA-2025:4227
RHEL 8.4 TUS mod_auth_openidc 2.4.9.4-1.module+el8.4.0+23043+b69acfab.1 RHSA-2025:4227
RHEL 8.4 E4S cjose +1 0.6.1-3.module+el8.4.0+19462+14bde120 RHSA-2025:4227
RHEL 8.4 E4S mod_auth_openidc 2.4.9.4-1.module+el8.4.0+23043+b69acfab.1 RHSA-2025:4227
RHEL 8.4 AUS cjose +1 0.6.1-3.module+el8.4.0+19462+14bde120 RHSA-2025:4227
RHEL 8.4 AUS mod_auth_openidc 2.4.9.4-1.module+el8.4.0+23043+b69acfab.1 RHSA-2025:4227
RHEL 8.2 AUS cjose +1 0.6.1-3.module+el8.2.0+19461+3a40b6ee RHSA-2025:4228
RHEL 8.2 AUS mod_auth_openidc 2.4.9.4-1.module+el8.2.0+23039+41dcbbc6 RHSA-2025:4228

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 mod_auth_openidc 2.4.15-4.el10_0.1 ALSA-2025:7490
AlmaLinux 9 mod_auth_openidc 2.4.10-1.el9_6.1 ALSA-2025:7419
AlmaLinux 8 cjose +1 0.6.1-4.module_el8.9.0+3631+0ced13d7 ALSA-2025:3997
AlmaLinux 8 mod_auth_openidc 2.4.9.4-7.module_el8.10.0+3978+e883c40d ALSA-2025:3997

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 mod_auth_openidc 2.4.15-4.el10_0.1 RLSA-2025:7490
Rocky Linux 9 mod_auth_openidc 2.4.10-1.el9_6.1 RLSA-2025:7419
Rocky Linux 8 cjose 0.6.1-4.module+el8.9.0+1384+4b58c166 RLSA-2025:3997
Rocky Linux 8 mod_auth_openidc 2.4.9.4-7.module+el8.10.0+1953+b76d6417 RLSA-2025:3997
ReleasePackageFixed inAdvisory
SLES 15 SP7 apache2-mod_auth_openidc 2.4.17.1-150600.16.14.1 SUSE-SU-2025:4532-1
SLES 15 SP6 apache2-mod_auth_openidc 2.3.8-150600.16.8.1 SUSE-SU-2025:4532-1, SUSE-SU-2025:1286-1
SLES 15 SP5 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SLES 15 SP4 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SLES 15 SP3 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 apache2-mod_auth_openidc 2.4.0-7.15.1 SUSE-SU-2025:1465-1, SUSE-SU-2025:1337-1
SLES for SAP 15 SP5 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SLES for SAP 15 SP4 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SLES for SAP 15 SP3 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SLE HPC 15 SP5 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SLE HPC 15 SP4 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SLE HPC 15 SP3 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SUSE Manager Server 4.3 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SUSE Manager Proxy 4.3 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
SUSE Enterprise Storage 7.1 apache2-mod_auth_openidc 2.3.8-150100.3.31.1 SUSE-SU-2025:1324-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2-mod_auth_openidc 2.4.16.11-1.1 openSUSE-SU-2025:14972-1
openSUSE Leap 15.6 apache2-mod_auth_openidc 2.3.8-150600.16.8.1 SUSE-SU-2025:4532-1, SUSE-SU-2025:1286-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 mod_auth_openidc 2.4.16.11-1.amzn2023 ALAS2023-2025-1188

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 mod_auth_openidc No fix yet —
Azure Linux 2 (CBL-Mariner) mod_auth_openidc No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 mod_auth_openidc 2.4.15-4.el10_0.1 ELSA-2025-7490
Oracle Linux 9 mod_auth_openidc 2.4.10-1.el9_6.1 ELSA-2025-7419
Oracle Linux 8 cjose +1 0.6.1-4.module+el8.10.0+90549+7b4eddfc ELSA-2025-3997
Oracle Linux 8 mod_auth_openidc 2.4.9.4-7.module+el8.10.0+90549+7b4eddfc ELSA-2025-3997

Advisories 30

References