617 FreeBSD ports: better matching for vulnerability scanners
Insight · 26 November 2026 · OTTRIA
A vulnerability scanner has to answer one question before it can even start looking: what software is this, exactly? The package name is not enough. The same project appears under several names, and similarly named projects are often entirely different software. That is what CPE is for — a standardised product identifier that allows software to be matched against the vulnerability reports in the NVD.
On 26 November, a contribution from OTTRIA landed in the FreeBSD ports tree: 617 port makefiles received a CPE declaration, covering 622 ports — flavors and derived ports share a makefile.
| Metric | before | after |
|---|---|---|
| Ports with a CPE declaration | 3,360 | 3,982 |
| CPE outputs including flavors | 4,278 | 4,948 |
Measured against the ports tree as of 23 November, excluding parallel changes by other maintainers.
The new matches concentrate on:
- 92 web servers and web applications
- 70 security tools
- 68 development libraries
- 67 network services
Where matching is possible at all #
The FreeBSD ports tree contains 35,202 versioned ports. That figure does not yield a meaningful percentage, because for a large share of this software no entry exists in the CPE dictionary at all — no vulnerability has ever been reported for it. There, the match is not missing; there is nothing to match.
The interesting group is the other one: software for which an entry does exist, but the port simply does not name it. Those are the ones we were looking for. After matching project and download URLs against the dictionary and reviewing each hit individually, around 640 ports remained for which the match could be proven conclusively.
622 of them are covered by this contribution. For the remaining 20 or so, the maintainers had added the declaration themselves in the meantime — that is a result too.
Where the matches come from #
The basis was a verified local copy of the official NVD CPE dictionary dated 13 November 2026: 1,873,730 entries, of which 1,660,251 are applications, spread across 48,784 active product families.
Every match was proven via the source, not the name:
- 505 ports via a unique hit on the project, repository, or path URL
- 80 ports via a unique hit on the project homepage
- 37 ports via a unique hit on the download URL
In addition, the product name, the port description, and the inheritance between master and slave ports were checked. There are no invented vendor or product names.
What we deliberately left out #
The matching produced far more hits than the roughly 640 provable cases. We deferred wherever a match is plausible but not provable:
- Several official product families for the same name. dns/c-ares finds both c-ares:c-ares and c-ares_project:c-ares in the dictionary.
- Shared makefiles. For graphics/openimageio, inheritance would pass the declaration on to the Python bindings as well — and those are a different product.
- Language and meta packages, unclear components, and forks. A library is not the application that uses it.
A wrong CPE is worse than none: it raises false alarms about someone else's software while hiding the fact that your own is not covered. These cases need individual review, not automation.
What happens next #
This CPE contribution is the first step, not the outcome. The deferred candidates are documented, and the next round is already under way. You will read the results here.
What this means for your supply chain #
This change does not fix a single vulnerability. It altered no code and closed no bug. What it does determine is whether an existing report reaches you at all. The many established monitoring solutions need a data foundation they can work with. With this contribution, we have improved that foundation for everyone.