在 Perl 中,Text::CSV_XS 1.65 版本之前的实现存在一个漏洞:当在输出(print)过程中,某个被标记为 UTF-8 的字段后面紧跟无效的 UTF-8 字节时,记录的末尾及其行尾符会被丢弃。 具体机制如下:当记录中包含被标记为 UTF-8 的字段时,print 会在每次缓冲区刷新时暂存那些无法构成有效 UTF-8 的尾部字节,以便处理跨两次刷新被拆分的字符。然而,在记录最后一次刷新之后,这些被暂存的字节并未被写入。因此,若某记录的最后一个字段以此类字节结尾,则该字节、任何闭合引号以及行尾符均会丢
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| - | - | 0 ~ 1.65 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet