GHSA-r4pg-vg54-wxx4: Github.com/cert manager/cert manager Denial of Service Vulnerability

MODERATE
Published
Advisory Summary

GHSA-r4pg-vg54-wxx4 is a MODERATE denial of service vulnerability (General Security Weakness) affecting Github.com/cert manager/cert manager libraries in the Go ecosystem. The issue involves cert-manager ha a potential slowdown / dos when parsing specially crafted pem inputs. Remediation is available by upgrading affected packages to version 1.12.14, 1.15.4, 1.16.2.

GHSA-r4pg-vg54-wxx4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-r4pg-vg54-wxx4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/cert manager/cert manager
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-r4pg-vg54-wxx4

To remediate this vulnerability, upgrade all affected Github.com/cert manager/cert manager dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/cert-manager/cert-manager fixed: 1.12.14
Upgrade github.com/cert-manager/cert-manager to 1.12.14
github.com/cert-manager/cert-manager fixed: 1.15.4
Upgrade github.com/cert-manager/cert-manager to 1.15.4
github.com/cert-manager/cert-manager fixed: 1.16.2
Upgrade github.com/cert-manager/cert-manager to 1.16.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/cert-manager/cert-manager

How to Check if You Are Affected

To determine whether your application is affected by GHSA-r4pg-vg54-wxx4, inspect your project dependencies for Github.com/cert manager/cert manager:

inspect dependencies for github.com/cert-manager/cert-manager

