# CVE-2025-10543: Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes

- Severity: Medium 6.3 (CVSS:4.0, scored by eclipse) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-12-02T08:18:16.724Z
- Modified: 2026-10-18T18:10:00.100Z
- Also known as: GHSA-32fw-gq77-f2f2, GO-2025-4173
- Related: CGA-6xhp-c56v-grvf
- Weaknesses: CWE-197, CWE-681
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: eclipse

## Description

In Eclipse Paho Go MQTT v3.1 library (paho.mqtt.golang) versions <=1.5.0 UTF-8 encoded strings, passed into the library, may be incorrectly encoded if their length exceeds 65535 bytes. This may lead to unexpected content in packets sent to the server (for example, part of an MQTT topic may leak into the message body in a PUBLISH packet).


The issue arises because the length of the data passed in was converted from an int64/int32 (depending upon CPU) to an int16 without checks for overflows. The int16 length was then written, followed by the data (e.g. topic). This meant that when the data (e.g. topic) was over 65535 bytes then the amount of data written exceeds what the length field indicates. This could lead to a corrupt packet, or mean that the excess data leaks into another field (e.g. topic leaks into message body).

(As written by CVE List.)

## Affected

- Eclipse Foundation paho.mqtt.golang (Go MQTT v3.1 library): up to 1.5.0
- github.com/eclipse/paho.mqtt.golang (Go): before 1.5.1
- eclipse paho_mqtt: up to 1.5.0

## Every score

- eclipse: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/254> (issue-tracking, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-10543> (advisory)
- <https://github.com/eclipse-paho/paho.mqtt.golang/issues/730> (web)
- <https://github.com/eclipse-paho/paho.mqtt.golang/pull/714> (web)
- <https://github.com/alpinelinux/build-server-status/commit/e3487897db32c8c3d0287643f8384a6669e93731> (web)
- <https://github.com/advisories/GHSA-32fw-gq77-f2f2> (advisory)
- <https://github.com/eclipse-paho/paho.mqtt.golang> (package)

## Sources

- CVE List: [CVE-2025-10543](https://www.cve.org/CVERecord?id=CVE-2025-10543), CVE Terms of Use, modified 2025-12-02
- GitHub Advisory Database: [GHSA-32fw-gq77-f2f2](https://github.com/advisories/GHSA-32fw-gq77-f2f2), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-4173](https://pkg.go.dev/vuln/GO-2025-4173), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-10543](https://nvd.nist.gov/vuln/detail/CVE-2025-10543), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-10543 · Whole record: https://cve.day/CVE-2025-10543.json · Rebuilt by cve.day 2026-11-25T22:59:08.174Z
