---
id: CVE-2021-3908
aliases:
  - GHSA-g5gj-9ggf-9vmq
  - GO-2022-0249
title: Infinite certificate chain depth results in OctoRPKI running forever
summary: Infinite certificate chain depth results in OctoRPKI running forever
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: cloudflare
product: github.com/cloudflare/cfrpki
ecosystem: go
affected:
  - github.com/cloudflare/cfrpki < 1.4.0
patched:
  - github.com/cloudflare/cfrpki 1.4.0
published: '2021-11-10'
updated: '2026-07-08'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-g5gj-9ggf-9vmq'
references:
  - url: >-
      https://github.com/cloudflare/cfrpki/security/advisories/GHSA-g5gj-9ggf-9vmq
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2021-3908'
  - url: 'https://github.com/cloudflare/cfrpki'
  - url: 'https://github.com/cloudflare/cfrpki/releases/tag/v1.4.0'
  - url: 'https://www.debian.org/security/2022/dsa-5041'
tags:
  - osv
  - go
epss: 0.00731
epssPercentile: 0.52862
ingestedAt: '2026-07-09T18:56:36.367Z'
---

## Overview

OctoRPKI (github.com/cloudflare/cfrpki/cmd/octorpki) does not limit the depth of a certificate chain, allowing for a CA to create children in an ad-hoc fashion, thereby making tree traversal never end.

### For more information
If you have any questions or comments about this advisory email us at security@cloudflare.com 


## Affected packages

- `github.com/cloudflare/cfrpki < 1.4.0`

## Remediation

Upgrade to a patched release:

- `github.com/cloudflare/cfrpki 1.4.0`
