CVE-2026-120634

CGI::Carp versions before 5.00 for Perl leak warnings across requests in persistent environments via the warningsToBrowser buffer

Published Nov 3, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
CGI::Carp versions before 5.00 for Perl leak warnings across requests in persistent environments via the warningsToBrowser buffer.

Warnings are held in a package-level buffer until warningsToBrowser writes them into the page as HTML comments, and the buffer is never cleared between requests. Under mod_perl, FastCGI or PSGI, warnings from one request are written into a later one.

Warnings that contain one user's request data can appear in the HTML sent to another user.

Analysis

AI-generated

Technical impact

CGI::Carp versions prior to 5.00 hold extracted warning messages in a package‑level buffer that is not cleared between web requests when running in persistent environments such as mod_perl, FastCGI or PSGI. The warningsToBrowser routine subsequently writes the accumulated buffer into HTML comments. Because the buffer persists across requests, warning messages that contain a user’s request data can be returned in a later HTTP response to a different user, exposing sensitive information. This flaw is a classic example of a data leakage vulnerability (CWE‑488).

Affected Systems

Any installation of the Perl CGI::Carp module using a release older than 5.00, particularly those deployed in persistent server environments that do not reset global state between requests (for example, mod_perl, FastCGI, or PSGI applications). The vulnerability is present in all affected versions regardless of platform, as long as warningsToBrowser is enabled.

Risk and Exploitability

The flaw can be exploited by sending a crafted request that triggers a warning which contains user‑sensitive content. In a shared persistent process, the next request processed by that same process will emit the buffered warning into its response, allowing an attacker to see the data of a different user. The exploit requires no special privileges beyond the ability to send HTTP requests to the application. Because the EPSS score is <1% and the vulnerability is not currently listed in CISA’s KEV catalog, the exploitation probability is low, suggesting a moderate overall risk to affected deployments. The CVSS score of 6.5 indicates medium severity.

Remediation

Vendor Solution

Upgrade to CGI 5.00 or later.


Vendor Workaround

For deployments that cannot upgrade, do not use warningsToBrowser in persistent environments. After upgrading, persistent applications where nothing calls CGI::initialize_globals between requests must also call CGI::Carp::_reset_globals at the start of each request.


OpenCVE Recommended Actions

  • Upgrade CGI::Carp to version 5.00 or later
  • If upgrading is not immediately possible, disable warningsToBrowser in persistent environments
  • For applications that cannot be quickly modified, add a call to CGI::Carp::_reset_globals at the start of each request to clear the warning buffer

Generated by OpenCVE AI on November 9, 2026 at 23:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Description CGI::Carp versions before 5.00 for Perl leak warnings across requests in persistent environments via the warningsToBrowser buffer. Warnings are held in a package-level buffer until warningsToBrowser writes them into the page as HTML comments, and the buffer is never cleared between requests. Under mod_perl, FastCGI or PSGI, warnings from one request are written into a later one. Warnings that contain one user's request data can appear in the HTML sent to another user.
Title CGI::Carp versions before 5.00 for Perl leak warnings across requests in persistent environments via the warningsToBrowser buffer
Weaknesses CWE-488
References

Subscriptions

No data.

Weaknesses
  • CWE-488

    Exposure of Data Element to Wrong Session

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 9, 2026, 7:06 PM
Reserved
Nov 2, 2026, 5:40 PM
Status
Deferred
Published
Nov 4, 2026, 12:17 AM
Modified
Nov 9, 2026, 7:16 PM
Severity
Moderate
Public date
Nov 3, 2026, 11:40 PM