Skip to content
Heist/ feed
Back to feed
High

Bareos's negative command ACLs can be circumvented by abbreviating commands

Type: advisorySources: OSV

Bareos is open source software for backup, archiving, and recovery of data for operating systems. When a command ACL is in place and a user executes a command in bconsole using an abbreviation (i.e. "w" for "whoami") the ACL check did not apply to the full form (i.e. "whoami") but to the abbreviated form (i.e. "w"). If the command ACL is configured with negative ACL that should forbid using the "whoami" command, you could still use "w" or "who" as a command successfully. Fixes for the problem are shipped in Bareos versions 23.0.4, 22.1.6 and 21.1.11. If only positive command ACLs are used without any negation, the problem does not occur.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-45044
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:06 UTC · Revision 1

Source evidence

Bareos's negative command ACLs can be circumvented by abbreviating commands

core-osv · Original source

Published 10 Sept 2024, 14:57 UTC

Bareos is open source software for backup, archiving, and recovery of data for operating systems. When a command ACL is in place and a user executes a command in bconsole using an abbreviation (i.e. "w" for "whoami") the ACL check did not apply to the full form (i.e. "whoami") but to the abbreviated form (i.e. "w"). If the command ACL is configured with negative ACL that should forbid using the "whoami" command, you could still use "w" or "who" as a command successfully. Fixes for the problem are shipped in Bareos versions 23.0.4, 22.1.6 and 21.1.11. If only positive command ACLs are used without any negation, the problem does not occur.

osv:CVE-2024-45044
Complete source record
{
  "id": "1c53a9dc7b1a0a18f929380ae9d5e22f7f3d5f86bd4f1d52ae2c7ab9259472f2",
  "url": "https://osv.dev/vulnerability/CVE-2024-45044",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Bareos's negative command ACLs can be circumvented by abbreviating commands",
    "summary": "Bareos is open source software for backup, archiving, and recovery of data for operating systems. When a command ACL is in place and a user executes a command in bconsole using an abbreviation (i.e. \"w\" for \"whoami\") the ACL check did not apply to the full form (i.e. \"whoami\") but to the abbreviated form (i.e. \"w\"). If the command ACL is configured with negative ACL that should forbid using the \"whoami\" command, you could still use \"w\" or \"who\" as a command successfully. Fixes for the problem are shipped in Bareos versions 23.0.4, 22.1.6 and 21.1.11. If only positive command ACLs are used without any negation, the problem does not occur.",
    "evidence": "osv:CVE-2024-45044",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-45044",
      "aliases": [
        "CVE-2024-45044",
        "GHSA-jfww-q346-r2r8"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/bareos/bareos",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2666e296ffc4693311266f86ca7bd40ce57e607b"
                },
                {
                  "fixed": "2e70ad6e57fa7b3c1c52a8eb903b8ce6a633b7e7"
                },
                {
                  "introduced": "9419579469c591093427aa98a6a9dba4225ddf75"
                },
                {
                  "fixed": "92a348645c27ad64eb9ceba81df5f74a8c2cb4b2"
                },
                {
                  "introduced": "0"
                },
                {
                  "fixed": "976d9f6667892372397458b52696c9648169d0a0"
                },
                {
                  "fixed": "2a026698b87d13bd1c6275726b5e826702f81dd5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "23.0.0"
                      },
                      {
                        "fixed": "23.0.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "22.0.0"
                      },
                      {
                        "fixed": "22.1.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "21.1.11"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2a026698b87d13bd1c6275726b5e826702f81dd5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "Release/23.0.3",
            "Release/22.1.5",
            "Release/21.1.10",
            "WIP/21.1.10-pre",
            "WIP/22.1.5-pre",
            "WIP/23.0.3-pre",
            "Release/23.0.2",
            "Release/22.1.4",
            "Release/21.1.9",
            "WIP/23.0.2-pre",
            "Release/23.0.1",
            "WIP/23.0.1-pre",
            "WIP/22.1.4-pre",
            "Release/23.0.0",
            "Release/22.1.3",
            "WIP/22.1.3-pre",
            "WIP/24.0.0-pre",
            "Release/22.1.2",
            "WIP/21.1.9-pre",
            "WIP/22.1.2-pre",
            "Release/22.1.1",
            "Release/21.1.8",
            "WIP/22.1.1-pre",
            "Release/22.1.0",
            "WIP/21.1.8-pre",
            "WIP/22.0.4-pre",
            "Release/22.0.3",
            "Release/21.1.7",
            "WIP/22.0.3-pre",
            "Release/22.0.2",
            "WIP/21.1.7-pre",
            "WIP/22.0.2-pre",
            "Release/22.0.1",
            "WIP/22.0.1-pre",
            "Release/22.0.0",
            "Release/21.1.6",
            "WIP/21.1.6-pre",
            "Release/21.1.5",
            "WIP/21.1.5-pre",
            "Release/21.1.4",
            "WIP/21.1.4-pre",
            "Release/21.1.3",
            "WIP/21.1.3-pre",
            "Release/21.1.2",
            "WIP/21.1.2-pre",
            "Release/21.1.1",
            "WIP/21.1.1-pre",
            "Release/21.1.0",
            "WIP/21.0.1-pre",
            "Release/21.0.0",
            "WIP/21.0.0-pre",
            "WIP/20.0.0-pre",
            "WIP/19.2.4-pre",
            "Release/18.4.1",
            "Release/17.2.4-rc1",
            "Release/12.4.1",
            "Release/12.4.0",
            "Release/bacula-5.2.13"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-45044.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.454107946Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45044.json",
        "https://github.com/bareos/bareos/security/advisories/GHSA-jfww-q346-r2r8",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-45044",
        "https://github.com/bareos/bareos/commit/2a026698b87d13bd1c6275726b5e826702f81dd5",
        "https://github.com/bareos/bareos/pull/1875"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-285"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45044.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-45044",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521196,
  "published_at": "2024-09-10T14:57:57.464+00:00"
}