PricingDownload
Product

Platform

All features48 capabilities, from IDE to CICompliance KitsISO 26262, DO-178C, IEC 62304...AI GovernanceControl AI-generated C/C++ codeWhat’s new in 2027Latest version highlightsScreenshotsSee the product in action

Analyze & improve

Coding standardsMISRA, CERT, CWE, AUTOSARArchitecture & dependenciesGraphs, matrix, cyclesSBOM & dependenciesIs our C++ code affected? Minutes, not weeksTechnical debtMeasured in hours and dollarsQuality gatesStop regressions in CISmart Code CityYour codebase in 3D

Integrations

IDE pluginsVisual Studio, VS Code, CLion...CI/CD pipelinesJenkins, Azure DevOps, GitHub, GitLabSonarQube pluginC/C++ results in SonarQubeExternal analyzersClang-Tidy, Cppcheck, coverageFeature on Demand
Solutions

By need

Functional safetyCompliance kits per standardCoding standardsMISRA, CERT, AUTOSAR, ISO...Legacy modernizationRefactor large C/C++ safelyCode auditExpert review of your codebaseM&A due diligenceAssess technical health fast

By role

DevelopersSoftware architectsTech leadsDevOps engineersEngineering managersProject managers

CTOsCIOs / IT leadersQA engineersSecurity leadersComplianceConsultantsRequest a guided PoC
Industries

Safety-critical

AutomotiveISO 26262, MISRA, AUTOSARAerospace & DefenseDO-178C programsMedical DevicesIEC 62304 softwareEnergy & UtilitiesIEC 61508 systemsEmbedded SystemsFirmware and devices

Enterprise

Financial ServicesTrading and paymentsGame DevelopmentEngines and large C++Software VendorsCommercial C/C++ productsGovernmentAgencies and contractorsAll industries & case studies
Resources

Learn

DocumentationGuides, rules and CI setupKnowledge baseFrequently asked questionsBlogC and C++ code quality articlesRelease notesEvery version since 2009

Customers

Case studiesSuccess storiesTestimonialsWhat users sayOur customersCompanies using CppDependGold Code QualityOpen source projects we rate

Programs & company

Feature on DemandMissing features built for freeFree for open sourceLicenses for OSS and studentsContact usSales and supportEULALicense agreement
Docs
Documentation

Design and Architecture

Vulnerability checks

Known vulnerabilities (CVE) in the libraries you declare and in the libraries inside your binaries.

5 min readDesign and ArchitectureCppDepend 2027

Overview

Vulnerability Insights answers: which known vulnerabilities (CVE) are in what I ship? It matches the libraries of your dependency manifests and the libraries found inside your binaries against the OSV.dev vulnerability database, and reports them with their severity and the version that fixes them.

It builds on two other checks: the SBOM (Settings > Dependency Manifests) and Binary checks. Either one is enough: with only manifests you get the declared libraries, with only binaries you get the libraries actually compiled in.

Quick start

  1. Declare your dependencies in Settings > Dependency Manifests (vcpkg, Conan, CMake, and so on) and/or list your binaries in Settings > Binary Analysis.
  2. In Dependency Manifests, allow the online check so that OSV.dev may be called. Without it only the cache of the last check is used.
  3. Open Settings > Vulnerability Policy and choose the lowest severity that becomes an issue.
  4. Run the analysis and open Vulnerability Insights > Vulnerability Overview.

What is matched

SourceWhat is checkedNotes
Manifest dependenciesEvery component of the SBOM with its name and version.Read from the SBOM result of the manifests check.
Binary componentsThe libraries recognised inside your binaries: OpenSSL, zlib, libpng, libcurl, SQLite, expat, mbed TLS, libssh2, libtiff, bzip2, Boost, Qt, ICU, Lua.Needs Binary Analysis.
Declared vs. compiledA binary that contains another version than the manifest declares (drift), or a library no manifest declares.Needs both sources.
OSV.dev has no vcpkg or Conan ecosystem. Libraries are therefore matched by their source repository and release tag (for example OpenSSL_1_1_1k, curl-8_0_0, boost-1.78.0). A library that OSV.dev cannot match under its version is reported as not checked, never as safe.

Online lookup and cache

  • OSV.dev is called only when the online check is allowed in Dependency Manifests (element AllowOnlineLookup). The consent is given once for SBOM and vulnerabilities.
  • The environment variable CPPDEPEND_SBOM_ONLINE overrides it: 1 allows, 0 forbids (useful in CI).
  • Answers are cached in vulns-osv-cache.json in the output folder. Offline, the cache is used and the page says how old it is.
  • CPPDEPEND_VULNERABILITIES=0 switches the whole check off.

