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.
Published: 2026-11-03
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Apply Patch
AI Analysis

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 unavailable and the vulnerability is not currently listed in CISA’s KEV catalog, the exploitation probability cannot be quantified precisely, but the mechanism and proof of concept are clear, making the risk high for affected deployments. The CVSS score of 5.3 indicates medium severity.

Generated by OpenCVE AI on November 4, 2026 at 13:43 UTC.

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 4, 2026 at 13:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 04 Nov 2026 12:15:00 +0000

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


Wed, 04 Nov 2026 00:00:00 +0000

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.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-11-03T23:40:08.097Z

Reserved: 2026-11-02T17:40:16.533Z

Link: CVE-2026-120634

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-04T00:17:24.577

Modified: 2026-11-04T00:17:24.577

Link: CVE-2026-120634

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-11-03T23:40:08Z

Links: CVE-2026-120634 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T13:45:14Z

Weaknesses
  • CWE-488

    Exposure of Data Element to Wrong Session