CVE-2026-120640
Deferred Deferred - Pending Action

CGI Parameter Confusion Leads to Request Forgery

Vulnerability report for CVE-2026-120640, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-04

Last updated on: 2026-11-09

Assigner: CPANSec

Description

CGI versions before 5.00 for Perl allow the POSTDATA, PUTDATA, PATCHDATA and XForms:Model parameters to be set from the query string or form fields. CGI stores a non-form request body under POSTDATA, PUTDATA or PATCHDATA, and an XForms body under XForms:Model, but also accepts these names from the query string, a form field or a multipart part, so an application cannot tell a client-sent value from the real body. A cross-site HTML form can post POSTDATA={"admin":true} to an endpoint that reads JSON from param('POSTDATA'), a request forgery that needs no CORS preflight.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-04
Last Modified
2026-11-09
Generated
2026-11-24
AI Q&A
2026-11-04
EPSS Evaluated
2026-11-23
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
leejo cgi to 5.00 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-352 The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects CGI.pm Perl module versions before 5.00. It allows attackers to manipulate parameters like POSTDATA, PUTDATA, PATCHDATA, and XForms:Model through query strings or form fields instead of just the request body. This can lead to request forgery where malicious data is injected without proper validation.

Detection Guidance

Check Perl CGI.pm versions before 5.00 for vulnerable parameters. Inspect HTTP requests for POSTDATA, PUTDATA, PATCHDATA, or XForms:Model in query strings or form fields. Use network monitoring tools to detect unexpected JSON payloads in these parameters.

Impact Analysis

An attacker could send a crafted request with POSTDATA={"admin":true} to an endpoint expecting JSON from the POSTDATA parameter. This could trick the application into treating the query string or form data as the actual request body, potentially leading to unauthorized actions like privilege escalation or data manipulation.

Compliance Impact

This vulnerability could lead to unauthorized access or data breaches, violating confidentiality and integrity requirements in GDPR and HIPAA. It undermines secure authentication and authorization mechanisms, potentially resulting in non-compliance with data protection and privacy regulations.

Mitigation Strategies

Upgrade CGI.pm to version 5.00 or later. Review and sanitize all HTTP request parameters, especially POSTDATA, PUTDATA, PATCHDATA, and XForms:Model. Implement strict input validation for JSON payloads in these parameters.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-120640. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...