Skip to content

Commit

Permalink
add to vulnix whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
dermetfan committed Sep 11, 2021
1 parent cd71e18 commit 02d3916
Showing 1 changed file with 58 additions and 8 deletions.
66 changes: 58 additions & 8 deletions modules/vulnix-whitelists.nix
@@ -1,4 +1,6 @@
{ lib, ... }: {
{ config, lib, pkgs, ... }:

{
services.vulnix.whitelists = lib.mkOptionDefault [
# fix about to be deployed
{
Expand All @@ -10,30 +12,78 @@
];
issue_url = "https://github.com/NixOS/nixpkgs/pull/135611";
};
"libsndfile-1.0.30" = {
until = "2021-09-15";
cve = [ "2021-3246" ];
issue_url = [
"https://github.com/NixOS/nixpkgs/issues/132138"
"https://github.com/NixOS/nixpkgs/pull/132689"
"https://github.com/NixOS/nixpkgs/pull/134004"
];
};
}

# general false positives
{
({
"openssl-1.1.1k" = {
cve = [
"CVE-2018-16395"
"CVE-2016-7798"
];
comment = "CVEs are about a Ruby library";
issue_url = [
"https://github.com/flyingcircusio/vulnix/issues/62"
"https://github.com/NixOS/nixpkgs/issues/116905"
"https://github.com/NixOS/nixpkgs/issues/109204"
];
};
}

# do not usually apply to bitte clusters
{
"network-3.1.1.1" = {
cve = [ "2021-35048" ];
comment = [
"drv is a haskell library, CVE is about SQLi in some web UI"
"build-time dependency of shellcheck through pandoc"
];
};
"zip-3" = { # FIXME is it 3 or 3.0?
cve = [ "2018-13410" ];
comment = "disputed";
issue_url = [
"https://github.com/NixOS/nixpkgs/issues/88417"
"https://github.com/NixOS/nixpkgs/issues/70134"
"https://github.com/NixOS/nixpkgs/issues/57192"
];
};
"gnulib" = {
cve = [ "2018-17942" ];
comment = "fixed long ago";
issue_url = [
"https://github.com/NixOS/nixpkgs/issues/34787"
"https://github.com/NixOS/nixpkgs/issues/88310"
];
};
} // lib.genAttrs [ "shellcheck" "ShellCheck" ] (pname: {
cve = [ "2021-28794" ];
comment = "CVE is about a Visual Studio Code extension";
}) // lib.optionalAttrs (!config.services.xserver.enable) {
"libX11-1.7.0" = {
cve = [ "2021-31535" ];
# XXX nomad jobs might, though very unlikely
comment = "we don't run a graphical session";
};
} // lib.optionalAttrs (
with pkgs.lib.systems;
!inspect.predicates.isWindows (parse.mkSystemFromString pkgs.system)
) {
"ripgrep" = {
cve = [ "2021-3013" ];
comment = "we're not on windows";
};
} // lib.optionalAttrs (!config.services.httpd.enable) {
"openssl-1.1.1k" = {
cve = [ "CVE-2019-0190" ];
issue_url = "https://github.com/NixOS/nixpkgs/issues/88371";
comment = "we don't use Apache";
issue_url = "https://github.com/NixOS/nixpkgs/issues/88371";
};
}
})
];
}

0 comments on commit 02d3916

Please sign in to comment.