CVE-2015-5676: FreeBSD pkg bootstrap signature validation bypass
CVE-2015-5676 affects the FreeBSD pkg(7) bootstrap utility. When the signature_type option in pkg.conf(5) is set to an unsupported method, the bootstrap logic incorrectly behaves as though signature_type were set to "none" rather than rejecting the configuration or failing closed. This causes package signature verification to be bypassed during bootstrap, enabling acceptance of an untrusted pkg(8) package. The issue is specifically in the handling of unsupported signature methods by the bootstrap utility.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker positioned as a man-in-the-middle on the network path may be able to bypass package signature validation during pkg bootstrap and cause installation of a malicious pkg(8) binary/package. This can compromise the integrity of the package management chain and may lead to execution of attacker-supplied software with the privileges used for bootstrap, typically resulting in full system compromise.
Mitigation
If you can’t patch tonight, do this now.
No workaround is available according to the vendor advisory. The default FreeBSD configuration is not affected because it uses the supported "fingerprint" signature method. Administrators should ensure signature_type is configured only to supported values and avoid non-default unsupported methods until patched.
Remediation
Patch, then assume compromise.
Upgrade FreeBSD to a supported stable or release/security branch containing the fix. On supported RELEASE systems, apply updates using freebsd-update. Alternatively, apply the vendor-supplied patch referenced in FreeBSD advisory EN-15:15/pkg (https://security.FreeBSD.org/patches/EN-15:15/pkg.patch) and rebuild/reinstall the affected components.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2015-5676 exploited in the wild?
- As of May 31, 2026, Mallory has no reports of CVE-2015-5676 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2015-5676?
- As of May 31, 2026, Mallory has found no public exploit for CVE-2015-5676.
- Is there a patch for CVE-2015-5676?
- Upgrade FreeBSD to a supported stable or release/security branch containing the fix. On supported RELEASE systems, apply updates using freebsd-update.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.