{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-27297",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-02-22T18:08:38.874Z",
        "datePublished": "2024-03-11T21:24:43.919Z",
        "dateUpdated": "2024-08-02T00:27:59.901Z"
    },
    "containers": {
        "cna": {
            "title": "Nix Corruption of fixed-output derivations",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-367",
                            "lang": "en",
                            "description": "CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "ADJACENT_NETWORK",
                        "availabilityImpact": "LOW",
                        "baseScore": 6.3,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37"
                },
                {
                    "name": "https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000"
                },
                {
                    "name": "https://hackmd.io/03UGerewRcy3db44JQoWvw",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://hackmd.io/03UGerewRcy3db44JQoWvw"
                }
            ],
            "affected": [
                {
                    "vendor": "NixOS",
                    "product": "nix",
                    "versions": [
                        {
                            "version": ">= 2.3.0, < 2.3.18",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.4.0, < 2.18.2",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.19.0, < 2.19.4",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.20.0, < 2.20.5",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-03-11T21:25:51.065Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Nix is a package manager for Linux and other Unix systems. A fixed-output derivations on Linux can send file descriptors to files in the Nix store to another program running on the host (or another fixed-output derivation) via Unix domain sockets in the abstract namespace. This allows to modify the output of the derivation, after Nix has registered the path as \"valid\" and immutable in the Nix database. In particular, this allows the output of fixed-output derivations to be modified from their expected content. This issue has been addressed in versions 2.3.18 2.18.2 2.19.4 and 2.20.5. Users are advised to upgrade. There are no known workarounds for this vulnerability."
                }
            ],
            "source": {
                "advisory": "GHSA-2ffj-w4mj-pg37",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "title": "CISA ADP Vulnrichment",
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-27297",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-03-12T18:38:57.385291Z"
                            }
                        }
                    }
                ],
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-04T17:46:24.214Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T00:27:59.901Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37"
                    },
                    {
                        "name": "https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000"
                    },
                    {
                        "name": "https://hackmd.io/03UGerewRcy3db44JQoWvw",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://hackmd.io/03UGerewRcy3db44JQoWvw"
                    }
                ]
            }
        ]
    }
}