{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-19873",
        "assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
        "state": "PUBLISHED",
        "assignerShortName": "CPANSec",
        "dateReserved": "2026-08-14T12:57:36.382Z",
        "datePublished": "2026-08-31T10:07:32.134Z",
        "dateUpdated": "2026-08-31T10:07:32.134Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://cpan.org/modules",
                    "defaultStatus": "unaffected",
                    "modules": [
                        "HTML::FormFu"
                    ],
                    "packageName": "HTML-FormFu",
                    "packageURL": "pkg:cpan/HTML-FormFu",
                    "programFiles": [
                        "lib/HTML/FormFu/Element/Repeatable.pm",
                        "lib/HTML/FormFu/Constraint.pm"
                    ],
                    "programRoutines": [
                        {
                            "name": "HTML::FormFu::Element::Repeatable::process"
                        },
                        {
                            "name": "HTML::FormFu::Element::Repeatable::repeat"
                        },
                        {
                            "name": "HTML::FormFu::Constraint::_find_field_value"
                        }
                    ],
                    "repo": "https://github.com/FormFu/HTML-FormFu",
                    "versions": [
                        {
                            "lessThanOrEqual": "2.08",
                            "status": "affected",
                            "version": "0",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "HTML::FormFu versions through 2.08 for Perl allow resource exhaustion via an unbounded repeat count from the query string in Repeatable elements.\n\nWhen a Repeatable element has counter_name set, its process method reads the repeat count from the named query string parameter, checks only that it is a positive integer, and passes it to repeat, which deep-clones the element's child subtree once per iteration. Nothing caps the value, and no attribute lets an application impose a limit.\n\nThe count is read on every request, before the form decides whether it was submitted, so a plain GET reaches the clone loop with no credentials, no session and no request body. Nesting multiplies: a Repeatable inside a Repeatable takes a counter at each level, so an outer and an inner value of 100 build 10,000 clones.\n\nOnce the form is submitted, each cloned field's constraints scan the whole element tree in _find_field_value, so cost grows faster than linearly with the count. A single request exhausts memory and CPU.\n\nThe latest release on CPAN is 2.07, from 2018. Version 2.08 exists only in the git repository."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-1284",
                            "description": "CWE-1284 Improper Validation of Specified Quantity in Input",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-770",
                            "description": "CWE-770 Allocation of Resources Without Limits or Throttling",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
                "shortName": "CPANSec",
                "dateUpdated": "2026-08-31T10:07:32.134Z"
            },
            "references": [
                {
                    "tags": [
                        "issue-tracking"
                    ],
                    "url": "https://github.com/FormFu/HTML-FormFu/issues/71"
                },
                {
                    "tags": [
                        "patch"
                    ],
                    "url": "https://security.metacpan.org/patches/H/HTML-FormFu/2.08/CVE-2026-19873-r1.patch"
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "Apply the patch. There is no fixed release."
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "title": "HTML::FormFu versions through 2.08 for Perl allow resource exhaustion via an unbounded repeat count from the query string in Repeatable elements",
            "workarounds": [
                {
                    "lang": "en",
                    "value": "For deployments that cannot apply the patch, reject or clamp the counter parameter before passing the query to process. Where the client-side repeat feature is not needed, unsetting counter_name stops the count being read from the query string."
                }
            ],
            "x_generator": {
                "engine": "cpansec-cna-tool 0.1"
            }
        }
    }
}