# CodeQL

Create code-analysis databases, run semantic security queries and export findings with GitHub’s CodeQL command-line tools.

> This is the Markdown version of the CodeQL page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/codeql>

- **Latest version**: `2.27.6`
- **Developer**: GitHub, Inc.
- **Homepage**: <https://codeql.github.com/>
- **Categories**: [Developer Tools](https://opennavo.com/categories/developer-tools)
- **Install**: `brew install --cask codeql`
- **30-day installs**: 989
- **Homebrew**: Available; updated by Homebrew
- **Download URL**: <https://github.com/github/codeql-cli-binaries/releases/download/v2.27.6/codeql-osx64.zip>
- **SHA-256**: `ded9d52294b4ba4f89e6d1e83053bb94d07c50c9bdea9841ec9897e5fa2ffbc9`
- **Commands**: codeql

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "binary": [
        "$HOMEBREW_PREFIX/Caskroom/codeql/2.27.6/codeql/codeql"
      ],
      "target": "$HOMEBREW_PREFIX/bin/codeql"
    },
    "phase": "install",
    "sources": [
      "$HOMEBREW_PREFIX/Caskroom/codeql/2.27.6/codeql/codeql"
    ],
    "target": "$HOMEBREW_PREFIX/bin/codeql",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": "~/.codeql"
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## About

CodeQL is GitHub's semantic code-analysis system. This package installs the CodeQL command-line interface, which creates analysis databases from code, resolves and runs queries and produces results for review or code-scanning workflows. It is aimed at security researchers, developers and teams integrating static analysis into development or CI.

### Analysis workflow
Build a CodeQL database for a supported language, select compatible query packs or query suites and analyze the resulting database. Queries can describe data flow and relationships in code rather than only matching source text. Results can be exported in formats such as SARIF for compatible viewers or GitHub code scanning. The separate CodeQL extension for VS Code provides an interactive query-development interface; it is not the graphical application installed by this cask.

Coverage depends on the language, extraction configuration, build mode and query selection. A successful command is not proof that every source file was extracted or every vulnerability detected. Review warnings and database coverage, and investigate findings before treating them as confirmed defects.

### Installation and prerequisites
Use the official codeql-osx64.zip archive or `brew install --cask codeql`. The Homebrew cask exposes the codeql executable from the extracted distribution. Despite its osx64 filename, the official release text explicitly includes Apple Silicon in macOS support. The checked sources do not establish a precise numeric minimum macOS release or independently verify the archive's complete binary architectures, so no additional numeric requirement or Universal claim is invented.

The CLI includes a Java runtime; version 2.27.1 updates the bundled Eclipse Temurin OpenJDK to 25.0.4.1. An alternative JDK can be selected with CODEQL_JAVA_HOME when required. Language compilers, build tools, project dependencies and compatible CodeQL language/query packs are separate workflow prerequisites, depending on what you analyze. The cask itself declares no separate formula dependency or named conflict. The CLI-only platform ZIP should not be confused with a CodeQL bundle containing compatible query resources.

Normal analysis needs filesystem access to source, build outputs and analysis databases. The checked documentation does not establish a blanket Accessibility or Full Disk Access requirement. Database creation for compiled languages may run a project's build; use source and build scripts you trust and allocate enough CPU, memory and disk space for the repository.

### License, accounts and network
The CodeQL CLI is governed by GitHub CodeQL Terms and Conditions, distinct from the MIT-licensed query source repository. Downloading a binary does not grant unrestricted commercial use for every private codebase. GitHub documents access for public repositories and eligible private repositories with the appropriate GitHub Code Security licensing. Review the current terms for your intended codebase and deployment.

Local database analysis and query execution are separate from authenticated GitHub integration. Downloading packs, accessing private registries and uploading SARIF results can require network access and credentials. Do not describe every workflow as requiring an account, or every workflow as entirely offline. Protect tokens and check organization permissions before enabling uploads.

### Data and practical risks
Analysis databases and exported findings can contain source-derived information, paths and security-sensitive details. Store them according to your repository's confidentiality requirements and review destinations before uploading. Queries, pack dependencies and build scripts can influence what is executed; verify their provenance. Static analysis complements testing and review and does not guarantee that a codebase is secure.

The official v2.27.2 release lists codeql-osx64.zip as 981,956,830 bytes. This is the Mac CLI archive, not the generic multi-platform ZIP or an installed database size. Version 2.27.0 deprecates the generic combined distribution in favor of per-platform downloads.

CodeQL 2.27.3 documents a traced-build limitation: autobuild and manual build modes for compiled languages are unsupported on macOS 27 with any Xcode, and on macOS 26 when Xcode 27 is selected. This concerns traced analysis and does not establish that every other analysis mode is unsupported.

[CodeQL 2.27.3](https://github.com/github/codeql-cli-binaries/releases/tag/v2.27.3)

Sources: [Official product](https://codeql.github.com/), [CLI concepts and licensing](https://docs.github.com/en/code-security/concepts/code-scanning/codeql/codeql-cli), [Official binary releases](https://github.com/github/codeql-cli-binaries/releases), [CLI terms](https://github.com/github/codeql-cli-binaries/blob/main/LICENSE.md).

## System requirements

- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 2.27.6 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/codeql.rb> · Checked 2026-11-27
  - <https://github.com/github/codeql-cli-binaries/releases/download/v2.27.6/codeql-osx64.zip>
  - SHA-256: `ded9d52294b4ba4f89e6d1e83053bb94d07c50c9bdea9841ec9897e5fa2ffbc9`
- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 2.27.6 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/codeql.rb> · Checked 2026-11-27
  - <https://github.com/github/codeql-cli-binaries/releases/download/v2.27.6/codeql-osx64.zip>
  - SHA-256: `ded9d52294b4ba4f89e6d1e83053bb94d07c50c9bdea9841ec9897e5fa2ffbc9`

## Price

- Free with in-app purchases — Official website: <https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/about-the-codeql-cli> · <https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/about-the-codeql-cli> · Checked 2026-10-22

## Uninstall

- `brew uninstall --cask codeql`

A regular uninstall removes the app and keeps its settings and caches.

### Deep clean (optional)

- `brew uninstall --zap --cask codeql`

`--zap` also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out `--zap`.

A regular uninstall removes the app and keeps its settings and caches.

- Files and folders: `~/.codeql` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/codeql.rb> · These entries come from the Homebrew definition, checked 2026-11-27. They say what it declares, not what is on your Mac.

## Latest release notes

### 2.27.6 (2026-11-24)

CodeQL CLI 2.27.6 updates the bundled JDK to mitigate Java4Shell (CVE-2026-114938).

**Security**

- Bundled JDK is now Temurin jdk-25.0.5.1+2.
- The Java extractor disables HotSpot Base64 intrinsics.

## Facts and sources

- <https://opennavo.com/apps/codeql>
- <https://opennavo.com/apps/codeql/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/c/codeql.rb> · Checked 2026-11-27
- <https://formulae.brew.sh/cask/codeql>
- <https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/about-the-codeql-cli> · Checked 2026-10-22
