---
id: CVE-2021-3912
aliases:
  - GHSA-g9wh-3vrx-r7hg
  - GO-2022-0253
title: OctoRPKI crashes when processing GZIP bomb returned via malicious repository
summary: OctoRPKI crashes when processing GZIP bomb returned via malicious repository
severity: medium
cvss: 4.2
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:H/UI:R/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-g9wh-3vrx-r7hg'
references:
  - url: >-
      https://github.com/cloudflare/cfrpki/security/advisories/GHSA-g9wh-3vrx-r7hg
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2021-3912'
  - url: >-
      https://github.com/cloudflare/cfrpki/commit/648658b1b176a747b52645989cfddc73a81eacad
  - url: 'https://pkg.go.dev/vuln/GO-2022-0253'
  - url: 'https://www.debian.org/security/2022/dsa-5041'
  - url: github.com/cloudflare/cfrpki
tags:
  - osv
  - go
epss: 0.0085
epssPercentile: 0.56384
ingestedAt: '2026-07-09T18:56:36.529Z'
---

## Overview

OctoRPKI tries to load the entire contents of a repository in memory, and in the case of a GZIP bomb, unzip it in memory, making it possible to create a repository that makes OctoRPKI run out of memory (and thus crash). 

## Patches

## 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`
