Skip to content

Releases

1.2.0

Choose a tag to compare

@Wushangyin Wushangyin released this 10 Nov 05:29

Candidate pairs that stand on more than a learned link are now marked.

  • A candidate pair is corroborated when a record states where the affected versions begin on the component's own major line, no flag points elsewhere, and either the jar holds classes the cited fix changed (corroborated_by: fixed_classes) or the vendor's own advisory names this very module (vendor_advisory). The README lists the conditions.
  • candidates.csv gains a corroborated column, summary.candidates gains corroborated, pairs_corroborated and pairs_corroborated_by, and the MCP tools return the fields. Each pair also tells whether the vendor's advisory names its module (advisory_names_module).
  • A corroborated pair is still a candidate and stays out of the finding counts.
  • Nothing else changes: findings, candidates and their flags are the same as 1.1.1's.

1.1.1

Choose a tag to compare

@Wushangyin Wushangyin released this 10 Nov 02:17

A fix to db sync on Windows.

  • A large dataset is fetched in pieces over several connections, and a slow piece is fetched a second time over a connection that is free. The file the second fetch wrote was deleted both by the fetch and at the end of the download, and on Windows the later of two deletions under way at once is refused (PermissionError: [WinError 5] Access is denied), which failed the whole download. It is now deleted in one place, once nothing writes to it; one that cannot be deleted yet (a virus scanner has it open) is left, is never read, and the next download of the file removes it.
  • Scans are not affected: results are the same as 1.1.0's.

1.1.0

Choose a tag to compare

@Wushangyin Wushangyin released this 09 Nov 19:05

The SBOMs now say which delivered jar depends on which, and come in SPDX as well.

  • Dependency graph. Each jar's dependencies are those its own POM declares. A jar that carries none (a Gradle build) takes those of the POM published with it, if the file is the published one. A dependency is linked to the jar delivered with it — in the same war, distribution, container image or scanned directory, or inside it, as in a Spring Boot jar — by groupId and artifactId; versions are not compared. See Dependency graph for how edges are drawn and Limitations for what is not followed (parent POMs, profiles, npm).
    • binwitness.json: depends_on on components and on first-party and unidentified jars ([]: none of its dependencies is delivered, null: not known); dependencies on each file (what was declared, and where it was read); summary.dependencies; summary.incomplete.dependencies_not_read when a published POM could not be read.
    • sbom.cdx.json: dependencies, with each input depending on the jars in it that nothing else there depends on.
  • SPDX. Every scan also writes sbom.spdx.json, SPDX 2.3 JSON: a package per input and per file with checksums, purl and declared license; CONTAINS follows where each file was found (a jar in a war, a library shaded into the jar it is in); DEPENDS_ON is the dependency graph; vulnerabilities are SECURITY references to OSV. License names without an SPDX id are declared as LicenseRef-s carrying the name.
  • Both SBOMs pass the CycloneDX 1.5 schema (strict) and the SPDX tools' validation on every delivery of the regression set.
  • Nothing else changes: on the regression set, components, findings, licenses, upgrade advice and candidates are the same as 1.0.0's. A scan now asks for one more file per jar that carries no POM of its own (the published POM); --lookup local and --offline scans read it from the cache only, and say how many they could not.

Results written by earlier versions still open.

1.0.0

Choose a tag to compare

@Wushangyin Wushangyin released this 09 Nov 16:46

The first stable release. From 1.0 the command line, exit statuses, output files and their fields, CSV columns, dataset names and MCP tools follow semantic versioning (README, Versioning); what is found, and how candidates are judged, is outside it and may change in any release, with the reason in the notes.

New

  • NVD candidates for CVEs OSV attributes only to another module of the component's project (basis sibling, attributed_to). When that module publishes a jar (sibling: aggregate), the pair is made only when the component's jar holds the module's own classes: those the fix changed, else those the record names, else at least half of them; classes of the fix the jar shares with the module say nothing when the classes the record names are the module's and none is in the jar (one commit of a release can fix a dozen flaws). When it does not (sibling: umbrella), the CVE goes to one module of the project: the one the record or the vendor names, else one holding the classes the fix changed or the record names, else the main module, flagged sibling_module_undetermined. What decided is in sibling_evidence.
  • The CVE stays off the family's other modules when OSV attributes it to a module with a jar as well, or a finding of the scan places it on a module of that version; and off the main module when its jar lacks the classes the fix changed or the record names. Commits of another line of the project (Netty 3's org.jboss.netty for io.netty) say nothing.
  • Whether a coordinate publishes a jar comes from the hash index, else the packaging of that version's POM; POMs and jar listings are read once per coordinate and version, and from the cache only in a local scan.
  • Pairs not made are counted by reason in pairs_left_out (sibling_classes_not_in_jar, sibling_not_read, sibling_not_told, sibling_on_another_module) and in a warning that says, offline, how many an online scan can tell.
  • The fixes dataset also reads the commits cited for CVEs OSV attributes to a module of a multi-module project. Run binwitness db sync fixes to fetch them.

