Skip to content

Commit 963c342

Browse files
fix(deps): update module github.com/eclipse/paho.mqtt.golang to v1.5.1 [security] (#162)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/eclipse/paho.mqtt.golang](https://redirect.github.com/eclipse/paho.mqtt.golang) | `v1.5.0` -> `v1.5.1` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2feclipse%2fpaho.mqtt.golang/v1.5.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2feclipse%2fpaho.mqtt.golang/v1.5.0/v1.5.1?slim=true) | ### GitHub Vulnerability Alerts #### [CVE-2025-10543](https://nvd.nist.gov/vuln/detail/CVE-2025-10543) 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). --- ### Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes in github.com/eclipse/paho.mqtt.golang [CVE-2025-10543](https://nvd.nist.gov/vuln/detail/CVE-2025-10543) / [GHSA-32fw-gq77-f2f2](https://redirect.github.com/advisories/GHSA-32fw-gq77-f2f2) / [GO-2025-4173](https://pkg.go.dev/vuln/GO-2025-4173) <details> <summary>More information</summary> #### Details Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes in github.com/eclipse/paho.mqtt.golang #### Severity Unknown #### References - [https://github.com/advisories/GHSA-32fw-gq77-f2f2](https://redirect.github.com/advisories/GHSA-32fw-gq77-f2f2) - [https://github.com/alpinelinux/build-server-status/commit/e3487897db32c8c3d0287643f8384a6669e93731](https://redirect.github.com/alpinelinux/build-server-status/commit/e3487897db32c8c3d0287643f8384a6669e93731) - [https://github.com/eclipse-paho/paho.mqtt.golang/issues/730](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/issues/730) - [https://github.com/eclipse-paho/paho.mqtt.golang/pull/714](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/pull/714) - [https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/254](https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/254) This data is provided by [OSV](https://osv.dev/vulnerability/GO-2025-4173) and the [Go Vulnerability Database](https://redirect.github.com/golang/vulndb) ([CC-BY 4.0](https://redirect.github.com/golang/vulndb#license)). </details> --- ### Eclipse Paho Go MQTT may incorrectly encode strings if length exceeds 65535 bytes [CVE-2025-10543](https://nvd.nist.gov/vuln/detail/CVE-2025-10543) / [GHSA-32fw-gq77-f2f2](https://redirect.github.com/advisories/GHSA-32fw-gq77-f2f2) / [GO-2025-4173](https://pkg.go.dev/vuln/GO-2025-4173) <details> <summary>More information</summary> #### Details 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). #### Severity - CVSS Score: 6.3 / 10 (Medium) - Vector String: `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` #### References - [https://nvd.nist.gov/vuln/detail/CVE-2025-10543](https://nvd.nist.gov/vuln/detail/CVE-2025-10543) - [https://github.com/eclipse-paho/paho.mqtt.golang/issues/730](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/issues/730) - [https://github.com/eclipse-paho/paho.mqtt.golang/pull/714](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/pull/714) - [https://github.com/alpinelinux/build-server-status/commit/e3487897db32c8c3d0287643f8384a6669e93731](https://redirect.github.com/alpinelinux/build-server-status/commit/e3487897db32c8c3d0287643f8384a6669e93731) - [https://github.com/advisories/GHSA-32fw-gq77-f2f2](https://redirect.github.com/advisories/GHSA-32fw-gq77-f2f2) - [https://github.com/eclipse-paho/paho.mqtt.golang](https://redirect.github.com/eclipse-paho/paho.mqtt.golang) - [https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/254](https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/254) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-32fw-gq77-f2f2) and the [GitHub Advisory Database](https://redirect.github.com/github/advisory-database) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>eclipse/paho.mqtt.golang (github.com/eclipse/paho.mqtt.golang)</summary> ### [`v1.5.1`](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/releases/tag/v1.5.1) [Compare Source](https://redirect.github.com/eclipse/paho.mqtt.golang/compare/v1.5.0...v1.5.1) This is a minor release incorporating changes made in the 14 months since v1.5.0 (including updating dependencies, and raising the Go version to 1.24). The changes are relatively minor but address a potential security issue, possible panic, enable users to better monitor the connection status, and incorporate a few optimisations. Thanks to those who have provided fixes/enhancements included in this release! Special thanks to Paul Gerste at [Sonar](https://www.sonarsource.com/) for reporting issue [#&#8203;730](https://redirect.github.com/eclipse/paho.mqtt.golang/issues/730) via the Eclipse security team (fix was implemented in PR [#&#8203;714](https://redirect.github.com/eclipse/paho.mqtt.golang/issues/714) in May, github issue created just prior to this release). This issue arose where a topic > 65535 bytes was passed to the `Publish` function, due to the way the data was encoded the topic could leak into the message body. Please see issue [#&#8203;730](https://redirect.github.com/eclipse/paho.mqtt.golang/issues/730) for further details. #### What's Changed - Updating go dependencies from pub and sub into the containers before building by [@&#8203;JefJrFigueiredo](https://redirect.github.com/JefJrFigueiredo) in [eclipse-paho#691](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/pull/691) - Optimize TCP connection logic by [@&#8203;geekeryy](https://redirect.github.com/geekeryy) in [eclipse-paho#713](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/pull/713) - Fields over 65535 bytes not encoded correctly by [@&#8203;MattBrittan](https://redirect.github.com/MattBrittan) in [eclipse-paho#714](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/pull/714) - Reduce slice allocations in route dispatch by [@&#8203;alespour](https://redirect.github.com/alespour) in [eclipse-paho#710](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/pull/710) - Add a ConnectionNotificationHandler by [@&#8203;RangelReale](https://redirect.github.com/RangelReale) in [eclipse-paho#727](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/pull/727) - Potential panic when using manual ACK by [@&#8203;MattBrittan](https://redirect.github.com/MattBrittan) in [eclipse-paho#729](https://redirect.github.com/eclipse-paho/paho.mqtt.golang/pull/729) **Full Changelog**: <eclipse-paho/paho.mqtt.golang@v1.5.0...v1.5.1> </details> --- ### Configuration 📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- ## Need help? You can ask for more help in the following Slack channel: #proj-renovate-self-hosted. In that channel you can also find ADR and FAQ docs in the Resources section. <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4yNS4zIiwidXBkYXRlZEluVmVyIjoiNDIuMzUuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlLXNlY3VyaXR5LXVwZGF0ZSIsInNldmVyaXR5OlVOS05PV04iXX0=--> Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com> Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
1 parent 0eb4ff0 commit 963c342

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/grafana/mqtt-datasource
33
go 1.25
44

55
require (
6-
github.com/eclipse/paho.mqtt.golang v1.5.0
6+
github.com/eclipse/paho.mqtt.golang v1.5.1
77
github.com/grafana/grafana-plugin-sdk-go v0.284.0
88
github.com/json-iterator/go v1.1.12
99
github.com/stretchr/testify v1.11.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
2424
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
2525
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
2626
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
27-
github.com/eclipse/paho.mqtt.golang v1.5.0 h1:EH+bUVJNgttidWFkLLVKaQPGmkTUfQQqjOsyvMGvD6o=
28-
github.com/eclipse/paho.mqtt.golang v1.5.0/go.mod h1:du/2qNQVqJf/Sqs4MEL77kR8QTqANF7XU7Fk0aOTAgk=
27+
github.com/eclipse/paho.mqtt.golang v1.5.1 h1:/VSOv3oDLlpqR2Epjn1Q7b2bSTplJIeV2ISgCl2W7nE=
28+
github.com/eclipse/paho.mqtt.golang v1.5.1/go.mod h1:1/yJCneuyOoCOzKSsOTUc0AJfpsItBGWvYpBLimhArU=
2929
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
3030
github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs=
3131
github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw=

0 commit comments

Comments
 (0)