BareosApplication

CVE-2020-4042

MEDIUM · 6.8 CVSS v3.1 Published 2020-07-10
Fix available
A fix is available. Upgrade to after 19.2.7 or later.
See remediation →
77/100
Remediation priority · High
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Bareos before version 19.2.8 and earlier allows a malicious client to communicate with the director without knowledge of the shared secret if the director allows client initiated connection and connects to the client itself. The malicious client can replay the Bareos director's cram-md5 challenge to the director itself leading to the director responding to the replayed challenge. The response obtained is then a valid reply to the directors original challenge. This is fixed in version 19.2.8.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A CRAM-MD5 authentication bypass in Bareos Director where a malicious client can replay the director's own cram-md5 challenge back to it, obtaining a valid authentication response without knowing the shared secret. This works when the director allows client-initiated connections and connects to the client, enabling the replay attack.

MitigationUpgrade to Bareos version 19.2.8 or later. If immediate upgrading is not feasible, consider disabling client-initiated connections if business requirements allow.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
BareosApplication
Affected:<= 19.2.7= 19.2.8

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Bareos Director version
    Run 'bareos-dir --version' or check the installed package version via your system package manager (e.g., dpkg -l bareos-director or rpm -qi bareos-director)
    Affected if The installed version is 19.2.7 or earlier, or exactly 19.2.8
  2. Locate the Bareos Director configuration file
    The configuration is typically at /etc/bareos/bareos-dir.conf or /etc/bareos/director.conf. Open the file and search for 'Director' or 'Client' resource definitions.
    Affected if Configuration file exists and contains director settings
  3. Verify if client-initiated connections are enabled
    In the Director or Client resource configuration, look for directives such as 'Allow Client Connect = yes' or 'Connnect From Client = yes' (the exact directive name varies by Bareos version). This setting permits the director to accept client-initiated connections.
    Affected if The configuration contains 'Allow Client Connect = yes' or similar setting that allows clients to initiate connections to the director
  4. Confirm CRAM-MD5 authentication is in use
    Check the Director configuration for 'AuthType = CRAM-MD5' or examine the authentication mechanism configured in the Client resource. By default, Bareos uses CRAM-MD5 authentication.
    Affected if CRAM-MD5 authentication is enabled (this is the default in affected versions)
  5. Identify which clients are permitted to connect
    Review all Client resource definitions in the director configuration that have 'Director' or 'Allowed Directory' directives permitting incoming connections. These define which clients could potentially exploit the replay vulnerability.
    Affected if There are Client resources configured that allow client-initiated connections to the director

You are affected if your Bareos Director version is 19.2.7 or earlier (or exactly 19.2.8) AND client-initiated connections are enabled in the director configuration, allowing CRAM-MD5 authentication replay.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to a release after 19.2.7
Interim mitigation

Upgrade to Bareos version 19.2.8 or later. If immediate upgrading is not feasible, consider disabling client-initiated connections if business requirements allow.

Fix this in Bareos Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing6.0 h
  • Review / QA3.0 h
16.0 hours of engineering $2,760
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,416.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2020-4042 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2020-4042 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data