CVE-2026-54789

mod_auth_openidc has out-of-bounds read and write in state cookie parsing

Published Aug 21, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.19.4, an out-of-bounds read and a one-byte out-of-bounds write exist in the state-cookie parser of `mod_auth_openidc`. The issue is fixed in version 2.4.19.4 by stopping the scan at the string terminator so a value-less token is rejected. No in-product workarounds are available. As a stop-gap, an upstream reverse proxy or WAF that rejects or normalizes malformed `Cookie` headers (tokens lacking `=`) can reduce exposure, but upgrading is the recommended remediation.

Analysis

AI-generated

Technical impact

mod_auth_openidc implements OpenID Connect Relying Party functionality for Apache 2.x. Prior to version 2.4.19.4 the parser that extracts the state token from incoming Cookie headers lacks bounds checking. The code performs an out‑of‑bounds read and a one‑byte out‑of‑bounds write when it encounters a token without an equals sign. This memory corruption can enable an attacker to craft a malicious Cookie header that results in arbitrary code execution or a denial of service on the server.

Affected Systems

Any deployment running OpenIDC mod_auth_openidc before version 2.4.19.4 on an Apache HTTP server is affected. The vulnerability resides in the state‑cookie parsing routine of the module and applies to all supported Apache 2.x releases that include this module.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity. No EPSS score is publicly available, and the vulnerability is not listed in the CISA KEV catalog. Attackers can trigger the flaw by sending a specially crafted Cookie header containing a token without an equals sign. This can lead to memory corruption that may allow execution of arbitrary code or a crash of the Apache process. Because the flaw exists in the authentication module, an attacker could potentially bypass authentication or gain full control of the web server if they succeed with an exploit.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenIDC mod_auth_openidc to version 2.4.19.4 or later.
  • Deploy a reverse proxy or WAF that rejects or normalizes malformed Cookie headers, such as tokens lacking '='.
  • Configure Apache to reject malformed Cookie headers or use mod_security rules to enforce valid Cookie syntax.

Generated by OpenCVE AI on August 21, 2026 at 17:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4768-1 libapache2-mod-auth-openidc security update
Debian DSA Debian DSA DSA-6504-1 libapache2-mod-auth-openidc security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openidc
Openidc mod Auth Openidc
Vendors & Products Openidc
Openidc mod Auth Openidc
Type Values Removed Values Added
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.19.4, an out-of-bounds read and a one-byte out-of-bounds write exist in the state-cookie parser of `mod_auth_openidc`. The issue is fixed in version 2.4.19.4 by stopping the scan at the string terminator so a value-less token is rejected. No in-product workarounds are available. As a stop-gap, an upstream reverse proxy or WAF that rejects or normalizes malformed `Cookie` headers (tokens lacking `=`) can reduce exposure, but upgrading is the recommended remediation.
Title mod_auth_openidc has out-of-bounds read and write in state cookie parsing
Weaknesses CWE-125
CWE-787
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 2, 2026, 7:06 PM
Reserved
Jun 15, 2026, 11:23 PM
Status
Deferred
Published
Aug 21, 2026, 4:17 PM
Modified
Oct 15, 2026, 7:10 PM
Severity
Important
Public date
Aug 21, 2026, 4:13 PM