Skip to content
Heist/ feed
Back to feed
Critical

libhtml-formhandler-perl — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-4993

HTML::FormHandler versions before 0.410000 for Perl allow attacker selected method dispatch and resource exhaustion because _apply_actions and add_error use error message text built from request data as a Locale::Maketext bracket notation template. add_error hands its first argument to the language handle as the Locale::Maketext message key, and the default handle's lexicon sets `_AUTO`, so a string that is not a lexicon entry is compiled as a bracket notation template instead of being looked up. In a bracket group the first token names a method called on the language handle and the remaining tokens are its arguments. Three kinds of text the library did not author reach that position. _apply_actions installs a `$SIG{__WARN__}` handler that stores the warning text in `$error_message`, and a captured warning survives a successful action, so a field carrying a numeric transform turns `Argument "[sprintf,%50000000d,0]" isn't numeric` into the template; a warning quotes the submitted value verbatim, so the group is well formed and dispatches. `$error_message ||= $tobj->validate($new_value)` takes a type constraint's own failure message, which renders the rejected value through a partial dumper in bracket and comma form (Devel::PartialDump when Moose can load it, Type::Tiny's own dumper always), so a field with `apply => [ Str ]` given a parameter sent more than once, which arrives as an array, gets `Reference ["a","b"] did not pass type constraint "Str"` as its template, from a re

Products
libhtml-formhandler-perl
Affected versions
0.40057-1, 0.40064-1, 0.40067-1, 0.40068-1, 0.40068-2, 0.40068-3
Fixed versions
Not specified
CVEs
CVE-2022-4993
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:48 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-4993

core-osv · Original source

Published 13 Aug 2026, 17:17 UTC

HTML::FormHandler versions before 0.410000 for Perl allow attacker selected method dispatch and resource exhaustion because _apply_actions and add_error use error message text built from request data as a Locale::Maketext bracket notation template. add_error hands its first argument to the language handle as the Locale::Maketext message key, and the default handle's lexicon sets `_AUTO`, so a string that is not a lexicon entry is compiled as a bracket notation template instead of being looked up. In a bracket group the first token names a method called on the language handle and the remaining tokens are its arguments. Three kinds of text the library did not author reach that position. _apply_actions installs a `$SIG{__WARN__}` handler that stores the warning text in `$error_message`, and a captured warning survives a successful action, so a field carrying a numeric transform turns `Argument "[sprintf,%50000000d,0]" isn't numeric` into the template; a warning quotes the submitted value verbatim, so the group is well formed and dispatches. `$error_message ||= $tobj->validate($new_value)` takes a type constraint's own failure message, which renders the rejected value through a partial dumper in bracket and comma form (Devel::PartialDump when Moose can load it, Type::Tiny's own dumper always), so a field with `apply => [ Str ]` given a parameter sent more than once, which arrives as an array, gets `Reference ["a","b"] did not pass type constraint "Str"` as its template, from a re

osv:UBUNTU-CVE-2022-4993

libhtml-formhandler-perl

Fixed versions: Not specified

libhtml-formhandler-perl

Fixed versions: Not specified

libhtml-formhandler-perl

Fixed versions: Not specified

libhtml-formhandler-perl

Fixed versions: Not specified

libhtml-formhandler-perl

Fixed versions: Not specified

libhtml-formhandler-perl

Fixed versions: Not specified

libhtml-formhandler-perl

Fixed versions: Not specified

Complete source record
{
  "id": "dad9f9e6f00acd1be49612082c2dcdbc6c4bba0dfa1679e844b9b4fb66de527f",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-4993",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-4993",
    "summary": "HTML::FormHandler versions before 0.410000 for Perl allow attacker selected method dispatch and resource exhaustion because _apply_actions and add_error use error message text built from request data as a Locale::Maketext bracket notation template. add_error hands its first argument to the language handle as the Locale::Maketext message key, and the default handle's lexicon sets `_AUTO`, so a string that is not a lexicon entry is compiled as a bracket notation template instead of being looked up. In a bracket group the first token names a method called on the language handle and the remaining tokens are its arguments. Three kinds of text the library did not author reach that position. _apply_actions installs a `$SIG{__WARN__}` handler that stores the warning text in `$error_message`, and a captured warning survives a successful action, so a field carrying a numeric transform turns `Argument \"[sprintf,%50000000d,0]\" isn't numeric` into the template; a warning quotes the submitted value verbatim, so the group is well formed and dispatches. `$error_message ||= $tobj->validate($new_value)` takes a type constraint's own failure message, which renders the rejected value through a partial dumper in bracket and comma form (Devel::PartialDump when Moose can load it, Type::Tiny's own dumper always), so a field with `apply => [ Str ]` given a parameter sent more than once, which arrives as an array, gets `Reference [\"a\",\"b\"] did not pass type constraint \"Str\"` as its template, from a re",
    "evidence": "osv:UBUNTU-CVE-2022-4993",
    "products": [
      {
        "name": {
          "value": "libhtml-formhandler-perl",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.40057-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.40064-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libhtml-formhandler-perl",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.40067-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.40068-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libhtml-formhandler-perl",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.40068-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libhtml-formhandler-perl",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.40068-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libhtml-formhandler-perl",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.40068-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libhtml-formhandler-perl",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.40068-2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.40068-3",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libhtml-formhandler-perl",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.40068-2",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2022-4993",
      "aliases": [
        "UBUNTU-CVE-2022-4993"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libhtml-formhandler-perl",
            "purl": "pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.40057-1",
            "0.40064-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4993.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libhtml-formhandler-perl",
                "binary_version": "0.40064-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libhtml-formhandler-perl",
            "purl": "pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.40067-1",
            "0.40068-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4993.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libhtml-formhandler-perl",
                "binary_version": "0.40068-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libhtml-formhandler-perl",
            "purl": "pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.40068-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4993.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libhtml-formhandler-perl",
                "binary_version": "0.40068-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libhtml-formhandler-perl",
            "purl": "pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.40068-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4993.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libhtml-formhandler-perl",
                "binary_version": "0.40068-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libhtml-formhandler-perl",
            "purl": "pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.40068-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4993.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libhtml-formhandler-perl",
                "binary_version": "0.40068-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libhtml-formhandler-perl",
            "purl": "pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.40068-2",
            "0.40068-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4993.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libhtml-formhandler-perl",
                "binary_version": "0.40068-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libhtml-formhandler-perl",
            "purl": "pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.40068-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4993.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libhtml-formhandler-perl",
                "binary_version": "0.40068-2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:03.898579952Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-4993"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-4993",
        "https://www.cve.org/CVERecord?id=CVE-2022-4993",
        "https://lists.security.metacpan.org/cve-announce/msg/42659947/",
        "https://security.metacpan.org/patches/H/HTML-FormHandler/0.40068/CVE-2022-4993-r2.patch"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-4993",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354739,
  "published_at": "2026-08-13T17:17:00+00:00"
}