{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2022-21704",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "dateUpdated": "2024-08-03T02:53:34.798Z",
        "dateReserved": "2021-11-16T00:00:00",
        "datePublished": "2022-01-19T00:00:00"
    },
    "containers": {
        "cna": {
            "title": "Incorrect Default Permissions in log4js-node",
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2022-12-06T00:00:00"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "log4js-node is a port of log4js to node.js. In affected versions default file permissions for log files created by the file, fileSync and dateFile appenders are world-readable (in unix). This could cause problems if log files contain sensitive information. This would affect any users that have not supplied their own permissions for the files via the mode parameter in the config. Users are advised to update."
                }
            ],
            "affected": [
                {
                    "vendor": "log4js-node",
                    "product": "log4js-node",
                    "versions": [
                        {
                            "version": "< 6.4.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q"
                },
                {
                    "url": "https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76"
                },
                {
                    "url": "https://github.com/log4js-node/streamroller/pull/87"
                },
                {
                    "url": "https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640"
                },
                {
                    "name": "[debian-lts-announce] 20221206 [SECURITY] [DLA 3229-1] node-log4js security update",
                    "tags": [
                        "mailing-list"
                    ],
                    "url": "https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "privilegesRequired": "LOW",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "NONE",
                        "availabilityImpact": "NONE",
                        "baseScore": 5.5,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-276: Incorrect Default Permissions",
                            "cweId": "CWE-276"
                        }
                    ]
                }
            ],
            "source": {
                "advisory": "GHSA-82v2-mx6x-wq7q",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T02:53:34.798Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/log4js-node/log4js-node/security/advisories/GHSA-82v2-mx6x-wq7q",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/log4js-node/log4js-node/pull/1141/commits/8042252861a1b65adb66931fdf702ead34fa9b76",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/log4js-node/streamroller/pull/87",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/log4js-node/log4js-node/blob/v6.4.0/CHANGELOG.md#640",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "name": "[debian-lts-announce] 20221206 [SECURITY] [DLA 3229-1] node-log4js security update",
                        "tags": [
                            "mailing-list",
                            "x_transferred"
                        ],
                        "url": "https://lists.debian.org/debian-lts-announce/2022/12/msg00014.html"
                    }
                ]
            }
        ]
    }
}