libhtml-formhandler-perl — security advisory
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.40068-2, 0.40068-3, 0.410002-1
- Fixed versions
- 0.40068-3
- CVEs
- CVE-2022-4993
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:42 UTC · Revision 1
Source evidence
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:DEBIAN-CVE-2022-4993
libhtml-formhandler-perl
Fixed versions: Not specified
libhtml-formhandler-perl
Fixed versions: Not specified
libhtml-formhandler-perl
Fixed versions: 0.40068-3
Complete source record
{
"id": "e6a9f46a29bb35932ce6241dad7837457bc6cd665cbb89e6e75d2ef8e3bdea40",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-4993",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-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:DEBIAN-CVE-2022-4993",
"products": [
{
"name": {
"value": "libhtml-formhandler-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.40068-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.40068-3",
"evidence": "/affected/0/versions"
},
{
"value": "0.410002-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libhtml-formhandler-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.40068-2",
"evidence": "/affected/1/versions"
},
{
"value": "0.40068-3",
"evidence": "/affected/1/versions"
},
{
"value": "0.410002-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libhtml-formhandler-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.40068-3",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "0.40068-2",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2022-4993",
"aliases": [
"DEBIAN-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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libhtml-formhandler-perl",
"purl": "pkg:deb/debian/libhtml-formhandler-perl?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"0.40068-2",
"0.40068-3",
"0.410002-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4993.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libhtml-formhandler-perl",
"purl": "pkg:deb/debian/libhtml-formhandler-perl?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"0.40068-2",
"0.40068-3",
"0.410002-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4993.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.40068-3"
}
]
}
],
"package": {
"name": "libhtml-formhandler-perl",
"purl": "pkg:deb/debian/libhtml-formhandler-perl?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"0.40068-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4993.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:03:12.741552537Z",
"provider": "osv",
"upstream": [
"CVE-2022-4993"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-4993"
]
},
"related_cves": [
{
"value": "CVE-2022-4993",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 325745,
"published_at": "2026-08-13T17:17:17.78+00:00"
}