Joker linter executed project-local .jokerd/linter.* files during linting
What fixes it
- 1.8.2github.com/candid82/joker, GoOSV
go get github.com/candid82/joker@v1.8.2
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Reports 1
1 outlet mention it. Reports are not confirmation; each links to its source.
Description
Joker is a small Clojure interpreter, linter and formatter written in Go. Prior to 1.8.2, joker --lint <file> walks upward from the linted file to locate a .jokerd/ directory and executes matching linter.* files before linting. Those files contain executable Joker/Clojure code, so linting a file inside an untrusted repository can execute repository-supplied code with the linter user's privileges. Editor integrations and CI jobs that automatically lint checked-out source can trigger this behavior. The patch stops executing project-local linter customizations and loads executable customization only from the user's home directory. This issue is fixed in version 1.8.2.
Text from CVE List
Affected versions 2
- jokeraffected: < 1.8.2CVE List
- github.com/candid82/joker, Gofrom first release, fixed in 1.8.2OSV