CVE-2025-41259

Source
https://cve.org/CVERecord?id=CVE-2025-41259
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-41259.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-41259
Downstream
Published
2026-06-03T11:01:59Z
Modified
2026-08-12T11:28:52Z
Severity
  • 7.3 (High) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
SWUpdate Untrusted Script Execution via Signed Update TOCTOU
Details

SWUpdate before 2026.05 is affected by a time-of-check time-of-use (TOCTOU) race condition that allows local unprivileged attackers to escalate privileges to root or install untrusted contents using a signed update.

Database specific
{
    "cna_assigner":  "sba-research",
    "cwe_ids":  [
        "CWE-367"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/41xxx/CVE-2025-41259.json"
}
References

Affected packages

Git / github.com/sbabic/swupdate

Affected ranges

Type
GIT
Repo
https://github.com/sbabic/swupdate
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "2026.05"
        }
    ],
    "source":  [
        "DESCRIPTION",
        "REFERENCES"
    ]
}

Affected versions

2014.*
2014.07
2015.*
2015.07
2016.*
2016.04
2016.04-rc1
2016.07
2016.07-rc3
2016.10
2016.10-rc1
2017.*
2017.01
2017.01-rc1
2017.04
2017.04-rc1
2017.04-rc2
2017.07
2017.07-rc1
2017.11
2018.*
2018.03
2018.03-rc1
2018.11
2018.11-rc1
2019.*
2019.04
2019.04-rc1
2019.11
2019.11-rc1
2020.*
2020.04
2020.04-rc1
2020.04-rc2
2020.11
2021.*
2021.04
2021.11
2022.*
2022.05
2022.12
2023.*
2023.05
2023.12
2023.12.1
2024.*
2024.05
2024.05.2
2024.12
2025.*
2025.05
2025.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-41259.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "89529434304315812385780302496230342401",
            "length":  634
        },
        "id":  "CVE-2025-41259-39501b54",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/sbabic/swupdate/commit/f4bd64260e233e207354d68d572b1cbc3e63689d",
        "target":  {
            "file":  "core/util.c",
            "function":  "swupdate_remove_directory"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "244392430412439603036487102069731633187",
                "173388438307855236941269846073740091773",
                "12652183546458038736969437918408029488",
                "275813714068425932503340476201464589050",
                "301037403177265941945846514348303833616",
                "114917503296895387442606474211509284792",
                "120594897682487706085760629067832957018",
                "88348980539232767229855587301500979699",
                "138257688947722297478605601658938613096"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2025-41259-ed94379b",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/sbabic/swupdate/commit/f4bd64260e233e207354d68d572b1cbc3e63689d",
        "target":  {
            "file":  "core/util.c"
        }
    }
]
vanir_signatures_modified
"2026-08-12T11:28:52Z"