{
  "id": "security/python/ternaris__rosbags/2026-11-26-ros1-zero-size-sequence-loop",
  "title": "ROS1 deserializer loops on a short sequence of zero-size nested messages",
  "category": "security",
  "type": "dos",
  "severity": "medium",
  "cvss": null,
  "ecosystem": "python",
  "project": {
    "owner": "ternaris",
    "repo": "rosbags",
    "url": "https://gitlab.com/ternaris/rosbags"
  },
  "affected_versions": [
    "0.11.10"
  ],
  "fixed_version": "0.11.11",
  "status": "fixed",
  "disclosure": {
    "channel": "public-issue",
    "ghsa_id": null,
    "cve_id": null,
    "url": "https://gitlab.com/ternaris/rosbags/-/work_items/142",
    "reported_at": "2026-11-26T19:39:31+03:00",
    "published_at": "2026-11-26T19:39:31+03:00"
  },
  "summary": "The ROS1 deserializer accepted a uint32 element count for a nested message type whose minimum wire size was 0. A four-byte count of 0xffffffff for a zero-size element, such as std_msgs/msg/Empty, passed that check, and the loop then ran once per element. The same pattern was in the ROS1-to-CDR path. The reviewed release was 0.11.10. Reported in public issue #142 by ucsurf. Marko Durkovic fixed it in commit 0f781b3. The 0.11.11 changelog says \"Prevent denial of service from crafted ROS1 sequences of zero-size messages\" and links issue 142. It names no one. Released in 0.11.11.",
  "discovered_at": "2026-11-26T19:39:31+03:00",
  "public": true,
  "credit": "ucsurf",
  "updated_at": "2026-11-30T10:30:00+03:00",
  "pr": null,
  "references": [
    "https://gitlab.com/ternaris/rosbags/-/commit/0f781b3cefbfd5d04ffde9b572c699b408e07824",
    "https://gitlab.com/ternaris/rosbags/-/blob/v0.11.11/CHANGES.rst",
    "https://gitlab.com/ternaris/rosbags/-/tags/v0.11.11"
  ]
}
