Flawfinder
dwheeler.com
- Free plan
- Windows
- macOS
- Linux
- Self-hosted
What Flawfinder is
Flawfinder examines C and C++ source code for possible security weaknesses and sorts reported hits by risk. It compares source text with a built-in database of functions associated with security problems, generally ignoring comments and strings except where Flawfinder directives apply. Risk depends on the function and its parameter values, and the tool may lower some false positives when it can identify a safe construct. Reports can be generated as text, HTML, CSV, or SARIF. Its patch option limits results to changed lines in a unified diff, with a one-line margin around changes. Flawfinder is free under GPL-2.0+ and requires Python 2.7 or Python 3. Installation is documented through pip, source downloads, and distribution packages. It works on Unix-like systems, including GNU/Linux, and Windows use is documented through Cygwin; direct Windows use has also been reported to work. Flawfinder does not perform control-flow or data-flow analysis, so results need human review. The project advises analyzing a copy of source code and warns against loading or diffing hitlists from untrusted sources because they use Python pickle.
Who it suits
Flawfinder suits developers looking for potential security problems in C/C++ source before release. It is an aid for review, not a replacement for security knowledge or human judgment.
Good to know, and what to watch
- Free under GPL-2.0+
- Sorts possible weaknesses by risk
- Supports text, HTML, CSV, and SARIF output
- Patch option focuses results on changed lines
- Does not perform control-flow or data-flow analysis
- Some reported hits are not vulnerabilities
- Some vulnerabilities may not be found
Plans
Every plan and priceFlawfinder
Free plan
The verdict
Flawfinder offers a focused way to flag possible C/C++ security issues in source code. Treat its output as a starting point for human review, and use a copy of the source when analyzing.
What the maker publishes
- CWE and practices
- The project says Flawfinder is CWE-compatible and has earned the CII Best Practices passing badge. source
- Detection method
- It matches source text against a built-in database of C/C++ functions associated with security problems, ignoring comments and strings except for Flawfinder directives. source
- Installation
- The site documents installation with pip, direct source download, and distribution packages; it requires Python 2.7 or Python 3. source
- Integrations
- The site describes CSV output as useful for integrating with other tools and also offers SARIF output in JSON format. source
- Intended users
- The site presents Flawfinder as an aid for developers seeking to find potential security problems in C/C++ application source before release, and cautions that it does not replace security knowledge or human review. source
- License
- Flawfinder is released under GNU General Public License version 2 or later, with SPDX expression GPL-2.0+. source
- Maintainer
- David A. Wheeler says he created and maintains Flawfinder, a C/C++ security static analysis tool, since 2001. source
- Output formats
- It can produce text, HTML, CSV, and SARIF output. source
- Patch review
- The --patch option limits reported hits to lines related to changes in a unified diff, with a one-line margin around changed lines. source
- Purpose
- Flawfinder examines C/C++ source code and reports possible security weaknesses sorted by risk level. source
- Risk ranking
- Reported hits are sorted by risk, which depends on the function and its parameter values; the tool may reduce some false positives when it determines a construct is not risky. source
- Safe use
- The site advises analyzing a copy of source code and warns against loading or diffing hitlists from untrusted sources because they use Python pickle. source
- Security limits
- Flawfinder does not perform control-flow or data-flow analysis, and the site warns that some reported hits are not vulnerabilities and some vulnerabilities may not be found. source
- Support
- The project directs general questions to its mailing list and specific bugs or feature requests to git or the issue tracker on SourceForge. source
- Supported systems
- The site says Flawfinder works on Unix-like systems, including tested GNU/Linux, and on Windows using Cygwin; it also reports that direct Windows use has been reported to work. source
Checked against the maker's pages on 4 Oct 2026.