{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-71411",
        "assignerOrgId": "4bb8329e-dd38-46c1-aafb-9bf32bcb93c6",
        "state": "PUBLISHED",
        "assignerShortName": "CERT-PL",
        "dateReserved": "2026-08-06T12:43:52.381Z",
        "datePublished": "2026-11-26T13:22:26.641Z",
        "dateUpdated": "2026-11-26T13:22:26.641Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "4bb8329e-dd38-46c1-aafb-9bf32bcb93c6",
                "shortName": "CERT-PL",
                "dateUpdated": "2026-11-26T13:22:26.641Z"
            },
            "title": "Time-of-check Time-of-use (TOCTOU) Race Condition leading to privilege escalation in GNU screen",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-367",
                            "description": "CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-233",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-233 Privilege Escalation"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "GNU",
                    "product": "Screen",
                    "repo": "https://cgit.git.savannah.gnu.org/cgit/screen.git/",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThan": "5.0.2",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "cpeApplicability": [
                {
                    "operator": "OR",
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:gnu:screen:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "0",
                                    "versionEndExcluding": "5.0.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "GNU Screen is vulnerable to a Time-of-Check/Time-of-Use (TOCTOU) race condition in the hardcopy file handler. Due to checking write permissions using the real user ID and subsequently opening the file using the effective user ID, a local unprivileged attacker can atomically replace the target path with a symbolic link pointing to an arbitrary system file. Successfully exploiting this race condition allows the attacker to write to arbitrary files with root privileges, leading to local privilege escalation\n\n\n\nThis issue was fixed in version 5.0.2.",
                    "supportingMedia": [
                        {
                            "type": "text/html",
                            "base64": false,
                            "value": "GNU Screen is vulnerable to a Time-of-Check/Time-of-Use (TOCTOU) race condition in the hardcopy file handler. Due to checking write permissions using the real user ID and subsequently opening the file using the effective user ID, a local unprivileged attacker can atomically replace the target path with a symbolic link pointing to an arbitrary system file. Successfully exploiting this race condition allows the attacker to write to arbitrary files with root privileges, leading to local privilege escalation<br><div><br></div><div>This issue was fixed in version&nbsp;5.0.2.</div>"
                        }
                    ]
                }
            ],
            "tags": [
                "x_open-source"
            ],
            "references": [
                {
                    "url": "https://cert.pl/en/posts/2026/11/CVE-2026-71409",
                    "tags": [
                        "third-party-advisory"
                    ]
                },
                {
                    "url": "https://savannah.gnu.org/git/?group=screen",
                    "tags": [
                        "product"
                    ]
                },
                {
                    "url": "https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=3dea5ff20c58ad497062d094b6a9b80a7535a7db",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?h=screen-v5&id=15a1481ad85309835c466a49f99a55537a78d596",
                    "tags": [
                        "patch"
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV4_0": {
                        "attackVector": "LOCAL",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "subConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "NONE",
                        "subIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "NONE",
                        "subAvailabilityImpact": "HIGH",
                        "exploitMaturity": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "valueDensity": "NOT_DEFINED",
                        "vulnerabilityResponseEffort": "NOT_DEFINED",
                        "providerUrgency": "NOT_DEFINED",
                        "version": "4.0",
                        "baseSeverity": "MEDIUM",
                        "baseScore": 5.5,
                        "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H"
                    }
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Michał Majchrowicz (AFINE Team)",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Marcin Wyczechowski (AFINE Team)",
                    "type": "finder"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "x_generator": {
                "engine": "Vulnogram 1.0.3"
            }
        }
    }
}