Skip to content
Heist/ feed
Back to feed
Critical

paho.mqtt.c — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-41036

In versions prior to 1.1 of the Eclipse Paho MQTT C Client, the client does not check rem_len size in readpacket.

Products
paho.mqtt.c
Affected versions
1.3.12-1, 1.3.13-1, 1.3.13-1build1, 1.3.13-1build2, 1.3.14-2, 1.3.15-1, 1.3.16+ds-1, 1.3.16+ds-1build1, 1.3.9-1, 1.3.9-1build1
Fixed versions
Not specified
CVEs
CVE-2021-41036
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:00 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-41036

core-osv · Original source

Published 3 Nov 2021, 00:15 UTC

In versions prior to 1.1 of the Eclipse Paho MQTT C Client, the client does not check rem_len size in readpacket.

osv:UBUNTU-CVE-2021-41036

paho.mqtt.c

Fixed versions: Not specified

paho.mqtt.c

Fixed versions: Not specified

paho.mqtt.c

Fixed versions: Not specified

paho.mqtt.c

Fixed versions: Not specified

paho.mqtt.c

Fixed versions: Not specified

Complete source record
{
  "id": "b140f14ba2301e382f4b5b4ac6ff2cb265279305b05e88c9dfd4f73fbb4c873f",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-41036",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-41036",
    "summary": "In versions prior to 1.1 of the Eclipse Paho MQTT C Client, the client does not check rem_len size in readpacket.",
    "evidence": "osv:UBUNTU-CVE-2021-41036",
    "products": [
      {
        "name": {
          "value": "paho.mqtt.c",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.9-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.3.9-1build1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "paho.mqtt.c",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.12-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.13-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.13-1build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.13-1build2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "paho.mqtt.c",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.14-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "paho.mqtt.c",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.15-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.3.16+ds-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.3.16+ds-1build1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "paho.mqtt.c",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.14-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.3.15-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2021-41036",
      "aliases": [
        "UBUNTU-CVE-2021-41036"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "paho.mqtt.c",
            "purl": "pkg:deb/ubuntu/paho.mqtt.c?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.3.9-1",
            "1.3.9-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41036.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libpaho-mqtt1.3",
                "binary_version": "1.3.9-1build1"
              },
              {
                "binary_name": "paho.mqtt.c-examples",
                "binary_version": "1.3.9-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "paho.mqtt.c",
            "purl": "pkg:deb/ubuntu/paho.mqtt.c?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.3.12-1",
            "1.3.13-1",
            "1.3.13-1build1",
            "1.3.13-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41036.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libpaho-mqtt1.3",
                "binary_version": "1.3.13-1build2"
              },
              {
                "binary_name": "paho.mqtt.c-examples",
                "binary_version": "1.3.13-1build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "paho.mqtt.c",
            "purl": "pkg:deb/ubuntu/paho.mqtt.c?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.3.14-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41036.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libpaho-mqtt1.3",
                "binary_version": "1.3.14-2"
              },
              {
                "binary_name": "paho.mqtt.c-examples",
                "binary_version": "1.3.14-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "paho.mqtt.c",
            "purl": "pkg:deb/ubuntu/paho.mqtt.c?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.3.15-1",
            "1.3.16+ds-1",
            "1.3.16+ds-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41036.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libpaho-mqtt1.3",
                "binary_version": "1.3.16+ds-1build1"
              },
              {
                "binary_name": "paho.mqtt.c-examples",
                "binary_version": "1.3.16+ds-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "paho.mqtt.c",
            "purl": "pkg:deb/ubuntu/paho.mqtt.c?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.3.14-2",
            "1.3.15-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-41036.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libpaho-mqtt1.3",
                "binary_version": "1.3.15-1"
              },
              {
                "binary_name": "paho.mqtt.c-examples",
                "binary_version": "1.3.15-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:20.797244044Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-41036"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-41036",
        "https://github.com/eclipse/paho.mqtt.embedded-c/issues/96",
        "https://www.cve.org/CVERecord?id=CVE-2021-41036"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-41036",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355358,
  "published_at": "2021-11-03T00:15:00+00:00"
}