CVE-2026-121577

Source
https://cve.org/CVERecord?id=CVE-2026-121577
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-121577.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-121577
Published
2026-11-03T19:52:54Z
Modified
2026-11-14T02:30:15Z
Severity
  • 6.7 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Unescaped header separators in whatstk build a regular expression that backtracks exponentially
Details

Inefficient Regular Expression Complexity (CWE-1333) in generate_regex() (whatstk/whatsapp/parser.py) in whatstk from 0.2.0 before 0.9.0 allows a party that supplies a chat export to consume the CPU of the process that parses it for an unbounded time, because the function builds the header regular expression by replacing each %x code with its named capture group and leaves every other character of the header format in the pattern unescaped. A header whose date separator is a regular expression metacharacter therefore alters the pattern instead of matching itself: a separator of + quantifies the preceding capture group, giving (?P\d{1,2})+(?P\d{1,2})+(?P\d{2,4}), and a run of digits that cannot complete the header then makes the engine try every way of partitioning that run. Header auto detection is enabled by default and derives the format from the text of the file, so the separator is taken from the export itself and no header format has to be passed by the caller. Separators of (, ) and \ instead raise re.PatternError, separators of *, | and ? raise TypeError, and separators of ^ and $ raise KeyError, none of which the library catches. This results in the parse of a file of a few hundred bytes consuming CPU without completing, or in an uncaught exception in the calling program.

Database specific
{
    "cna_assigner":  "Secur0",
    "cwe_ids":  [
        "CWE-1333"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/121xxx/CVE-2026-121577.json"
}
References

Affected packages

Git / github.com/lucasrodes/whatstk

Affected ranges

Type
GIT
Repo
https://github.com/lucasrodes/whatstk
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0.2.0"
                },
                {
                    "fixed":  "0.9.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "01d66d8"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v0.9.0",
            "range":  [
                {
                    "fixed":  "5afa927a2c9d311f2b77ee8bccb4124ed9d70d69"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

0.*
0.2.0
v0.*
v0.2.4
v0.2.5
v0.2.6
v0.3.0
v0.3.1
v0.4.0
v0.4.1
v0.5.0
v0.5.0.rc0
v0.5.0.rc1
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.7.0
v0.7.1
v0.8.0
v0.8.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-121577.json"