Fixes

  • A Java source file a record names (UserController.java) counts as a class it names.
  • The evidence for coordinates taken from the jar under a republication says the index records one coordinate per file.

Known limits

  • Class evidence works at the level of files. A fix that changes a method of a class every version ships, or a record that names only a method, cannot tell a jar that has the flaw from one that does not.

Results written by earlier versions still open.

0.4.9

Choose a tag to compare

@Wushangyin Wushangyin released this 09 Nov 14:51

A jar the hash index files under a one-off republication is named after the original again.

Fixes

  • The local hash index keeps one coordinate per file. activation-1.1.1.jar, which has no pom.properties, sits there under one.gfw:activation:1.1.1, a copy of the javax.activation file; that coordinate fits the file name, so a local scan took it as it was, while an online scan names javax.activation. When the indexed coordinate fits the file name, it now gives way only to a groupId the jar's packages are in, that published earlier versions of the artifact and has no file for this one, and only if the indexed groupId has no other version of the artifact and the packages are not in it. A project that moved its groupId and kept its packages (org.apache.groovy) and a groupId that began later (org.dom4j for dom4j 1.6.1) keep the indexed name.
  • The republication is listed with the file (also_published_as), so advisories filed under it still count.

Results written by earlier versions still open.

0.4.8

Choose a tag to compare

@Wushangyin Wushangyin released this 05 Nov 03:43

A scan on Windows no longer stops when two jars look up the same address at once.

Fixes

  • Two jars asking the same URL at once (a renamed copy and the jar it copies, say) could have one thread read the cached answer while another replaced it. Windows refuses to replace an open file, and the scan stopped with PermissionError: [WinError 5] Access is denied. Storing the answer is now tried a few times and otherwise left to the next lookup; the answer itself is used either way.

Tests

  • The test of second fetches during a download checked that only one ran. Once the held pieces are let go, the other piece may be fetched again for the bytes it has left, which the rule allows; it now checks that the bytes fetched twice stay within one piece, and failed on CI only when threads were scheduled that way.

Results written by earlier versions still open.

0.4.7

Choose a tag to compare

@Wushangyin Wushangyin released this 30 Oct 20:47

Coordinates chosen the same way whatever the cache holds, relocated artifacts share their CVE links, and a second fetch for the slowest piece of a download.

Which coordinates name a jar

  • When the same file is published under several coordinates, the choice depends only on the jar and the installed datasets: the coordinates in its own pom.properties, one that matches the file name, one whose groupId the jar's packages are in, the artifact with more releases in the hash index, then alphabetical order. With the hash index installed, a jar it lists is no longer looked up on deps.dev or in the cache, so a local scan names it the same way with an empty cache and a full one. Before, bcprov-jdk14-1.38.jar was bouncycastle:bcprov-jdk14:138 on an empty cache, whose version no advisory range (< 1.78) meets, and org.bouncycastle:bcprov-jdk14:1.38 on a full one.
  • The hash index files each file under one coordinate, often a republication (commons-io 2.6 in a NetBeans module), and then lists no file under the original's version. The original's coordinates are taken from the jar's pom.properties or, failing that, its file name, when the index knows that artifact, lists no file for that version and numbers its releases the same way. A pom.properties that names the indexed artifact itself with another version (7.4.1 for 7.4.1.jre8, a snapshot) is the project's own release and changes nothing.
  • A renamed copy that carries only the pom.properties of a library shaded into it, read offline where it cannot be compared with the published artifact, takes the coordinates of the identified jar in the delivery with the same entries, as an online scan does: a copy of guice 4.1.0 is no longer named cglib 3.2.0. Another release of the declared artifact with the same entries bears the declaration out instead.

Candidates

  • An artifact relocated to new coordinates shares the CPE links learned for the old ones, and the other way round: com.mysql:mysql-connector-j 8.0.32 gets CVE-2023-21971 through the link learned for mysql:mysql-connector-java. The relocation is read from the last POM of the old coordinates, from the Maven repositories, or from the cache in an offline scan. Such pairs are reached by a "link learned for relocated coordinates", with learned_for and relocated_by; the summary counts the POMs that could not be read (relocations_not_read).
  • A package that a CNA's record names is recognised when a component of the scan was identified as it (exact or content), also without the hash index.
  • summary.candidates.data_as_of lists only the local copies the candidates were read from, as data_sources.local does.

