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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: Low; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-681, CWE-197
- **Aliases:** GHSA-32fw-gq77-f2f2, GO-2025-4173
- **Published:** 2025-12-02T08:18:16.724Z
- **Modified:** 2026-10-18T18:10:00.100Z

## Who should check

- Projects that depend on Go package github.com/eclipse/paho.mqtt.golang (\< 1.5.1)
- Anyone running Eclipse Foundation paho.mqtt.golang (Go MQTT v3.1 library) \<= 1.5.0

## 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).

## Affected and fixed versions

- Go `github.com/eclipse/paho.mqtt.golang`: affected \< 1.5.1; fixed 1.5.1 (osv)
- Eclipse Foundation paho.mqtt.golang (Go MQTT v3.1 library): \<= 1.5.0 (cvelist)

## Mitigation

- Upgrade github.com/eclipse/paho.mqtt.golang to 1.5.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-10543. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-10543.md
Affected: github.com/eclipse/paho.mqtt.golang < 1.5.1
Fixed in: 1.5.1

Steps:
1. Search this machine and project for github.com/eclipse/paho.mqtt.golang (Go), Eclipse Foundation paho.mqtt.golang (Go MQTT v3.1 library): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-10543 being exploited?

There is no confirmed exploitation: CVE-2025-10543 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.42% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-10543?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-10543?

github.com/eclipse/paho.mqtt.golang \< 1.5.1.

### Is there a fix for CVE-2025-10543?

Yes. Fixed in 1.5.1. Upgrade github.com/eclipse/paho.mqtt.golang to 1.5.1 or later.

### How do I check if I'm affected by CVE-2025-10543?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-10543>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-32fw-gq77-f2f2> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2025-4173> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-10543> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-10543>