Analyze the terminal output to locate any version of Github.com/cert manager/cert manager in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.14), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Github.com/cert manager/cert manager, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact cert-manager packages which call the standard library `pem.Decode()` function can take a long time to process specially crafted invalid PEM data. If an attacker is able to modify PEM data which cert-manager reads (e.g. in a Secret resource), they may be able to use large amounts of CPU in the cert-manager controller pod to effectively create a denial-of-service (DoS) vector for cert-manager in the cluster. Secrets are limited in size to [1MiB](https://kubernetes.io/docs/concepts/configuration/secret/#restriction-data-size), which reduces the impact of this issue; it was discovered through an ~856kB fuzz test input which causes `pem.Decode` to take roughly 750ms to reject the input on an M2 Max Macbook Pro. By way of comparison, a valid PEM-encoded 4096-bit RSA key takes roughly 70µs to parse on the same machine. Given the required size of PEM data needed to present a realistic DoS vector, an attacker would need to create or insert many different large sized resources in the cluster, and so the best secondary defense is to ensure that sensible limits are placed via RBAC. This issue affects all versions of cert-manager to have been released since at least v0.1.0 (since `pem.Decode` is core functionality for cert-manager). All [supported releases](https://cert-manager.io/docs/releases/) are patched. ### Patches The fixed versions are v1.16.2, v1.15.4 and v1.12.14. - master branch: https://github.com/cert-manager/cert-manager/pull/7400 - release-1.16 branch: https://github.com/cert-manager/cert-manager/pull/7401 - release-1.15 branch: https://github.com/cert-manager/cert-manager/pull/7402 - release-1.12 branch: https://github.com/cert-manager/cert-manager/pull/7403 ### Workarounds Ensure that RBAC is scoped correctly in your cluster. If a user is able to modify resources containing PEM data to be able to exploit this, it's like that those permissions are a bigger security threat than this issue - especially for Secret resources. ### References - Upstream issue: https://github.com/golang/go/issues/50116 - Similar issue: https://github.com/sigstore/sigstore/issues/198 - Google OSSFuzz: https://issues.oss-fuzz.com/issues/376728466

GHSA-r4pg-vg54-wxx4 Affected Github.com/cert manager/cert manager Versions

3 component(s)
Fixed Versions:
1.12.141.15.41.16.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/cert-manager/cert-manager
Go
< 1.12.14
1.12.14
github.com/cert-manager/cert-manager
Go
≥ 1.13.0-alpha.0
< 1.15.4
1.15.4
github.com/cert-manager/cert-manager
Go
≥ 1.16.0-alpha.0
< 1.16.2
1.16.2

References

Frequently Asked Questions

What is GHSA-r4pg-vg54-wxx4?
GHSA-r4pg-vg54-wxx4 is a security vulnerability in Github.com/cert manager/cert manager involving cert-manager ha a potential slowdown / DoS when parsing specially crafted PEM inputs under General Security Weakness.
Which Github.com/cert manager/cert manager versions are affected?
Affected versions include releases prior to 1.12.14, 1.15.4, 1.16.2 across affected packages: github.com/cert-manager/cert-manager.
What version fixes GHSA-r4pg-vg54-wxx4?
Upgrading to 1.12.14, 1.15.4, 1.16.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/cert-manager/cert-manager affected?
Yes, github.com/cert-manager/cert-manager is affected in releases prior to 1.12.14, 1.15.4, 1.16.2. Upgrade your dependency to 1.12.14, 1.15.4, 1.16.2 or later.
What CWE is associated with GHSA-r4pg-vg54-wxx4?
GHSA-r4pg-vg54-wxx4 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-r4pg-vg54-wxx4?
Run the dependency tree command: 'inspect dependencies for github.com/cert-manager/cert-manager'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r4pg-vg54-wxx4",
  "modified" : "2026-06-05T21:21:55Z",
  "published" : "2024-11-20T20:48:11Z",
  "aliases" : [ ],
  "summary" : "cert-manager ha a potential slowdown / DoS when parsing specially crafted PEM inputs",
  "details" : "### Impact\n\ncert-manager packages which call the standard library `pem.Decode()` function  can take a long time to process specially crafted invalid PEM data.\n\nIf an attacker is able to modify PEM data which cert-manager reads (e.g. in a Secret resource), they may be able to use large amounts of CPU in the cert-manager controller pod to effectively create a denial-of-service (DoS) vector for cert-manager in the cluster.\n\nSecrets are limited in size to [1MiB](https://kubernetes.io/docs/concepts/configuration/secret/#restriction-data-size), which reduces the impact of this issue; it was discovered through an ~856kB fuzz test input which causes `pem.Decode` to take roughly 750ms to reject the input on an M2 Max Macbook Pro. By way of comparison, a valid PEM-encoded 4096-bit RSA key takes roughly 70µs to parse on the same machine.\n\nGiven the required size of PEM data needed to present a realistic DoS vector, an attacker would need to create or insert many different large sized resources in the cluster, and so the best secondary defense is to ensure that sensible limits are placed via RBAC.\n\nThis issue affects all versions of cert-manager to have been released since at least v0.1.0 (since `pem.Decode` is core functionality for cert-manager). All [supported releases](https://cert-manager.io/docs/releases/) are patched.\n\n### Patches\n\nThe fixed versions are v1.16.2, v1.15.4 and v1.12.14.\n\n- master branch: https://github.com/cert-manager/cert-manager/pull/7400\n- release-1.16 branch: https://github.com/cert-manager/cert-manager/pull/7401\n- release-1.15 branch: https://github.com/cert-manager/cert-manager/pull/7402\n- release-1.12 branch: https://github.com/cert-manager/cert-manager/pull/7403\n\n### Workarounds\n\nEnsure that RBAC is scoped correctly in your cluster. If a user is able to modify resources containing PEM data to be able to exploit this, it's like that those permissions are a bigger security threat than this issue - especially for Secret resources.\n\n### References\n\n- Upstream issue: https://github.com/golang/go/issues/50116\n- Similar issue: https://github.com/sigstore/sigstore/issues/198\n- Google OSSFuzz: https://issues.oss-fuzz.com/issues/376728466",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cert-manager/cert-manager"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cert-manager/cert-manager"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.13.0-alpha.0"
      }, {
        "fixed" : "1.15.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/cert-manager/cert-manager"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.16.0-alpha.0"
      }, {
        "fixed" : "1.16.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/cert-manager/cert-manager/security/advisories/GHSA-r4pg-vg54-wxx4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/golang/go/issues/50116"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cert-manager/cert-manager/pull/7400"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cert-manager/cert-manager/pull/7401"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cert-manager/cert-manager/pull/7402"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cert-manager/cert-manager/pull/7403"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cert-manager/cert-manager/commit/3a4c9eb55e2e43570679840bbe3217869fbc8efc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/cert-manager/cert-manager/commit/f22f78c8c0a64d718e203b326bc844c488ad7850"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/cert-manager/cert-manager"
  }, {
    "type" : "WEB",
    "url" : "https://go.dev/issue/50116"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3282"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-20T20:48:11Z",
    "nvd_published_at" : null
  }
}