Downloads

  • Once no piece of a large file is left to start, a free connection fetches the rest of a piece going at under half the typical speed a second time, and the piece is taken from whichever fetch finishes first. The bytes fetched twice stay within one piece; an interrupted sync resumes from the piece's own file.

Offline scans and reading jars

  • An offline scan counts the scripts it could not look up in its offline warning, rather than one warning each.
  • Without the hash index, an offline scan that leaves jars unidentified says that db sync maven-hashes identifies the published ones locally.
  • A jar that lists an entry twice over the same data (spring-boot-jarmode-layertools 2.4.1) is read in full: Python 3.12 took the second listing for a zip bomb, and the jar lost its entry list.

Results written by earlier versions still open.

0.4.6

Choose a tag to compare

@Wushangyin Wushangyin released this 30 Oct 17:40

Syncing: large files over several connections, a clearer fixes, and true counts of the CVE list's changes.

Downloads

  • A large file (the OSV archives, the cvelist snapshot, the hash base) is fetched in pieces of 8 MB over four connections when its server sends ranges. One connection is often held far below what the line gives: in one test, of four connections at once, three fetched their 4 MB in seconds and one in minutes; over another, 16 MB took 62 s on one connection and 7 s on four. A slow connection now holds up a piece, not the file.
  • Each piece resumes where it stopped, also in the next sync; pieces of a file that has changed since are dropped. A server that sends no ranges, or a file no larger than a piece, is downloaded in one as before.

fixes and cvelist

  • The commits the CNAs' records cite are read only when cvelist is installed. Without it, the fixes outcome says so; the README says to sync cvelist before fixes (all does).
  • A sync that brings new records of osv-maven, nvd or cvelist without syncing fixes says how many commits they cite that fixes has not read.
  • Working out which commits the records cite reads only the CPEs of the CVEs OSV attributes and the records that carry one, and the CNAs' records a page at a time: sync fixes, and the count above, take some 50 MB at most rather than 230.
  • cvelist counts the records that changed: an hour's release repeats the day's earlier hours, and a day's end repeats its hours, and these were counted again (in one sync, 1,990 for some 180).

Output

  • The summary counts the component pairs by how they were reached (learned link, named in the record, the vendor's advisory, the CNA's package…).
  • An online scan records in data_sources.local the local datasets its candidates were read from, and how current they were, as a local scan does; where the findings came from is options.lookup.

Results written by earlier versions still open.

binwitness 0.4.5

Choose a tag to compare

@Wushangyin Wushangyin released this 30 Oct 13:46

NVD candidates now come up before NVD has analysed a record: from the record as the CNA (the organisation that assigned the CVE) published it.

