Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3978

When copying files with rsync, octorpki uses the "-a" flag 0, which forces rsync to copy binaries with the suid bit set as root. Since the provided service definition defaults to root ( https://github.com/cloudflare/cfrpki/blob/master/package/octorpki.service ) this could allow for a vector, when combined with another vulnerability that causes octorpki to process a malicious TAL file, for a local privilege escalation.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3978
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:54 UTC · Revision 1

Source evidence

CVE-2021-3978

core-osv · Original source

Published 29 Jan 2025, 10:15 UTC

When copying files with rsync, octorpki uses the "-a" flag 0, which forces rsync to copy binaries with the suid bit set as root. Since the provided service definition defaults to root ( https://github.com/cloudflare/cfrpki/blob/master/package/octorpki.service ) this could allow for a vector, when combined with another vulnerability that causes octorpki to process a malicious TAL file, for a local privilege escalation.

osv:CVE-2021-3978
Complete source record
{
  "id": "331fe069ec354158e7ba70576850665d3c266761115faec40aa5afc66c3e45a5",
  "url": "https://osv.dev/vulnerability/CVE-2021-3978",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3978",
    "summary": "When copying files with rsync, octorpki uses the \"-a\" flag 0, which forces rsync to copy binaries with the suid bit set as root. Since the provided service definition defaults to root ( https://github.com/cloudflare/cfrpki/blob/master/package/octorpki.service ) this could allow for a vector, when combined with another vulnerability that causes octorpki to process a malicious TAL file, for a local privilege escalation.",
    "evidence": "osv:CVE-2021-3978",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-3978",
      "aliases": [
        "CVE-2021-3978",
        "GHSA-3pqh-p72c-fj85",
        "GO-2022-0580"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cloudflare/cfrpki",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "667e707530e3a32cfa5f135637a38608300d4c9d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:cloudflare:octorpki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.4.1",
            "v1.3.0",
            "v1.2.2",
            "v1.2.1",
            "v1.2.0",
            "v1.2.0-pre",
            "v1.1.4",
            "v1.1.3",
            "v1.1.2",
            "v1.1.1",
            "v1.1.0",
            "1.0.3",
            "1.0.2",
            "1.0.1",
            "1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3978.json"
          }
        }
      ],
      "modified": "2026-10-20T10:54:54.852460311Z",
      "provider": "osv",
      "references": [
        "https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3pqh-p72c-fj85"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-3978",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386455,
  "published_at": "2025-01-29T10:15:07.75+00:00"
}