{"id":"CVE-2024-12401","aliases":["CVE-2024-12401","GHSA-ghw8-3xqw-hhcj","GHSA-r4pg-vg54-wxx4","GO-2024-3282"],"related":["CGA-rvw4-9qhj-whhf"],"kind":"vulnerability","state":"published","title":"Cert-manager: potential dos when parsing specially crafted pem inputs","summary":"A flaw was found in the cert-manager package. This flaw allows an attacker who can modify PEM data that the cert-manager reads, for example, in a Secret resource, to use large amounts of CPU in the cert-manager controller pod to effectively create a denial-of-service (DoS) vector for the cert-manager in the cluster.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in the cert-manager package. This flaw allows an attacker who can modify PEM data that the cert-manager reads, for example, in a Secret resource, to use large amounts of CPU in the cert-manager controller pod to effectively create a denial-of-service (DoS) vector for the cert-manager in the cluster.","source":"cvelist"},{"lang":"en","text":"# Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-r4pg-vg54-wxx4. This link is maintained to preserve external references.\n\n# Original Description\n\nA flaw was found in the cert-manager package. This flaw allows an attacker who can modify PEM data that the cert-manager reads, for example, in a Secret resource, to use large amounts of CPU in the cert-manager controller pod to effectively create a denial-of-service (DoS) vector for the cert-manager in the cluster.","format":"markdown","source":"ghsa"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"Potential slowdown / DoS when parsing specially crafted PEM inputs in github.com/cert-manager/cert-manager","format":"markdown","source":"go"},{"lang":"es","text":"Se encontró una falla en el paquete cert-manager. Esta falla permite que un atacante que pueda modificar los datos PEM que lee el cert-manager, por ejemplo, en un recurso secreto, utilice grandes cantidades de CPU en el módulo controlador del cert-manager para crear efectivamente un vector de denegación de servicio (DoS) para el cert-manager en el clúster.","source":"nvd"}],"published":"2024-11-20T20:48:11.000Z","modified":"2026-11-27T05:18:58.143Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","score":4.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.12.14","status":"affected"},{"type":"semver","introduced":"1.13.0-alpha.0","lastAffected":"1.15.4","status":"affected"},{"type":"semver","introduced":"1.16.0-alpha.0","lastAffected":"1.16.2","status":"affected"}],"package":"cert-manager","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"cert-manager Operator for Red Hat OpenShift","package":"cert-manager/cert-manager-operator-bundle","cpe":"cpe:/a:redhat:cert_manager:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"cert-manager Operator for Red Hat OpenShift","package":"cert-manager/cert-manager-operator-rhel9","cpe":"cpe:/a:redhat:cert_manager:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"cert-manager Operator for Red Hat OpenShift","package":"cert-manager/jetstack-cert-manager-acmesolver-rhel9","cpe":"cpe:/a:redhat:cert_manager:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"cert-manager Operator for Red Hat OpenShift","package":"cert-manager/jetstack-cert-manager-rhel9","cpe":"cpe:/a:redhat:cert_manager:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Cryostat 3","package":"cryostat-tech-preview/cryostat-rhel8-operator","cpe":"cpe:/a:redhat:cryostat:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Multicluster Engine for Kubernetes","package":"multicluster-engine/assisted-service-8-rhel8","cpe":"cpe:/a:redhat:multicluster_engine","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Multicluster Engine for Kubernetes","package":"multicluster-engine/assisted-service-9-rhel9","cpe":"cpe:/a:redhat:multicluster_engine","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/serving-activator-rhel8","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/serving-autoscaler-hpa-rhel8","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/serving-autoscaler-rhel8","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/serving-controller-rhel8","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/serving-queue-rhel8","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/serving-storage-version-migration-rhel8","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"OpenShift Serverless","package":"openshift-serverless-1/serving-webhook-rhel8","cpe":"cpe:/a:redhat:serverless:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Connectivity Link 1","package":"rhcl-operator-bundle-container","cpe":"cpe:/a:redhat:connectivity_link:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Connectivity Link 1","package":"rhcl-operator-container","cpe":"cpe:/a:redhat:connectivity_link:1","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift4/ose-agent-installer-api-server-rhel8","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift4/ose-contour-rhel8","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4","package":"odf4/rook-ceph-rhel9-operator","cpe":"cpe:/a:redhat:openshift_data_foundation:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","package":"openshift-gitops-1/gitops-rhel8-operator","cpe":"cpe:/a:redhat:openshift_gitops:1","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.14"}],"ecosystem":"Go","package":"github.com/cert-manager/cert-manager","purl":"pkg:golang/github.com/cert-manager/cert-manager","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.13.0-alpha.0","status":"affected","fixed":"1.15.4"}],"ecosystem":"Go","package":"github.com/cert-manager/cert-manager","purl":"pkg:golang/github.com/cert-manager/cert-manager","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.16.0-alpha.0","status":"affected","fixed":"1.16.2"}],"ecosystem":"Go","package":"github.com/cert-manager/cert-manager","purl":"pkg:golang/github.com/cert-manager/cert-manager","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.14"}],"ecosystem":"Go","package":"github.com/cert-manager/cert-manager","purl":"pkg:golang/github.com/cert-manager/cert-manager","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.13.0-alpha.0","status":"affected","fixed":"1.15.4"}],"ecosystem":"Go","package":"github.com/cert-manager/cert-manager","purl":"pkg:golang/github.com/cert-manager/cert-manager","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.16.0-alpha.0","status":"affected","fixed":"1.16.2"}],"ecosystem":"Go","package":"github.com/cert-manager/cert-manager","purl":"pkg:golang/github.com/cert-manager/cert-manager","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.14"},{"type":"semver","introduced":"1.13.0-alpha.0","status":"affected","fixed":"1.15.4"},{"type":"semver","introduced":"1.16.0-alpha.0","status":"affected","fixed":"1.16.2"}],"ecosystem":"Go","package":"github.com/cert-manager/cert-manager","purl":"pkg:golang/github.com/cert-manager/cert-manager","source":"go"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2024-12401","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2327929","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cert-manager/cert-manager/pull/7400","tags":["fix","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/cert-manager/cert-manager/pull/7401","tags":["fix","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/cert-manager/cert-manager/pull/7402","tags":["fix","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/cert-manager/cert-manager/pull/7403","tags":["fix","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/cert-manager/cert-manager/security/advisories/GHSA-r4pg-vg54-wxx4","tags":["advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://go.dev/issue/50116","tags":["report","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12401","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cert-manager/cert-manager","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/golang/go/issues/50116","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cert-manager/cert-manager/commit/3a4c9eb55e2e43570679840bbe3217869fbc8efc","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/cert-manager/cert-manager/commit/f22f78c8c0a64d718e203b326bc844c488ad7850","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3282","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-12-12T15:21:20.829Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-12401","url":"https://www.cve.org/CVERecord?id=CVE-2024-12401","licence":"CVE Terms of Use","modified":"2026-11-27T04:09:55.379Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ghw8-3xqw-hhcj","url":"https://github.com/advisories/GHSA-ghw8-3xqw-hhcj","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.211Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r4pg-vg54-wxx4","url":"https://github.com/advisories/GHSA-r4pg-vg54-wxx4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:20.950Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3282","url":"https://pkg.go.dev/vuln/GO-2024-3282","licence":"CC-BY-4.0","modified":"2026-02-04T03:32:41.678Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-12401","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12401","licence":"Public domain","modified":"2026-11-27T05:18:58.143Z"}],"updatedAt":"2026-11-27T05:32:20.243Z","epss":{"score":0.00667,"percentile":0.53179,"date":"2026-12-02T12:00:21.000Z"}}