CNAs' records

  • New dataset cvelist: the CVE records of the CVE Program's cvelistV5 repository (binwitness db sync cvelist, part of all; needs osv-maven). The first sync downloads the latest snapshot, about 650 MB in one resumable file; later ones apply each missing day's changes (about 5 MB a day) and the latest hour's. A copy more than 40 days behind, or missing a day no longer published, is downloaded again. Of about 400,000 records, the text of some 39,000 that may reach a Maven package is kept (130 MB on disk); texts needed later are fetched one by one, at most 1,000 per sync, and db status says how many remain.
  • For a CVE that OSV attributes to no package, a record reaches a component by the package it names (cna_package), by a CPE it carries that is linked with the package (cna_cpe), or by its product name, linked with the package the way a CPE is, from the CVEs OSV attributes (cna_learned). A link learned from one CVE must also read as the package. With the spring dataset, Spring's advisory reaches the modules it names with its own versions (advisory_direct).
  • CPEs and product names stand for a package only while NVD has given the record no CPE: a record NVD has analysed whose CPEs are not linked with the package is mostly about another product (Oracle's "MySQL Connectors" records are about Connector/Python). Where NVD's CPEs reach the component, NVD's versions decide.
  • Versions are read in the terms of CVE JSON 5. A version the default status calls unaffected is one the vendor did not list, not one it found safe. A record that does not tell (default unknown, or affected beside bounded ranges) is left out and counted.
  • New flag below_listed_lines: the record lists ranges on two or more release lines, and the version is affected only by the range from the first version up, on an older line. Flagged only.
  • Pairs reached by a CPE or a product name are left out when the record's text names another module, or the CNA's package name is a stem that leaves the build out (bcprov, bcpg); the summary counts them by reason.

Fix commits

  • The fixes dataset also reads the commits that the CNAs' records cite (in the repositories the CVEs OSV attributes under the same product cite), and those Apache Tomcat's security pages list for each CVE. java/ of an Ant build counts as main code. About 430 commits: 8 MB from github.com.

Flags

  • Named classes: when the jar holds one of the classes a record names, the others are not listed as missing. Classes in java.* are never missing. A two-word name counts as missing only when the record names a member of it (HTTP2Flusher.terminated) or the fix changed it.
  • A library shaded into another jar (netty-codec-mqtt inside netty-all) is checked against the classes whose folders spell its artifactId; a class no single library owns may be any one's and is missing for none. This applies to both class flags.
  • Languages named in a list of bindings count however written ("go bindings", "nodejs and D lang bindings"), JavaScript included. D and Java ME are recognised; Java ME is another language than Java.

Results

  • In one delivery of about 1,100 jars, the CNAs' records and Spring's advisories add 189 pairs, and 64 records come up that NVD had given no CPE yet, 47 of them published in October 2026; of the 40 judged on review, 32 are real or plausible for at least one component. Of the 70 pairs Apache Tomcat's records reach in three deliveries, the 39 on a module the fix did not change are flagged, and none of the others.
  • Pairs from NVD's records are the same as with 0.4.4; more of them are flagged, through the new fix commits and class rules.

Output

  • Every candidate gives the CNA's short name and the dates of its record (cna, cna_published, cna_updated), and record_from (nvd or cna); every pair gives versions_from (nvd, cna or advisory), below_listed_lines and cna_product.
  • candidates.csv: new columns "versions from", "only on a line below those listed", "product in the CNA's record", "cna" and "cna published".
  • The summary counts pairs by basis and by versions_from, the records from CNAs only, and the pairs left out by reason.
  • MCP: get_candidate gives the CNA's record where NVD has none with a CPE; list_candidates filters by the CNA's product name too.
  • db status gives the size of cvelist, its data time, the records kept with their text, and the texts still to fetch. The Spring copy's data date is shown rather than ?.

Known limitations (see the README)

  • Names written like classes that are not Java classes (TLS messages, native functions) are taken for missing classes: 8 pairs on netty-tcnative builds in the delivery above.
  • Languages are read from the description only, not from the package name or repository a CNA gives.
  • A fix's classes may have had other names in older versions; a fix that changed no Java code flags nothing.

Results written by earlier versions still open.

binwitness 0.4.4

Choose a tag to compare

@Wushangyin Wushangyin released this 30 Oct 08:22

NVD candidates now read the commit that fixed the flaw, to see which module it is in.

Fix commits

  • New dataset fixes: for the records that can become candidates of a Maven package, the GitHub commits they cite in the project's own repository, read for the files each changed (binwitness db sync fixes, part of all; needs nvd and osv-maven). About 170 commits are read: 3 MB from github.com, 0.2 MB kept. A commit does not change once made, so each one is fetched once, and a later sync fetches only the commits of new records. Commits of other projects that a record cites (a product that bundles the library) are listed and not read.
  • GitHub limits what one address may fetch. The commits are read a few at a time. A 429 is waited out as a server error is. When GitHub keeps refusing, the sync stops asking, keeps what it has, and says how many commits remain; the next sync goes on from there.
  • A candidate gives the main-code classes its fix modified, deleted or renamed (fixed_classes, by their names before the fix), the classes it added apart (classes_added_by_fix), and its commits with how each was read. When NVD tagged some of the commits as the patch, the classes come from those commits only (fixed_classes_from says which), since a record may also cite the commit that brought the flaw in.

New flag

  • A pair whose jar holds none of the classes the fix changed is flagged fixed_classes_not_in_jar, never left out. Multi-release and relocated copies count. A jar that holds some of the classes is not flagged: a fix often changes a class every module shares as well. A class can also be missing because it had another name in an older version.
  • In one delivery of about 1,100 jars, 39 of 467 pairs are flagged, and none of them had been judged real or plausible on review. Every pair judged real or plausible whose fix was read holds the fix's classes. Pairs and findings are the same as with 0.4.3.

NVD copy

  • The nvd dataset now keeps every commit reference of a record with the tags NVD gives it. A copy stored by 0.4.3 or earlier is downloaded again in full at the next sync (about 235 MB). Until that is done, and without a connection, the copy at hand is used as before; the fix commits it cites are read without their tags.
  • binwitness db status says when the nvd copy will be downloaded again, and how many fix commits are still to be fetched.
  • A full download of nvd fetches four yearly feeds at a time: NVD serves each connection at about 100 kB/s, and each further connection adds as much again.

Output

  • candidates.csv: new columns "classes the fix changed", "of them in this jar", "none of the fix's classes in this jar" and "fix commits".
  • The summary counts the flagged pairs, and says how many candidates citing a commit have the classes it changed.
  • MCP: get_candidate gives the fix's classes and commits. Its guide explains them and the new flag.

Results written by earlier versions still open.