Skip to content

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 23:19
876e7c7

Release Notes

Added

  • unpatched: list the software you run, and a daily GitHub Action tells you only when something you run is affected, what to do, and whether it is being exploited. Keyless and open data only, and no servers: the database is built daily in this repository and published on the rolling db release.
  • The unpatched command line: check (text, JSON, Markdown and SARIF output, --exit-code, --notify, --dry-run), init (questions in a terminal, a commented template otherwise; --github adds the daily workflow), explain (a rule, a CVE or a finding key), search, catalog list|show, db update|info|build|sources-health, mcp and schema config|report. Exit codes: 1 fix today (with --exit-code), 2 usage or config error, 3 data error, 4 delivery error.
  • The GitHub Action (uses: amet13/unpatched@v3): downloads the release binary, checks its SHA-256, caches it, and writes the run summary to the job. Inputs: version, binary, config, db, dry-run, args. templates/github/ has a starting unpatched.yml and workflow.
  • The end-to-end corpus (corpus/, 70+ cases) and cargo xtask corpus new <name>; cargo xtask schema writes schema/unpatched.schema.json and schema/report.schema.json.
  • Findings and reports show the product's display name (FortiOS 7.2.5) instead of its id, and Finding has a new product_name field.
  • The user guide (mdBook, docs/guide/, published at https://amet13.github.io/unpatched/), a new README, and llms.txt and llms-full.txt. cargo xtask docs regenerates the parts that come from the code (config reference, rules, catalog, command help, examples), and cargo xtask check fails when they are out of date.
  • Every report has items: one recommendation per stack item (counts per bucket, the smallest upgrade that fixes the most findings, how many it fixes, end-of-life and unfixed counts). check prints it first, as one line per item; the digest uses these lines only.
  • Finding.fixed_after: when a source only gives an inclusive upper bound (<= 9.8), the advice reads "Upgrade to a release after 9.8" (with the latest release of the cycle when known).
  • New threshold cvss_week_exposed (default 7.0).
  • check --notify in GitHub Actions warns (::warning::) when the repository is public, because the stack and the issues are then visible to everyone.
  • --now is a hidden global option, used by check, explain and db info.
  • unpatched db build --strict (fails, and writes nothing, when any source failed) and unpatched db info --json (counts and sources, for scripts). The daily database build uses both, and refuses to replace the published database when it has more than 20% fewer vulnerabilities or KEV entries.
  • unpatched db update tries again (after 20 s, then 60 s) when the release is being replaced and the checksum does not match yet, or the file is not there.
  • Notes for ignore entries that do nothing: ignore[2]: CVE-2099-1 matches no finding. Check the id or remove it. and ignore[1] expired on 2020-01-01; the finding is back. Issue footers and explain <finding key> show how to accept a risk (ignore: with cve, reason, until).
  • unpatched explain --rules lists every rule id. explain lists each reference once and names stack items like the report does.
  • Repository automation: CI on three operating systems, the daily database build, releases with dist, a Docker image, and weekly and monthly upkeep (see MAINTAINING.md).

Security

  • Release and CI workflows: dist, cargo-zigbuild and actionlint are installed from pinned, hash-checked downloads (no curl | sh); release.yml is read-only by default and moves the major tag through the API; the Dependabot labeller uses pull_request instead of pull_request_target; workflow_run jobs ignore runs from forks; CI runs zizmor.
  • The MCP server refuses a config_path by its name before looking at the file system, so a caller cannot learn which other files exist.
  • MCP check_stack only reads the server's own config file, or a file named unpatched*.yml or unpatched*.yaml under the server's working directory (links are resolved first). Before, any readable file could be named, and a YAML error could echo its content. Errors about a config file now give only the line and column.

Changed

  • Reports are shorter and use one vocabulary (today, this week, end of life, unknown, FYI; JSON keeps now, week, eol, unknown, fyi). The text and Markdown reports and the status issue start with 87 to act on (14 today, 69 this week, ...), 228 FYI and show FYI findings only as a count per item, with a line 228 FYI not shown: run with -v or --format json. Issue bodies count FYI findings and no longer list them. The item headline says whether the upgrade clears everything (fixes all 11) or not (fixes 61 of 110; 49 have no fix on 7.2). "Checked" now reads 990 vulnerabilities checked against your versions: not affected.

  • --quiet prints nothing on stdout except errors. The report still goes to --output, and exit codes are the same.

  • MCP check_stack returns a small answer: summary and items always, and findings for the buckets in bucket (default now, week, eol, unknown), at most limit (default 50), with evidence only when include_evidence is true. Every tool refuses arguments it does not declare. The text of a source (source says) is cut to about 200 characters in is_affected and explain unless include_raw is true. MCP explain accepts finding keys (judged with the server's config).

  • --notify --dry-run prints each message once (the channel, then its text); a missing secret is a warning in a dry run. Log lines read warning: ... instead of WARN ....

  • Error messages say what to do: a missing version points to unpatched catalog show <id>, a bad purl shows an example, a config file that is YAML but not the unpatched.yml format says so and suggests the closest field (Did you mean exposure?), and long parser messages are cut. init asks again when a version has spaces or cannot be read, and shows an example. Using an alias (product: fortigate) adds one note.

  • search and unknown-product errors say what to do when a product is not in the catalog (use a purl for OS packages, or ask for it), and only suggest names that are close: search yoast no longer suggests cisco-asa.

  • cargo xtask finds the repository root at run time, and cargo xtask corpus new writes a case that fails until you edit it.

  • Catalog version_hint: how a product writes its versions (7.2.5 for FortiOS, 22.7R2.5 for Ivanti, 7.2.1-69057-5 for Synology). catalog show prints it, and the note for a version that cannot be compared repeats it. A note also warns when your version has fewer parts than the hint's example.

  • Version scheme synology (major.minor[.patch]-build[-update], also 7.2.1-69057 Update 5) for synology-dsm. Dotted read the build number as a patch number.

  • New rule UNP-UNKNOWN-DATA: a version in the data cannot be read; your version is fine. UNP-UNKNOWN-VERSION now means only your own configured version.

  • Finding.fix_other_train and Finding::advice(): when the only fix is on another release train, the advice says there is no fix on your branch, instead of "Upgrade to 7.4.10".

  • CNA keys in the catalog can have summary_starts, so a CNA that files every product under one name (Nextcloud's security-advisories) only counts for the product the description is about.

  • A database that holds a source this build does not know is refused ("needs a newer unpatched", exit code 3) instead of silently dropping the findings.

  • NVD ranges: the CPE update field is joined to the version (8.5 + p1 is 8.5p1, Ivanti 22.7 + r2.4 is 22.7R2.4); other updates (cumulative_update_23, update2) are kept as unplaced, so a version that could match is unknown, never not-affected. CPE version - (not applicable) no longer means all versions: it gave WordPress core the flaws of its plugins.

  • An affected verdict that rests only on "all versions" evidence is unknown (UNP-UNKNOWN-NO-RANGES), and is shown only when the signals would make it now or week. It is never now or week itself.

  • 9.8p1 matches the bound 9.8 (OpenSSH has no plain 9.8): <= 9.8 includes it.

  • A source whose data cannot be read no longer blocks another source's clean not-affected.

  • An item's upgrade_to is never lower than the installed version.

  • rpm versions made only of separators (+_, _+) compare equal, like rpmvercmp.

  • week needs more than exposure: an affected finding is week when EPSS is at or above epss_week, or CVSS is at or above cvss_week, or the item is internet-facing and CVSS is at or above cvss_week_exposed. An unknown CVSS score does not count. UNP-EXPOSED now means that. A first real run put 220 findings in week because of exposure alone.

  • A source that only says "all versions" (with a few unaffected versions) no longer beats a source with specific ranges that exclude your version: the verdict is unknown with UNP-CONFLICT.

  • GitHub issues are per stack item, not per CVE: one issue lists the item's findings by bucket, is updated as they change, and is closed when none of now, week, eol or unknown are left. The hidden marker is now <!-- unpatched:item=... --> and the delivery state tracks items for issues and findings for chat alerts.

  • Finding titles in text, Markdown and issue output are the first sentence, at most 140 characters, unless --verbose. JSON keeps the full text.

  • unpatched explain <CVE> no longer says "not affected" for stack items the vulnerability is not about; it prints one line saying how many are not concerned.

  • CVSS and EPSS scores are f64, so JSON shows 9.6 and not 9.600000381469727.

  • A product that is in the catalog but not in the database now says so ("the database has no data for product ... yet. Run unpatched db update").

  • unpatched init --github prints .github/workflows/unpatched.yml without a stray ./; every command and argument has a help line; the config schema has a description for every key.

  • Releasing needs no clone or local tag: Actions → autorelease → Run workflow → publish releases the version in Cargo.toml (waiting for CI on main), and patch, minor, major or auto open a release pull request that is published when it merges.

Install unpatched 3.0.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Amet13/unpatched/releases/download/v3.0.0/unpatched-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://github.com/Amet13/unpatched/releases/download/v3.0.0/unpatched-installer.ps1 | iex"

Install prebuilt binaries via Homebrew

brew install unpatched

Download unpatched 3.0.0

File Platform Checksum
unpatched-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
unpatched-x86_64-apple-darwin.tar.xz Intel macOS checksum
unpatched-x86_64-pc-windows-msvc.zip x64 Windows checksum
unpatched-aarch64-unknown-linux-musl.tar.xz ARM64 MUSL Linux checksum
unpatched-x86_64-unknown-linux-musl.tar.xz x64 MUSL Linux checksum

Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:

gh attestation verify <file-path of downloaded artifact> --repo Amet13/unpatched

You can also download the attestation from GitHub and verify against that directly:

gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation> --repo Amet13/unpatched