Text::LineFold versions through 2019.001 for Perl duplicate the output based on the number of special break characters
Nobody has claimed this yet.
- Dominant language
- Nix
- Stars
- 26.2k
- Forks
- 20.1k
- PR merge metrics
- PR metrics pending
Description
Description
Text::LineFold versions through 2019.001 for Perl duplicate the output based on the number of special break characters.
Text::LineFold splits the input string by specific line break characters (such as VT, FF and others) into segments, but applies the break function to the entire string, not just the segment.
A side effect of this is that the full input can be duplicated for each segment. Besides being incorrect, this can lead to unexpected resource consumption and possible denial of service.
Note that Text::LineFold is part of the Unicode-LineBreak distribution, which may have a higher version number than the module.
References
- https://metacpan.org/release/NEZUMI/Unicode-LineBreak-2019.001/source/lib/Text/LineFold.pm#L407-415
- https://security.metacpan.org/patches/U/Unicode-LineBreak/2019.001/CVE-2026-8594-r1.patch (
patch) - https://github.com/hatukanezumi/Unicode-LineBreak/pull/6 (
issue-tracking) - http://www.openwall.com/lists/oss-security/2026/05/30/6
Affected packages
perlPackages.UnicodeLineBreak(2019.001@nixos-25.11, 2019.001@nixos-unstable)perl5Packages.UnicodeLineBreak(2019.001@nixos-unstable)perl538Packages.UnicodeLineBreak(2019.001@nixos-25.11)perl540Packages.UnicodeLineBreak(2019.001@nixos-25.11)
Additional comment
Patch: https://security.metacpan.org/patches/U/Unicode-LineBreak/2019.001/CVE-2026-8594-r1.patch
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/Text/LineFold.pm lines 407-415 and compare the referenced CVE-2026-8594 patch for Unicode-LineBreak 2019.001. Review the affected UnicodeLineBreak package entries in nixpkgs and verify that the package incorporates the fix for duplicated output and resource consumption.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100