CVE-2024-10525

Source
https://cve.org/CVERecord?id=CVE-2024-10525
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-10525.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-10525
Downstream
Related
Published
2024-10-30T11:41:08Z
Modified
2026-08-27T10:10:47Z
Severity
  • 7.2 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Eclipse Mosquito: Heap Buffer Overflow in my_subscribe_callback
Details

In Eclipse Mosquitto, from version 1.3.2 through 2.0.18, if a malicious broker sends a crafted SUBACK packet with no reason codes, a client using libmosquitto may make out of bounds memory access when acting in its on_subscribe callback. This affects the mosquitto_sub and mosquitto_rr clients.

Database specific
{
    "cna_assigner": "eclipse",
    "cwe_ids": [
        "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10525.json"
}
References

Affected packages

Git / github.com/eclipse-mosquitto/mosquitto

Affected ranges

Type
GIT
Repo
https://github.com/eclipse-mosquitto/mosquitto
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:eclipse:mosquitto:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "1.3.2"
        },
        {
            "fixed": "2.0.19"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-10525.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "112744184638913340540592059009065155160",
                "173647425033737941360091521005652606556",
                "129426418706414116545542920680687959565",
                "177013983548820522005115672949777997892",
                "261027843247209851251118222858259184730"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2024-10525-5d3333ec",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/eclipse-mosquitto/mosquitto/commit/5eb40ee3d691fb3c2dc222685e7ffcf6e6a69a79",
        "target": {
            "file": "src/bridge.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "328300029930406813138797490881719136165",
            "length": 3362
        },
        "id": "CVE-2024-10525-73c66614",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/eclipse-mosquitto/mosquitto/commit/5eb40ee3d691fb3c2dc222685e7ffcf6e6a69a79",
        "target": {
            "file": "src/bridge.c",
            "function": "bridge__connect_step1"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "29036111489348541762894021766668069100",
            "length": 1918
        },
        "id": "CVE-2024-10525-d05b89c8",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/eclipse-mosquitto/mosquitto/commit/8ab20b4ba4204fdcdec78cb4d9f03c944a6e0e1c",
        "target": {
            "file": "lib/handle_suback.c",
            "function": "handle__suback"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "94950051260452402365347931505757235218",
                "96581849340855976114804582782750664304",
                "5849565670273732554841845849192978354",
                "173389902800579440755348116221827973798"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2024-10525-fcb71ac0",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/eclipse-mosquitto/mosquitto/commit/8ab20b4ba4204fdcdec78cb4d9f03c944a6e0e1c",
        "target": {
            "file": "lib/handle_suback.c"
        }
    }
]
vanir_signatures_modified
"2026-08-27T10:10:47Z"