NixOS / NixOS/nixpkgs

Text::LineFold versions through 2019.001 for Perl duplicate the output based on the number of special break characters

Open
#526,331 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1.severity: security
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

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.