{"id":"CVE-2024-3154","aliases":["CVE-2024-3154","GHSA-2cgq-h8xw-2v5j","GO-2024-2791"],"related":["CGA-h76v-2xh7-hm37"],"kind":"vulnerability","state":"published","title":"Cri-o: arbitrary command injection via pod annotation","summary":"A flaw was found in cri-o, where an arbitrary systemd property can be injected via a Pod annotation. Any user who can create a pod with an arbitrary annotation may perform an arbitrary action on the host system.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in cri-o, where an arbitrary systemd property can be injected via a Pod annotation. Any user who can create a pod with an arbitrary annotation may perform an arbitrary action on the host system.","source":"cvelist"},{"lang":"en","text":"### Impact\nOn CRI-O, it looks like an arbitrary systemd property can be injected via a Pod annotation:\n```\n---\napiVersion: v1\nkind: Pod\nmetadata:\n  name: poc-arbitrary-systemd-property-injection\n  annotations:\n    # I believe that ExecStart with an arbitrary command works here too,\n    # but I haven't figured out how to marshalize the ExecStart struct to gvariant string.\n    org.systemd.property.SuccessAction: \"'poweroff-force'\"\nspec:\n  containers:\n    - name: hello\n      image: [quay.io/podman/hello](http://quay.io/podman/hello)\n```\n\nThis means that any user who can create a pod with an arbitrary annotation may perform an arbitrary action on the host system.\n\nTested with CRI-O v1.24 on minikube.\nI didn't test the latest v1.29 because it is incompatible with minikube: https://github.com/kubernetes/minikube/pull/18367\n\nThanks to Cédric Clerget (GitHub ID @cclerget) for finding out that CRI-O just passes pod annotations to OCI annotations:\nhttps://github.com/opencontainers/runc/pull/3923#discussion_r1532292536\n\nCRI-O has to filter out annotations that have the prefix \"org.systemd.property.\"\n\nSee also:\n- https://github.com/opencontainers/runtime-spec/blob/main/features.md#unsafe-annotations-in-configjson\n- https://github.com/opencontainers/runc/pull/4217\n\n\n### Workarounds\nUnfortunately, the only workarounds would involve an external mutating webhook to disallow these annotations\n\n### References","format":"markdown","source":"ghsa"},{"lang":"en","text":"CRI-O vulnerable to an arbitrary systemd property injection in github.com/cri-o/cri-o","format":"markdown","source":"go"},{"lang":"es","text":"Se encontró una falla en cri-o, donde se puede inyectar una propiedad systemd arbitraria mediante una anotación Pod. Cualquier usuario que pueda crear un pod con una anotación arbitraria puede realizar una acción arbitraria en el sistema host.","source":"nvd"}],"published":"2024-04-26T03:12:38.036Z","modified":"2026-11-26T13:29:48.164Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"type":"semver","version":"1.27.5","status":"affected"},{"type":"semver","version":"1.27.6","status":"unaffected"},{"type":"semver","version":"1.28.5","status":"affected"},{"type":"semver","version":"1.28.6","status":"unaffected"},{"type":"semver","version":"1.29.3","status":"affected"},{"type":"semver","version":"1.29.4","status":"unaffected"},{"type":"semver","version":"1.30.0","status":"unaffected"}],"package":"cri-o","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.25.5-16.2.rhaos4.12.gitcb09013.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.12","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.12::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.26.5-16.2.rhaos4.13.git67e2a9d.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.13","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.13::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.26.5-16.2.rhaos4.13.git67e2a9d.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.13","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.13::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.27.6-2.rhaos4.14.gitb3bd0bf.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.14","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.14::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.27.6-2.rhaos4.14.gitb3bd0bf.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.14","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.14::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.28.6-2.rhaos4.15.git77bbb1c.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.15","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.15::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.28.6-2.rhaos4.15.git77bbb1c.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.15","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.15::el8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","package":"cri-o","cpe":"cpe:/a:redhat:openshift:3.11","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.29.0","status":"affected","fixed":"1.29.4"}],"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.28.0","status":"affected","fixed":"1.28.6"}],"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.27.6"}],"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.27.6"},{"type":"semver","introduced":"1.28.0","status":"affected","fixed":"1.28.6"},{"type":"semver","introduced":"1.29.0","status":"affected","fixed":"1.29.4"}],"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"go"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:2669","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2672","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:2784","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:3496","tags":["vendor-advisory","x-refsource-redhat","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-3154","tags":["vdb-entry","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2272532","tags":["issue-tracking","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/cri-o/cri-o/security/advisories/GHSA-2cgq-h8xw-2v5j","tags":["advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/opencontainers/runc/pull/4217","tags":["web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/opencontainers/runtime-spec/blob/main/features.md#unsafe-annotations-in-configjson","tags":["web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3154","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/cri-o/cri-o","tags":["package"],"sources":["ghsa"]}],"credits":["Red Hat would like to thank Akihiro Suda and Cédric Clerget for reporting this issue. Upstream acknowledges the CRI-O team as the original reporter."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-24T14:00:23.252Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-3154","url":"https://www.cve.org/CVERecord?id=CVE-2024-3154","licence":"CVE Terms of Use","modified":"2026-11-26T13:29:48.164Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2cgq-h8xw-2v5j","url":"https://github.com/advisories/GHSA-2cgq-h8xw-2v5j","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:11.111Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2791","url":"https://pkg.go.dev/vuln/GO-2024-2791","licence":"CC-BY-4.0","modified":"2026-02-04T04:11:38.619Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-3154","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3154","licence":"Public domain","modified":"2026-11-24T13:17:20.150Z"}],"updatedAt":"2026-11-26T13:37:08.537Z","epss":{"score":0.01418,"percentile":0.73617,"date":"2026-12-02T12:00:21.000Z"}}