Description
An issue was discovered in Croc through 9.6.5. A sender may place ANSI or CSI escape sequences in a filename to attack the terminal device of a receiver.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | croc | 10.0.11-r0 | — |
| Alpine v3.23 | croc | 10.0.11-r0 | — |
| Alpine v3.22 | croc | 10.0.11-r0 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | croc | 10.0.0-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/schollz/croc | all versions | — | GO-2023-2068 |
| Go | github.com/schollz/croc/v6 | all versions | — | GO-2023-2068 |
| Go | github.com/schollz/croc/v8 | all versions | — | GO-2023-2068 |
| Go | github.com/schollz/croc/v9 | < 9.6.16 | 9.6.16 | GHSA-364c-vvqx-446c |