Description
The cut utility in uutils coreutils incorrectly handles the -s (only-delimited) option when a newline character is specified as the delimiter. The implementation fails to verify the only_delimited flag in the cut_fields_newline_char_delim function, causing the utility to print non-delimited lines that should have been suppressed. This can lead to unexpected data being passed to downstream scripts that rely on strict output filtering.
Problem types
CWE-670: Always-Incorrect Control Flow Implementation
Product status
Any version before 0.8.0
Credits
Zellic
References
github.com/uutils/coreutils/pull/11143
github.com/uutils/coreutils/releases/tag/0.7.0