{"id":"CVE-2024-49048","aliases":["CVE-2024-49048","GHSA-ghq9-vc6f-8qjf","PYSEC-2024-204"],"related":[],"kind":"vulnerability","state":"published","title":"TorchGeo Remote Code Execution Vulnerability","summary":"TorchGeo Remote Code Execution Vulnerability","summarySource":"cvelist","descriptions":[{"lang":"en-US","text":"TorchGeo Remote Code Execution Vulnerability","source":"cvelist"},{"lang":"en","text":"### Impact\n\nTorchGeo 0.4–0.6.0 used an [`eval`](https://docs.python.org/3/library/functions.html#eval) statement in its model weight API that could allow an unauthenticated, remote attacker to execute arbitrary commands. All platforms that expose [`torchgeo.models.get_weight()`](https://torchgeo.readthedocs.io/en/v0.6.0/api/models.html#torchgeo.models.get_weight) or [`torchgeo.trainers`](https://torchgeo.readthedocs.io/en/v0.6.0/api/trainers.html) as an external API could be affected.\n\n### Patches\n\nThe `eval` statement was replaced with a fixed enum lookup, preventing arbitrary code injection. All users are encouraged to upgrade to TorchGeo 0.6.1 or newer.\n\n### Workarounds\n\nIn unpatched versions, input validation and sanitization can be used to avoid this vulnerability.\n\n### References\n\n#### Bug history\n\n* Introduced: https://github.com/torchgeo/torchgeo/pull/917\n* Patched: https://github.com/torchgeo/torchgeo/pull/2323\n* Released: [v0.6.1](https://github.com/microsoft/torchgeo/releases/tag/v0.6.1)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Vulnerabilidad de ejecución remota de código en TorchGeo","source":"nvd"}],"published":"2024-11-12T17:54:25.693Z","modified":"2026-06-17T07:59:17.827Z","severity":{"scorer":"microsoft","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"microsoft","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-94","CWE-95"],"affected":[{"ranges":[{"type":"custom","introduced":"1.0.0","fixed":"0.6.1","status":"affected"}],"vendor":"Microsoft","product":"Microsoft TorchGeo","platforms":["Unknown"],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.4","status":"affected","fixed":"0.6.1"}],"ecosystem":"PyPI","package":"torchgeo","purl":"pkg:pypi/torchgeo","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.6.1"}],"vendor":"microsoft","product":"torchgeo","cpe":"cpe:2.3:a:microsoft:torchgeo:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.6.1"}],"ecosystem":"PyPI","package":"torchgeo","purl":"pkg:pypi/torchgeo","source":"pysec"}],"references":[{"url":"https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-49048","tags":["advisory","fix","patch","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/torchgeo/torchgeo/security/advisories/GHSA-ghq9-vc6f-8qjf","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49048","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/torchgeo/torchgeo/pull/2323","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/torchgeo/torchgeo/pull/917","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/torchgeo/torchgeo/commit/1a980788cb7089a1115f3b786c7daa9dd47d7d7a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/microsoft/torchgeo/releases/tag/v0.6.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/torchgeo/PYSEC-2024-204.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/torchgeo/torchgeo","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-ghq9-vc6f-8qjf","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"microsoft","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-11-13T04:55:42.754Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49048","url":"https://www.cve.org/CVERecord?id=CVE-2024-49048","licence":"CVE Terms of Use","modified":"2025-07-08T15:41:58.809Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ghq9-vc6f-8qjf","url":"https://github.com/advisories/GHSA-ghq9-vc6f-8qjf","licence":"CC-BY-4.0","modified":"2026-04-01T00:26:15.674Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49048","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49048","licence":"Public domain","modified":"2026-06-17T07:59:17.827Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-204","url":"https://osv.dev/vulnerability/PYSEC-2024-204","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:44.138Z"}],"updatedAt":"2026-11-25T22:58:48.139Z","epss":{"score":0.01239,"percentile":0.69962,"date":"2026-12-01T12:00:22.000Z"}}