{
  "id": "security/cpp/mavlink__MAVSDK/2026-11-20-unbounded-sscanf-calibration-statustext-parser",
  "title": "Unbounded sscanf in CalibrationStatustextParser overflows a 64-byte buffer",
  "category": "security",
  "type": "memory-safety",
  "severity": "medium",
  "cvss": {
    "vector": "CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H",
    "score": 5.4
  },
  "ecosystem": "cpp",
  "project": {
    "owner": "mavlink",
    "repo": "MAVSDK",
    "url": "https://github.com/mavlink/MAVSDK"
  },
  "affected_versions": [
    ">= 0.12.0, < 4.3.0"
  ],
  "fixed_version": "4.3.0",
  "status": "published",
  "disclosure": {
    "channel": "pvr",
    "ghsa_id": "GHSA-fr77-fgh2-jq2f",
    "cve_id": null,
    "url": "https://github.com/mavlink/MAVSDK/security/advisories/GHSA-fr77-fgh2-jq2f",
    "reported_at": "2026-11-20T00:00:00+03:00",
    "published_at": "2026-12-02T00:51:32+03:00"
  },
  "summary": "CalibrationStatustextParser used three sscanf formats with unbounded %s conversions, writing into a fixed 64-byte buffer (CWE-787). Multi-chunk STATUSTEXT messages are reassembled without a limit on the combined length, so a party able to send MAVLink messages on the link can overflow this buffer while a PX4 calibration is in progress. This corrupts heap memory and can crash the process using MAVSDK. Versions >= 0.12.0, < 4.3.0 are affected. Patched in 4.3.0. There is no CVE. The advisory text says \"Reported and fixed by Ugur Celik (@ucsurf).\" The v4.3.0 release notes list @ucsurf for pull request 3227.",
  "discovered_at": "2026-11-20T00:00:00+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-12-02T01:15:00+03:00",
  "pr": {
    "url": "https://github.com/mavlink/MAVSDK/pull/3227",
    "state": "merged",
    "merged_at": "2026-11-25T02:21:08+03:00",
    "number": 3227
  },
  "references": [
    "https://github.com/mavlink/MAVSDK/commit/5e39ab31ea65234624c7146d7e4537203ad8001b",
    "https://github.com/mavlink/MAVSDK/releases/tag/v4.3.0"
  ]
}
