CVE-2025-31492

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-31492
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-31492.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-31492
Aliases
  • GHSA-59jp-rwph-878r
Downstream
Related
Published
2025-04-06T20:02:20Z
Modified
2025-10-20T20:31:18.202023Z
Severity
  • 8.2 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
mod_auth_openidc allows OIDCProviderAuthRequestMethod POSTs to leak protected data
Details

modauthopenidc 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 modauthopenidc 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 modauthopenidc returns a form, it has to return OK from checkuserid so as not to go down the error path in httpd. This means httpd will try to issue the protected resource. oidccontenthandler is called early, which has the opportunity to prevent the normal output being issued by httpd. oidccontenthandler 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 modauth_openidc versions >= 2.4.16.11.

Database specific
{
    "cwe_ids": [
        "CWE-200"
    ]
}
References

Affected packages

Git / github.com/openidc/mod_auth_openidc

Affected ranges

Type
GIT
Repo
https://github.com/openidc/mod_auth_openidc
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

2.*

2.3.11rc1

v1.*

v1.5
v1.5.1
v1.5.2
v1.5.3
v1.5.4
v1.5.5
v1.6.0
v1.7.0
v1.7.1
v1.7.2
v1.7.3
v1.8.0
v1.8.1
v1.8.10
v1.8.2
v1.8.3
v1.8.4
v1.8.5
v1.8.6
v1.8.7
v1.8.8
v1.8.9

v2.*

v2.0.0
v2.0.0rc1
v2.0.0rc4
v2.1.0
v2.1.1
v2.1.2
v2.1.3
v2.1.4
v2.1.5
v2.1.6
v2.2.0
v2.3.0
v2.3.0rc0
v2.3.0rc3
v2.3.1
v2.3.10
v2.3.10.1
v2.3.10.2
v2.3.11
v2.3.2
v2.3.3
v2.3.4
v2.3.5
v2.3.6
v2.3.7
v2.3.8
v2.3.9
v2.4.0
v2.4.0.1
v2.4.0.2
v2.4.0.3
v2.4.0.4
v2.4.1
v2.4.10
v2.4.11
v2.4.11.1
v2.4.11.2
v2.4.11.3
v2.4.12
v2.4.12.1
v2.4.12.2
v2.4.12.3
v2.4.13
v2.4.13.1
v2.4.13.2
v2.4.14
v2.4.14.1
v2.4.14.2
v2.4.14.3
v2.4.14.4
v2.4.15
v2.4.15.1
v2.4.15.2
v2.4.15.3
v2.4.15.4
v2.4.15.5
v2.4.15.6
v2.4.15.7
v2.4.16
v2.4.16.1
v2.4.16.10
v2.4.16.2
v2.4.16.3
v2.4.16.4
v2.4.16.5
v2.4.16.6
v2.4.16.7
v2.4.16.8
v2.4.16.9
v2.4.2
v2.4.2.1
v2.4.3
v2.4.4
v2.4.4.1
v2.4.5
v2.4.6
v2.4.7
v2.4.7.1
v2.4.7.2
v2.4.8.1
v2.4.8.2
v2.4.8.3
v2.4.8.4
v2.4.9
v2.4.9.1
v2.4.9.2
v2.4.9.3
v2.4.9.4

Database specific

vanir_signatures

[
    {
        "signature_type": "Line",
        "id": "CVE-2025-31492-45059967",
        "source": "https://github.com/openidc/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/metrics.c"
        },
        "digest": {
            "line_hashes": [
                "60752665166652105253974685361896994171",
                "74813840277742379909183847298390476242",
                "225534800735404265963289227270674808569",
                "112223001295335361215033174014439427957"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-31492-5346df6b",
        "source": "https://github.com/openidc/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "oidc_proto_request_auth",
            "file": "src/proto/request.c"
        },
        "digest": {
            "function_hash": "42679494528842509420146487998380067828",
            "length": 3324.0
        }
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-31492-8362b05d",
        "source": "https://github.com/openidc/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "oidc_content_handler",
            "file": "src/handle/content.c"
        },
        "digest": {
            "function_hash": "219567634886624621643979323786316740949",
            "length": 1635.0
        }
    },
    {
        "signature_type": "Function",
        "id": "CVE-2025-31492-84ef0705",
        "source": "https://github.com/openidc/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "oidc_proto_request_html_post",
            "file": "src/proto/request.c"
        },
        "digest": {
            "function_hash": "150194176100763179396990219541150612757",
            "length": 596.0
        }
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-31492-d8436634",
        "source": "https://github.com/openidc/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/metrics.h"
        },
        "digest": {
            "line_hashes": [
                "132390412332135407820500828456656377767",
                "222790653182183082141293378275544214268",
                "305112832760906037656769865192799434508",
                "72763920271165336249552318575618146540"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-31492-ef49f309",
        "source": "https://github.com/openidc/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/proto/request.c"
        },
        "digest": {
            "line_hashes": [
                "151685786233816719287413932408956571775",
                "1541151351587428429645205531063528366",
                "265493990360225933831858458259963258316",
                "15165660690811625481352318289632661404",
                "88418788057032604630927869122156984230",
                "324945504875846686253547551789434664662",
                "270105169307417343515510192379955501230",
                "312239661967063852723339454015925764067",
                "327392483240551701481944441284418927493",
                "53066933390083003882473684938378943056",
                "66353144577568645906124216615666901644",
                "297432455571253456355262810677882303575",
                "106248606998333429934180015698651104599",
                "195885737741724172307347210160258261028",
                "249757800593442871399035794448930199211",
                "172564274529436145236983621394599387350",
                "184939303816113117211631867983881021844",
                "10773618864888768134484746273438785808",
                "35814330643245449567571960294001326408",
                "187491800494023910835727537232974597978"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_type": "Line",
        "id": "CVE-2025-31492-f6defb9d",
        "source": "https://github.com/openidc/mod_auth_openidc/commit/b59b8ad63411857090ba1088e23fe414c690c127",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/handle/content.c"
        },
        "digest": {
            "line_hashes": [
                "177638386425792545797883868964270689860",
                "34034463976251415097126924882708127743",
                "48818428035142139225543449877618496385",
                "133041518783479598932663145079725069429",
                "249241916799225150188744777239840527535"
            ],
            "threshold": 0.9
        }
    }
]