An attacker can bypass the sandboxing of Nasal scripts and arbitrarily write to any file path that the user has permission to modify at the operating-system level.
{
"cna_assigner": "GitLab",
"cwe_ids": [
"CWE-863"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0781.json"
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"287558192824168312176891526790588496326",
"225277196899202221484671989223216982661",
"97977021556137033147410305547317865985",
"15452191806764509888845595507775211228",
"218372333113441929091944420501057161656",
"197289599082844171290506947691576468269",
"188572630938096942081350278361378026228",
"82750131224663590802561524734000195216",
"286647616246624700125669281790932041499",
"20085596970029472661381297419955388801",
"167393378517571835829488279623996957397",
"112425518745368565899588644987679926978",
"136792069286970499323062558466422699331",
"271212504417626079067349643145180240459",
"119113019396989550235112541028399600526",
"292433013028081855349094781587969332439",
"18377852305958671715945432507043452972",
"119253018290270376766464903124617177530",
"299115726733373068994629636046039861704",
"322048486035876141469231256591019114767",
"309149560221026940696098734283161745184",
"295898540188440883117189237753632757596",
"306296572503005881132392319214469943585"
]
},
"target": {
"file": "src/Scripting/NasalSGPath.cxx"
},
"id": "CVE-2025-0781-1eb9661d",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://gitlab.com/flightgear/flightgear@ad37afce28083fad7f79467b3ffdead753584358"
},
{
"digest": {
"function_hash": "281077675152790947644426163833833883594",
"length": 474.0
},
"target": {
"function": "checkIORules",
"file": "src/Scripting/NasalSGPath.cxx"
},
"id": "CVE-2025-0781-4b74dda3",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://gitlab.com/flightgear/flightgear@ad37afce28083fad7f79467b3ffdead753584358"
},
{
"digest": {
"function_hash": "61856522253849571751186914217369993848",
"length": 165.0
},
"target": {
"function": "validatedPathToNasal",
"file": "src/Scripting/NasalSGPath.cxx"
},
"id": "CVE-2025-0781-9afb2afc",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://gitlab.com/flightgear/flightgear@ad37afce28083fad7f79467b3ffdead753584358"
},
{
"digest": {
"function_hash": "170458705050771857603730969025994986495",
"length": 131.0
},
"target": {
"function": "f_desktop",
"file": "src/Scripting/NasalSGPath.cxx"
},
"id": "CVE-2025-0781-9e20b9d2",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://gitlab.com/flightgear/flightgear@ad37afce28083fad7f79467b3ffdead753584358"
}
]
[
{
"digest": {
"function_hash": "192516153807057495305720056885075134724",
"length": 178.0
},
"target": {
"function": "from_nasal_helper",
"file": "simgear/nasal/cppbind/detail/from_nasal_helper.cxx"
},
"id": "CVE-2025-0781-4fc6021c",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://gitlab.com/flightgear/simgear@5bb023647114267141a7610e8f1ca7d6f4f5a5a8"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"209304454616588305242003159985146152025",
"133584376709863715448258060440547759566",
"176419921888979942730186722903714587854"
]
},
"target": {
"file": "simgear/misc/sg_path.cxx"
},
"id": "CVE-2025-0781-5ec40270",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://gitlab.com/flightgear/simgear@5bb023647114267141a7610e8f1ca7d6f4f5a5a8"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"191177096978102545166284114464431415000",
"311168252081431369544220230255347480265",
"21135368358186218003915184244009766713"
]
},
"target": {
"file": "simgear/misc/sg_path.hxx"
},
"id": "CVE-2025-0781-abe9f4b1",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://gitlab.com/flightgear/simgear@5bb023647114267141a7610e8f1ca7d6f4f5a5a8"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"133436955740997285381001568351045259426",
"317849807320933944258474254794733096036",
"317610975035575883086532795485539936851",
"56346657599806778158543148933079470569"
]
},
"target": {
"file": "simgear/nasal/cppbind/detail/from_nasal_helper.cxx"
},
"id": "CVE-2025-0781-c7d15254",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://gitlab.com/flightgear/simgear@5bb023647114267141a7610e8f1ca7d6f4f5a5a8"
}
]