
Cloud Vulnerability DB
A community-led vulnerabilities database
alint reads configurations, rulesets and policy-test packages that other people write. Before
0.23.0, several of them could do more than alint promises, in the ways below. Each item names the
versions it affects; every one is fixed in 0.23.0.
What alint trusts. A repository's own top-level .alint.yml is trusted the way its Makefile
is: alint check in a clone runs its kind: command rules, --no-spawn (new in 0.23.0) refuses
them and runs no Git, and --untrusted also refuses a remote extends: and allow_out_of_root:
and gives the config an empty environment. A ruleset reached through extends: may not run
commands; a remote one, unless listed in trusted_extends, may not read the environment either.
A policy-test package run by alint test may run nothing without capabilities: { spawn: true }
or --allow-spawn, and sees only the environment its given.env sets.
.alint.yml as alint check does, so opening a cloned repository ran its command
rules and custom: facts, fetched a remote extends:, honored allow_out_of_root:, and read
the editor's environment for {{env.*}}. The server now does none of this, and runs no Git
(which runs the commands a repository's .git/config names), until the client says the
workspace is trusted; VS Code sends its Workspace Trust state..alint.yml above it, so one shipped under node_modules/ could run a command when
one of its files was opened.nested_configs resolved extends: (v0.18.0 to v0.22.1), so a vendored config
could send an environment value to a host it named.CodeDescription accepted any URL scheme (v0.11.0 to v0.22.1):
text from the repository in a finding could render an image the editor fetched, a link or HTML,
and non-http(s) policy_url values were forwarded as links (Markdown, terminal OSC 8 and
export-agents-md outputs now enforce http:///https:// too, and export-agents-md
sanitizes directives and refuses symlinks).alint lsp --config was ignored (v0.11.0 to v0.22.1): the repository's own config ran
instead of the one the user named.--show-notes, the language
server logged the raw path of a rule whose files were chosen from the environment instead of
<redacted>, and all output formats now also suppress line/column numbers and related locations
when a finding's path is <redacted>..alint.yml up
to the file-system root, so a config someone else wrote above a checkout (/tmp/.alint.yml)
governed the run, command rules included. Discovery now stops at the repository's top and,
outside a repository, skips an ancestor's config another user owns.cross_file rule could read
.git/config and print the AUTHORIZATION header actions/checkout persists into its
message, from any configuration, a pinned remote ruleset included. No rule reads a Git
directory now (including out-of-root paths resolved under allow_out_of_root: and Windows
GIT~1..GIT~4 short names).allow_out_of_root covered extended rulesets: their rules could read outside the
repository when checked (v0.12.0 to v0.22.1), and their fixes could read and write outside
it (v0.14.0 to v0.22.1). It now covers the user's own rules only..alint.d/ drop-in holding a command rule that the next alint check ran; alternate Windows
and HFS+ spellings of loaded config files and local extends: targets are refused as well.extends: URL in another case or scheme (v0.2.1 to v0.22.1) was read as a local path
with no integrity hash, and the error printed it whole, credentials included... traversal
(including after ./, inside {...} brace groups, or after {path}/{dir}), leading /
or \, Windows drive prefixes, or non-subtree-anchored tokens ({**}, {basename}) could
reach outside the nested config's directory.requires: value, an extends: diamond, template expansion, or a FIFO or
/dev/zero as a config file. pinned_references also hung on a self-referencing merge key or
a GitLab CI extends: diamond DAG (v0.19.0 to v0.22.1).alint fix with an extends:
ruleset, v0.2.1 to v0.22.1; content_from since v0.5.10; alint baseline since v0.14.0). A
file_create could write .git/config with a core.fsmonitor, which the next Git command
ran, so a ruleset kept from running commands ran one; content_from: .git/config copied the
repository's credentials into a worktree file; and alint baseline could target .git/
directly or through a symlink..git (v0.2.0 to v0.22.1; a command since
v0.5.10). A repository could commit src/evil.rs -> ../.git/config, so the user's own
file_header fix wrote into .git/config..git (alint check and
alint fix with a Git rule or git_tracked_only, v0.4.8 to v0.22.1). A tree with HEAD,
objects/, refs/ and a config naming a core.fsmonitor ran that command, as git status
run there would. alint now finds the repository itself and names it to Git with --git-dir;
safe.bareRepository=explicit alone does nothing before Git 2.38.applicability: {safe: ~}, tagged or not), the tier passed the
check that kept such a config from promoting a fix, so a bare alint fix ran, for example,
a file_remove from a ruleset reached through extends:.alint fix
and alint check --format sarif overflowed the stack on a deeply nested file, and a
600-byte alias bomb ran 17 s to 3.35 GB, on files the check itself read in milliseconds..gitignore or .ignore that is a symlink to /dev/zero, a FIFO or a /proc file such as
/proc/self/pagemap made alint check, alint fix and the language server exhaust memory or
hang. Disk reads in LSP buffer overlays, alint init, alint suggest, alint export-agents-md --inline, alint test, alint fix command snapshots and alint-testkit are now bounded to
regular files too.baseline: key could name /dev/zero, a FIFO or a file outside the
repository.extends: written as a network path was opened before it was refused
(v0.14.0 to v0.22.1): on Windows, extends: //host/share/x.yml connected to that host before
the confinement to the config's directory refused it.git_branch fact read .git/HEAD without bound (v0.3.0 to v0.22.1): with a
configuration that declares the fact, a .git/HEAD that is a symlink to /dev/zero or a FIFO
made the run exhaust memory or hang.scope_filter: redaction gaps (v0.15.0 to v0.22.1): nested rules
under for_each_dir/for_each_file and regex/line extractors reading .env/.properties
manifests could leak paths selected from those files; both are now redacted as top-level
structured .env manifest scopes are.alint test and alint_testkit::Runner, v0.20.0 to v0.22.1)require: ran without the spawn capability, and --untrusted /
--no-spawn now refuse --allow-host-keyring alongside --allow-spawn.given.env reached alint's own Git commands (GIT_CONFIG_*, GIT_TRACE, LD_PRELOAD), even
for a refused test.core.fsmonitor command (item 16).env.X in when: and ${VAR} in since: read the host's environment, so a test could tell
a secret's characters apart; conditions now read given.env only, with no host variables or
runner sandbox paths exposed.given.tree, a given.fixture link resolved from the copy, or a
relocate fix moving a link let a test write or read files outside its sandbox; a file named
git written to a directory on PATH then ran.TMPDIR inside a checkout), and with
the host keyring granted, the host's global Git excludes applied.Fixed in 0.23.0: asamarts/alint#515, #519, #522, #527, #539, #540, #541, #542, #543, #551, #560, #586, #599 and #616. The CHANGELOG's Security section describes each fix.
Until you upgrade:
alint check and alint fix from inside a repository, with a .alint.yml in its top
directory whose command rules, custom: facts and extends: you have read;extends: only with rulesets you trust, and avoid allow_out_of_root with them;.gitignore, .ignore, .git/HEAD and baseline files that are symlinks or FIFOs out of
a repository you lint, or lint it from a copy without them;alint test only on policy-test packages you trust;safe.bareRepository=explicit in your global configuration also stops
item 16.Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."