# CVE-2021-27877: Veritas Backup Exec Agent Improper Authentication

> Attackers can exploit a deprecated SHA authentication scheme in Veritas Backup Exec to gain unauthorized access and execute privileged commands.

- **Severity:** High 8.2 (`CVSS:3.1/AC:L/AV:N/A:N/C:H/I:L/PR:N/S:U/UI:N`)
- **Exploited in the wild:** Yes, since 7 Apr 2023 (CISA KEV), used in ransomware
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 1 Mar 2021
- **Updated:** 21 Oct 2025
- **Also known as:** GHSA-grhg-3w4v-cp2r

## What is CVE-2021-27877?

CVE-2021-27877 is a high-severity authentication bypass vulnerability in n/a, published on 1 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An issue was discovered in Veritas Backup Exec before 21.2. It supports multiple authentication schemes: SHA authentication is one of these. This authentication scheme is no longer used in current versions of the product, but hadn't yet been disabled. An attacker could remotely exploit this scheme to gain unauthorized access to an Agent and execute privileged commands.

## Which versions are affected by CVE-2021-27877?

It affects 1 product.


Products: Veritas Backup Exec.

## How do I fix CVE-2021-27877?

No fix has been published for CVE-2021-27877 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 28 Apr 2023.

## Is CVE-2021-27877 being exploited?

Yes. Attackers have exploited CVE-2021-27877 in the wild since at least 7 Apr 2023, including in ransomware campaigns.

Public exploit code:

- Veritas Backup Exec Agent Remote Code Execution (metasploit)
- A modified version of the Rapid7 Metasploit module for CVE-2021-27877 that supports direct command execution for reliable vulnerability validation. Includes documentation explaining the exploit workflow, the module modifications, and usage examples. (github_poc): https://github.com/yashswarup12/CVE-2021-27877-PoC
- Veritas Backup Exec - Broken Authentication (nuclei)

## Other vulnerabilities in n/a

- [CVE-2021-27878](https://insights.sbomify.com/CVE-2021-27878/): Veritas Backup Exec Agent Command Execution (high 8.8, exploited in the wild)
- [CVE-2021-27876](https://insights.sbomify.com/CVE-2021-27876/): Veritas Backup Exec Agent File Access (high 8.1, exploited in the wild)
- [CVE-2017-8895](https://insights.sbomify.com/CVE-2017-8895/): Use after free in n/a (critical 9.8)
- [CVE-2020-36167](https://insights.sbomify.com/CVE-2020-36167/): Path traversal in n/a (critical 9.3)
- [CVE-2024-33673](https://insights.sbomify.com/CVE-2024-33673/): Privilege escalation in n/a (high 7.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-27877 and fix it if it is affected.

What it is: CVE-2021-27877 is a high-severity authentication bypass vulnerability in n/a, published on 1 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2021-27877 in the wild since at least 7 Apr 2023, including in ransomware campaigns.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-27877/ (Markdown: https://insights.sbomify.com/CVE-2021-27877/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-27877
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-27877
- OSV: https://osv.dev/vulnerability/CVE-2021-27877

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-27877/
Summaries are generated and may contain mistakes; the official description above is the record.