Settings

Page Settings > Vulnerability Policy. Saved in the project file, element VulnerabilitySettings.

SettingDefaultEffect
Check known vulnerabilities when the analysis runsOnSwitches the check on or off.
Libraries found inside the binariesOnIncludes the binary components.
Report a binary that contains another version than the manifestOnGives VULN-DRIFT-01.
Report a library in a binary that no manifest declaresOnGives VULN-UNDECLARED-01.
Create issues for the findingsOnFindings become issues of the tool Vulnerabilities.
Lowest severity that becomes an issueMediumLower findings stay on the page only.

Libraries that only come from manifests are reported by the SBOM tool and are not repeated as issues here, so the same CVE is never counted twice.

Rules and how to fix

RuleSeverityWhat it meansHow to fix
VULN-CRITICAL-01CriticalComponent with a critical vulnerability
A published vulnerability of critical severity affects the exact version you ship. Critical usually means remote code execution or full data exposure without authentication.
Upgrade the component to the version shown as fixed. If no fix exists, remove the feature that uses it or isolate it, and track the CVE until a fix is released.
VULN-HIGH-01HighComponent with a high-severity vulnerability
A published vulnerability of high severity affects the version you ship. It is likely to be exploitable in common configurations.
Upgrade to the fixed version. Check in the advisory whether your usage of the library is affected, and plan the upgrade for the next release at the latest.
VULN-MEDIUM-01MediumComponent with a medium-severity vulnerability
A published vulnerability affects the version you ship, but exploiting it needs specific conditions.
Upgrade when you next touch the dependency. Read the advisory to see whether your configuration is exposed.
VULN-LOW-01LowComponent with a low-severity vulnerability
A published vulnerability of limited impact affects the version you ship.
Upgrade with the next routine dependency update.
VULN-DRIFT-01MediumBinary contains another version than the manifest
The manifest (vcpkg, Conan, CMake...) declares one version, but the binary contains a different one. The vulnerability check of the manifest is then about code you do not ship.
Rebuild the binary from the current manifest, or fix the manifest to the version that is really linked. Check for a system copy of the library that is picked up instead.
VULN-UNDECLARED-01LowComponent in the binary but not in any manifest
The binary contains a third-party library that no manifest declares, so the SBOM and the licence and vulnerability checks of the manifests do not see it. Typical case: a library copied into the sources or linked statically from a system package.
Declare the library in your manifest (vcpkg.json, conanfile, CMake FetchContent) so it is tracked, or remove it if it is not needed.
VULN-UNCHECKED-01InfoComponent not checked for vulnerabilities
The component could not be matched against the vulnerability database (offline without cache, or the library is not known to OSV.dev under its version).
Allow the online check in Settings > Dependency Manifests, or look the library up manually in OSV.dev or the NVD.

For every vulnerable component the page lists each advisory (OSV id and CVE when there is one), its severity (CVSS v3 base score when available) and the summary.

Where to see results

  • Vulnerability Insights > Vulnerability Overview: totals by severity, components with their vulnerabilities, drift and undeclared libraries, components not checked.
  • Issues: tool Vulnerabilities.
  • File on disk: <analysis result>.vulns.json next to the analysis result.

How it works

After the SBOM and the binary analysis, the components are merged by name and version. Each one is sent to OSV.dev in one batch query (by repository and tag), the advisories are fetched and their severity is computed from the CVSS v3 vector. The result is cached and written to the sidecar file; findings at or above the chosen severity are appended to the issues. The check never changes your files and sends only library names and versions, never your code.

Limits

  • A match depends on the library being known to OSV.dev under that tag. Unknown means not checked.
  • A vulnerability in a library does not mean your program is exploitable: it depends on which functions you use and on the configuration.
  • The binary version comes from banners and library names; stripped or custom builds may not be recognised.
  • No data leaves the machine when the online check is off.

Questions

Nothing is found but I use old libraries.

The online check is probably off and the cache is empty. Look at the status line of the page.

Do I need Binary Analysis?

No. With only manifests you get the declared libraries; binaries add what is really compiled in and the drift check.

Is any code sent to OSV.dev?

No. Only component names, versions and repository tags.

Was this page helpful?
Evaluating CppDepend on a production codebase?Get a guided proof of concept with our static analysis architects.
Request a PoC