CVE-2022-4993

Description

A flaw was found in HTML::FormHandler for Perl. The _apply_actions and add_error functions process error message text, which can be influenced by user-supplied request data, as a template. A remote attacker can exploit this by crafting malicious input, leading to unhandled exceptions that terminate the process or cause arbitrary memory allocation, resulting in a Denial of Service (DoS) due to resource exhaustion.

Statement

This vulnerability is rated as Important severity because unauthenticated remote attackers can submit specially crafted form parameters to trigger excessive memory consumption or process crashes, directly causing a denial of service. The perl-HTML-FormHandler component is not distributed with supported Red Hat Enterprise Linux releases and is only maintained within Fedora community packages. Applications utilizing this library in custom environments are exposed when handling untrusted user input through forms that execute validation or type constraints.

Understanding the Weakness (CWE)

Access Control

Technical Impact: Bypass Protection Mechanism

In some cases, injectable code controls authentication; this may lead to a remote vulnerability.

Access Control

Technical Impact: Gain Privileges or Assume Identity

Injected code can access resources that the attacker is directly prevented from accessing.

Integrity,Confidentiality,Availability

Technical Impact: Execute Unauthorized Code or Commands

When a product allows a user's input to contain code syntax, it might be possible for an attacker to craft the code in such a way that it will alter the intended control flow of the product. As a result, code injection can often result in the execution of arbitrary code. Code injection attacks can also lead to loss of data integrity in nearly all cases, since the control-plane data injected is always incidental to data recall or writing.

Non-Repudiation

Technical Impact: Hide Activities

Often the actions performed by injected control code are unlogged.

Frequently Asked Questions

Want to get errata notifications? Sign up here.