Utility hang via negative repeat length underflow
Published Jul 18, 2023 · Updated Oct 28, 2024
Integer overflow in PCRE2 pcre2test before 10.41 allows attackers to hang the utility via a negative subject-line repeat value. The subject-line parser casts the negative repeat to an unsigned size_t while updating needlen, after which the buffer-growth loop doubles dbuffer_size indefinitely. The condition requires pcre2test to process attacker-controlled test input; the upstream project says only test code is affected and expects no impact outside the utility.
Summary
What happened
Integer overflow in PCRE2 pcre2test before 10.41 allows attackers to hang the utility via a negative subject-line repeat value. The subject-line parser casts the negative repeat to an unsigned size_t while updating needlen, after which the buffer-growth loop doubles dbuffer_size indefinitely. The condition requires pcre2test to process attacker-controlled test input; the upstream project says only test code is affected and expects no impact outside the utility.
The record
- CVE
- CVE-2022-41409
- Published
- Jul 18, 2023
- Updated
- Oct 28, 2024
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-190, T1499
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- Jul 18, 2023CVE publishedPublication date reported by the CVE source.
- Oct 28, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Negative repeat pcre2test reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo